1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

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)