Chameleon.RGB (chameleon v2.3.0)
Link to this section Summary
Functions
Creates a new color struct.
Link to this section Types
Specs
Link to this section Functions
Link to this function
new(r, g, b)
Specs
new(non_neg_integer(), non_neg_integer(), non_neg_integer()) :: t()
Creates a new color struct.
Examples
iex> _rgb = Chameleon.RGB.new(25, 30, 80)
%Chameleon.RGB{r: 25, g: 30, b: 80}