Chameleon.RGB888 (chameleon v2.5.0) View Source

Link to this section Summary

Functions

Creates a new color struct.

Link to this section Types

Specs

t() :: %Chameleon.RGB888{b: integer(), g: integer(), r: integer()}

Link to this section Functions

Specs

Creates a new color struct.

Examples

iex> _rgb888 = Chameleon.RGB888.new(25, 30, 80)
%Chameleon.RGB888{r: 25, g: 30, b: 80}