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 color c, whose weighted shade has been scaled by s.

*: (PositiveInteger, %) -> %

s * c, returns the color c, whose weighted shade has been scaled by s.

+: (%, %) -> %

c1 + c2 additively mixes the two colors c1 and c2.

=: (%, %) -> Boolean

from BasicType

~=: (%, %) -> Boolean

from BasicType

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 hue i.

green: () -> %

green() returns the position of the green hue from total hues.

hue: % -> Integer

hue(c) returns the hue index of the indicated color c.

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.

AbelianSemiGroup

BasicType

CoercibleTo OutputForm

SetCategory