Skip to content

Instantly share code, notes, and snippets.

@takawo
Last active February 10, 2016 11:11
Show Gist options
  • Select an option

  • Save takawo/e95afc6a19afc9edc0ee to your computer and use it in GitHub Desktop.

Select an option

Save takawo/e95afc6a19afc9edc0ee to your computer and use it in GitHub Desktop.
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