Chameleon.HSV (chameleon v2.3.0)
HSV (hue, saturation, value) represents colors using a cylinder where colors are sorted by angles and then adjusted via the saturation and value parameters.
Link to this section Summary
Functions
Creates a new color struct.
Link to this section Types
Link to this type
degrees()
Specs
degrees() :: 0..360
Link to this type
percent()
Specs
percent() :: 0..100
Specs
Link to this section Functions
Link to this function
new(h, s, v)
Specs
new(non_neg_integer(), non_neg_integer(), non_neg_integer()) :: t()
Creates a new color struct.
Examples
iex> _hsv = Chameleon.HSV.new(7, 8, 9)
%Chameleon.HSV{h: 7, s: 8, v: 9}