Skip to content

Instantly share code, notes, and snippets.

@shiffman
Created November 15, 2014 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shiffman/f20434d55004209ded3e to your computer and use it in GitHub Desktop.
Save shiffman/f20434d55004209ded3e to your computer and use it in GitHub Desktop.
Dynamic Cursor
PGraphics canvas;
void setup() {
canvas = createGraphics(20, 20);
}
void draw() {
background(255);
canvas.beginDraw();
canvas.background(0);
canvas.fill(random(255));
canvas.ellipse(10, 10, 10, 10);
canvas.endDraw();
cursor(canvas);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment