Chameleon.HSV (chameleon v2.5.0) View Source

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

Specs

degrees() :: 0..360

Specs

percent() :: 0..100

Specs

t() :: %Chameleon.HSV{h: degrees(), s: percent(), v: percent()}

Link to this section Functions

Specs

Creates a new color struct.

Examples

iex> _hsv = Chameleon.HSV.new(7, 8, 9)
%Chameleon.HSV{h: 7, s: 8, v: 9}