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

Description

An item inside a Color. Each color palette for a given query returns a list of Color objects, each with a set of shades like warm and cold. A Shade has a name, a weight (which ranges between 0.0 and 1.0 and represents the color's dominance in the total set) and a hsb() method.

Example

import colors
c = colors.colors("sky", top=3)
for color in c:
  for shade in color:
    print color.name, shade.name
>>>blue dark
>>>blue bright
>>>blue light
>>>red dark
>>>red bright
>>>red light
>>>orange dark
>>>orange bright
>>>orange light