color.stroke()
Class: color
Sets the current color as the contour color.
c:color
strokeWeight(5)
c.hsv(255,255,255)
c.stroke()
c.hsv(255,255,100)
c.fill()
drawRectangle(10,10,100,100)
update()
color.background()
Class: color
Sets the current color as background color.
c = color(r=255)
c.background()
update()
color.hsv(h:byte,s:byte,v:byte)
Class: color
Initializes the color object with an HSV color value.
c:color
c.hsv(80,255,255)
Alternatively, you can also use the class initializer:
h = hue (color value between 0 and 255)
s = saturation(saturation, between 0 and 255)
v = value (brightness, between 0 and 255)
color.rgb(r:byte,g:byte,b:byte)
Class: color
Initializes the color object with an RGB color value (red, green, blue).
c:color
c.rgb(100,200,255)
Alternatively, you can also use the class initializer:
c = color(r=100,g=200,b=255)
color.fill()
Class: color
Sets the current color as the fill color.
c = color(r=50,g=100,b=80)
c.fill()
drawRectangle(10,10,100,100)
update()