Palette

color.spad line 95 [edit on github]

This domain describes four groups of color shades (palettes).

= : (%, %) -> Boolean
from BasicType
bright : Color -> %

bright(c) sets the shade of a hue, c, above dim, but below pastel.

coerce : Color -> %

coerce(c) sets the average shade for the palette to that of the indicated color c.

coerce : % -> OutputForm
from CoercibleTo(OutputForm)
dark : Color -> %

dark(c) sets the shade of the indicated hue of c to it's lowest value.

dim : Color -> %

dim(c) sets the shade of a hue, c, above dark, but below bright.

hue : % -> Color

hue(p) returns the hue field of the indicated palette p.

latex : % -> String
from SetCategory
light : Color -> %

light(c) sets the shade of a hue, c, to it's highest value.

pastel : Color -> %

pastel(c) sets the shade of a hue, c, above bright, but below light.

shade : % -> Integer

shade(p) returns the shade index of the indicated palette p.

~= : (%, %) -> Boolean
from BasicType

CoercibleTo(OutputForm)

SetCategory

BasicType