CSSEx.HSLA.from_rgba
You're seeing just the function
from_rgba
, go back to CSSEx.HSLA module for more information.
Specs
from_rgba(%CSSEx.RGBA{a: term(), b: term(), g: term(), r: term()}) :: {:ok, %CSSEx.HSLA{a: term(), h: term(), l: term(), s: term()}}
Converts an existing %CSSEx.RGBA{}
struct into a %CSSEx.HSLA{}
struct.
Taken from https://www.niwa.nu/2013/05/math-behind-colorspace-conversions-rgb-hsl/