From c996d580a778bff3960c323c4c9bc5126d140983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mate=CC=8Cj=20Kas=CC=8Cpar=20Jira=CC=81sek?= Date: Thu, 1 Oct 2015 12:29:01 +0200 Subject: [PATCH] Added example Processing applet --- src/ExampleApplet.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/ExampleApplet.java diff --git a/src/ExampleApplet.java b/src/ExampleApplet.java new file mode 100644 index 0000000..c1942cb --- /dev/null +++ b/src/ExampleApplet.java @@ -0,0 +1,26 @@ + +import processing.core.*; + +public class ExampleApplet extends PApplet { + + public static void main(String args[]) { + PApplet.main("ExampleApplet"); + } + + @Override + public void settings() { + size(200, 200); + } + + @Override + public void setup() { + clear(); + } + + @Override + public void draw() { + clear(); + fill(255); + rect(50, 50, 100, 100); + } +}