Tint.DIN99 (Tint v1.1.0) 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

Specs

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

Link to this section Functions

Specs

from_tuple({number(), number(), number()}) :: t()

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

Specs

new(number(), number(), number()) :: t()

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

Specs

to_tuple(t()) :: {float(), float(), float()}

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