View Source Color.Hsla (ExUnion v0.1.2)

Link to this section Summary

Link to this section Types

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

Link to this section Functions

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

new(hue, saturation, lightness, alpha)

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