https://github.com/gianttreelp/processing-ui
A wrapper for Processing's PApplet to aid development with easy to use Views and UI elements.
https://github.com/gianttreelp/processing-ui
kotlin kotlin-library library processing processing-toolbox wrapper wrapper-api
Last synced: about 1 month ago
JSON representation
A wrapper for Processing's PApplet to aid development with easy to use Views and UI elements.
- Host: GitHub
- URL: https://github.com/gianttreelp/processing-ui
- Owner: GiantTreeLP
- License: lgpl-3.0
- Created: 2017-02-04T21:56:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-12T18:36:33.000Z (over 5 years ago)
- Last Synced: 2025-02-15T10:16:15.642Z (over 1 year ago)
- Topics: kotlin, kotlin-library, library, processing, processing-toolbox, wrapper, wrapper-api
- Language: Kotlin
- Size: 46.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# processing-ui
A wrapper for Processing's PApplet to aid development with easy to use Views and UI elements.
[](https://travis-ci.org/GiantTreeLP/processing-ui)
[](https://maven-badges.herokuapp.com/maven-central/com.github.gianttreelp/gtlp-processing-ui)
[](https://app.updateimpact.com/latest/831936721338896384/processing-ui)
[](https://www.versioneye.com/user/projects/58a71847b4d2a20055fcb868)
[](https://github.com/GiantTreeLP/processing-ui/releases)
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) {
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);
}
}