Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (20 sloc) 388 Bytes
int hue = 0;
void setup() {
size(960, 540);
pixelDensity(displayDensity());
background(255);
colorMode(HSB, 360, 100, 100, 100);
noStroke();
}
void draw() {
hue = (hue + 1) % 361;
fill(hue, 80, 60, 20);
ellipse(mouseX, mouseY, 40, 40);
}
void keyPressed() {
if (key == 's') {
saveFrame("sketch06.jpg");
} else if (key == ' ') {
background(0, 0, 100);
}
}