Chameleon.Hex (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.Hex{hex: String.t()}

Link to this section Functions

Specs

new(String.t()) :: t()

Creates a new color struct.

Examples

iex> _hex = Chameleon.Hex.new("FF0000")
%Chameleon.Hex{hex: "FF0000"}