View Source Color.Rgba (ExUnion v0.1.2)

Link to this section Summary

Link to this section Types

@type t() :: %Color.Rgba{alpha: float(), blue: 0..255, green: 0..255, red: 0..255}

Link to this section Functions

@spec new(fields :: %{red: 0..255, green: 0..255, blue: 0..255, alpha: float()}) ::
  t()
@spec new(fields :: [red: 0..255, green: 0..255, blue: 0..255, alpha: float()]) :: t()
Link to this function

new(red, green, blue, alpha)

View Source
@spec new(red :: 0..255, green :: 0..255, blue :: 0..255, alpha :: float()) :: t()