Pote.Converters.HSL (Pote v2.2.0)

Copy Markdown View Source

Conversions to/from HSL.

Summary

Functions

Creates HSL from RGB.

Converts HSL to RGB.

Types

hsl()

@type hsl() :: Pote.hsl()

rgb()

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

Functions

from_rgb(rgb)

@spec from_rgb(rgb()) :: hsl()

Creates HSL from RGB.

to_rgb(arg)

@spec to_rgb(hsl()) :: rgb()

Converts HSL to RGB.