Tint v1.0.0-rc.1 Tint.DIN99 View Source

A color in the DIN99 colorspace.

Link to this section Summary

Functions

Converts a tuple containing lightness, a and b into Tint.DIN99 struct.

Builds a new DIN99 color using the lightness, a and b color channels.

Converts a DIN99 color into a tuple containing the lightness, a and b channels.

Link to this section Types

Link to this type

t() View Source
t() :: %Tint.DIN99{a: float(), b: float(), lightness: float()}

Link to this section Functions

Link to this function

from_tuple(arg) View Source
from_tuple({number(), number(), number()}) :: t()

Converts a tuple containing lightness, a and b into Tint.DIN99 struct.

Link to this function

new(lightness, a, b) View Source
new(number(), number(), number()) :: t()

Builds a new DIN99 color using the lightness, a and b color channels.

Link to this function

to_tuple(color) View Source
to_tuple(t()) :: {float(), float(), float()}

Converts a DIN99 color into a tuple containing the lightness, a and b channels.