Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.66 KB

README.md

File metadata and controls

48 lines (35 loc) · 1.66 KB

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);
    }
}