background(r, g, b, a);Clear a background with a color
Arguments
rThe red bytegThe green bytebThe blue byteaThe alpha bytefill(r, g, b, [a]);Set the fill color for shapes
Arguments
rThe red bytegThe green bytebThe 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
weightThe line width in pixelstrokeWeight(8);
ine(200, 200, mouseX, mouseY);stroke(r, g, b, a);Set the stroke color for shapes
Arguments
rThe red bytegThe green bytebThe blue byteaThe alpha byteOnly implemented for line and circle