NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

colors.Shade.hsb()

Syntax

shadehsb()

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)