View Source GenLSP.Structures.Color (gen_lsp v0.7.3)

Represents a color in RGBA space.

Link to this section Summary

Functions

Fields

  • red: The red component of this color in the range [0-1].
  • green: The green component of this color in the range [0-1].
  • blue: The blue component of this color in the range [0-1].
  • alpha: The alpha component of this color in the range [0-1].

Link to this section Types

@type t() :: %GenLSP.Structures.Color{
  alpha: float(),
  blue: float(),
  green: float(),
  red: float()
}

Link to this section Functions

Link to this function

%GenLSP.Structures.Color{}

View Source (struct)

fields

Fields

  • red: The red component of this color in the range [0-1].
  • green: The green component of this color in the range [0-1].
  • blue: The blue component of this color in the range [0-1].
  • alpha: The alpha component of this color in the range [0-1].