Tint v1.0.0-rc.0 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: Decimal.t(), b: Decimal.t(), lightness: Decimal.t()}

Link to this section Functions

Link to this function

from_tuple(arg) View Source
from_tuple(
  {lightness :: float() | Decimal.decimal(), a :: float() | Decimal.decimal(),
   b :: float() | Decimal.decimal()}
) :: t()

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.

Link to this function

to_tuple(color) View Source
to_tuple(t()) :: {Decimal.t(), Decimal.t(), Decimal.t()}

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