ColorΒΆ
color.spad line 1 [edit on github]
Color() specifies a domain of 27 colors provided in the Language{} system (the colors mix additively).
- *: (DoubleFloat, %) -> %
s * c
, returns the colorc
, whose weighted shade has been scaled bys
.
- *: (PositiveInteger, %) -> %
s * c
, returns the colorc
, whose weighted shade has been scaled bys
.
- +: (%, %) -> %
c1 + c2
additively mixes the two colorsc1
andc2
.
- blue: () -> %
blue()
returns the position of the blue hue from total hues.
- coerce: % -> OutputForm
from CoercibleTo OutputForm
- color: Integer -> %
color(i)
returns a color of the indicated huei
.
- green: () -> %
green()
returns the position of the green hue from total hues.
- hue: % -> Integer
hue(c)
returns the hue index of the indicated colorc
.
- latex: % -> String
from SetCategory
- numberOfHues: () -> PositiveInteger
numberOfHues()
returns the number of total hues, set in totalHues.
- red: () -> %
red()
returns the position of the red hue from total hues.
- yellow: () -> %
yellow()
returns the position of the yellow hue from total hues.