Last active
February 10, 2016 11:11
-
-
Save takawo/e95afc6a19afc9edc0ee to your computer and use it in GitHub Desktop.
http://hiroyukitsuda.com/archives/1721 http://www.creativeapplications.net/processing/craft-your-processing-sketches-in-eclipse/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import processing.core.*; | |
| public class MainApp extends PApplet { | |
| int x, y; | |
| public void settings() { | |
| size(500, 500, FX2D); | |
| } | |
| public void setup() { | |
| colorMode(HSB, 360, 100, 100, 100); | |
| noStroke(); | |
| background(0, 0, 50); | |
| } | |
| public void mouseMoved() { | |
| x = mouseX; | |
| y = mouseY; | |
| } | |
| public void draw() { | |
| ellipse(x, y, 50, 50); | |
| } | |
| public static void main(String[] args) { | |
| PApplet.main("MainApp"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment