View Source Tint.DIN99 (Tint v1.3.0)

A color in the DIN99 colorspace.

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.

Types

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

Functions

Link to this function

from_tuple(arg)

View Source (since 1.0.0)
@spec 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 (since 1.0.0)
@spec 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 (since 1.0.0)
@spec to_tuple(t()) :: {float(), float(), float()}

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