colors.Shade.hsb()

Syntax

shade.hsb()

Description

Returns a color that can be passed to the NodeBox fill() and stroke() commands. The color is in HSB (Hue/Saturation/Brightness) values, and the NodeBox colormode() command is automatically switched to HSB.

Example

import colors
c = colors.colors("sky", top=3)
fill(c.random().hsb())
rect(0, 0, WIDTH, HEIGHT)