This commit is contained in:
Gabriel Salvador 2023-06-29 16:36:31 +01:00
parent 12a5e5c21b
commit 2f478e4f47
90 changed files with 78 additions and 34 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -1,5 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_17_PREVIEW" project-jdk-name="temurin-17" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_17_PREVIEW" project-jdk-name="temurin-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" /> <output url="file://$PROJECT_DIR$/out" />
</component> </component>

View File

@ -1,3 +1,8 @@
## this is a fork of the original controlP5 library by Andreas Schlegel
## it provides a pom.xml for maven and can be used as a dependency in maven projects
# ControlP5 # ControlP5
ControlP5 is a GUI library written by [Andreas Schlegel](http://www.sojamo.de) for the programming environment [Processing](http://www.processing.org). ControlP5 is a GUI library written by [Andreas Schlegel](http://www.sojamo.de) for the programming environment [Processing](http://www.processing.org).

View File

@ -3,7 +3,7 @@
<component name="NewModuleRootManager" inherit-compiler-output="true"> <component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output /> <exclude-output />
<content url="file://$MODULE_DIR$"> <content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/main/java/controlP5" isTestSource="false" />
</content> </content>
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />

17
pom.xml Normal file
View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.sojamo</groupId>
<artifactId>controlp5</artifactId>
<version>2.2.6</version>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
</project>

BIN
src/main/java/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,48 @@
package sketch;
import controlP5.ControlEvent;
import controlP5.ControlP5;
import controlP5.RadioButton;
import controlP5.TextfieldMultiline;
import processing.core.PApplet;
public class Sketch extends PApplet {
static public void main (String[] args){
PApplet.main("sketch.Sketch");
}
ControlP5 cp5;
public void settings(){
size(500,500);
}
public void setup(){
cp5 = new ControlP5(this);
RadioButton b = new RadioButton(cp5,"radioButton")
.setPosition(100,100)
.setSize(40,20)
.setColorForeground(color(120))
.setColorActive(color(255))
.setColorLabel(color(255))
.setItemsPerRow(3)
.setSpacingColumn(50)
.addItem("foo",1)
.addItem("bar",2)
.addItem("baz",3)
.activate(0)
;
b.plugTo(this,"radioButton");
}
public void radioButton(int index) {
}
public void draw(){
}
}

View File

@ -1,33 +0,0 @@
package sketch;
import controlP5.ControlP5;
import controlP5.TextfieldMultiline;
import processing.core.PApplet;
public class Sketch extends PApplet {
static public void main (String[] args){
PApplet.main("sketch.Sketch");
}
ControlP5 cp5;
public void settings(){
size(500,500);
}
public void setup(){
cp5 = new ControlP5(this);
TextfieldMultiline commandTextfield = new TextfieldMultiline(cp5, "commandTextfield");
commandTextfield.setPosition(0, 0)
.setSize(200, 50)
// .setFont(mainFont)
.setColor(color(255))
.setColorForeground(color(255, 100))
.setText("");
//cp5.addToggle(commandTextfield,"commandTextfield");
}
public void draw(){
}
}