View Source Color.Hsl (ExUnion v0.1.2)

Link to this section Summary

Link to this section Types

@type t() :: %Color.Hsl{hue: 0..360, lightness: float(), saturation: float()}

Link to this section Functions

@spec new(fields :: %{hue: 0..360, saturation: float(), lightness: float()}) :: t()
@spec new(fields :: [hue: 0..360, saturation: float(), lightness: float()]) :: t()
Link to this function

new(hue, saturation, lightness)

View Source
@spec new(hue :: 0..360, saturation :: float(), lightness :: float()) :: t()