examples

Processing / Java API / processing / done
Processing v0 examples

Starter snippets for the Processing page.

Parameters

Parameters are not fully documented yet.

Returns

Not specified.

Examples

No explicit examples yet.

Open playground to experiment live.

Runtime Notes

No additional runtime notes yet.

Details

Starter snippets for the Processing v0 transpile bridge.

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);
}

Mouse Dots

void setup() {
  background(255);
}

void draw() {
  if (mouseIsPressed) {
    fill(20, 20, 20);
    circle(mouseX, mouseY, 10);
  }
}

Open the Processing try page ยท Open syntax notes

Live Preview

Embedded AC preview