# NodeBox

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

# 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