setting
v0.0.6background(r, g, b, a);
Clear a background with a color
Arguments
r
The red byteg
The green byteb
The blue bytea
The alpha bytefill(r, g, b, [a]);
Set the fill color for shapes
Arguments
r
The red byteg
The green byteb
The blue byte[a]
The alpha byteCan also accept a hexadecimal or color name as string
fill(255, 150, 40);
square(200, 200, 64);
strokeWeight(weight);
No description
Arguments
weight
The line width in pixels strokeWeight(8);
line(200, 200, mouseX, mouseY);
noFill();
Disable fill
stroke(r, g, b, a);
Set the stroke color for shapes
Arguments
r
The red byteg
The green byteb
The blue bytea
The alpha byteOnly implemented for line
and circle
noStroke();
Disable stroke
Only implemented for line
and circle
push();
Save the style settings
pop();
Restore the style settings