Skip to content

A wrapper for Processing's PApplet to aid development with easy to use Views and UI elements.

License

Notifications You must be signed in to change notification settings

GiantTreeLP/processing-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

processing-ui

A wrapper for Processing's PApplet to aid development with easy to use Views and UI elements.

Build Status Maven Central Dependencies Dependency Status GitHub release

It's very simple to use:

Kotlin:

Just extend PWindow and override settings():

class KotlinSample : PWindow() {
    override fun settings() {
        size(600, 400)
    }
}

Then create your main() method to launch your sketch:

fun main(args: Array<String>) {
    PApplet.main(KotlinSample().javaClass)
}

Java:

Do it just like with Kotlin:

Extend PWindow and override settings():

public class JavaSample extends PWindow {
    @Override
    public void settings() {
        size(600, 400);
    }

Create you main() method and you are ready to launch your sketch:

    public static void main(String[] args) {
        main(JavaSample.class);
    }
}