Pulse Circle
void setup() {
size(256, 256);
}
void draw() {
background(12, 12, 18);
float r = 40 + sin(frameCount * 0.05) * 20;
fill(255, 120, 80);
circle(width / 2, height / 2, r * 2);
}
Processing v0 examples
Starter snippets for the Processing page.
Parameters are not fully documented yet.
Not specified.
No additional runtime notes yet.
Starter snippets for the Processing v0 transpile bridge.
void setup() {
size(256, 256);
}
void draw() {
background(12, 12, 18);
float r = 40 + sin(frameCount * 0.05) * 20;
fill(255, 120, 80);
circle(width / 2, height / 2, r * 2);
}
void setup() {
background(255);
}
void draw() {
if (mouseIsPressed) {
fill(20, 20, 20);
circle(mouseX, mouseY, 10);
}
}