Pote.Converters.HWB (Pote v2.2.0)

Copy Markdown View Source

Conversions to/from HWB (Hue, Whiteness, Blackness).

Summary

Functions

Converts RGB to HWB.

Converts HWB to RGB.

Types

hwb()

@type hwb() :: {float(), float(), float()}

rgb()

@type rgb() :: Pote.rgb()

Functions

from_rgb(arg)

@spec from_rgb(rgb()) :: hwb()

Converts RGB to HWB.

to_rgb(arg)

@spec to_rgb(hwb()) :: rgb()

Converts HWB to RGB.