class

LSProtocol::Color

Inherits JSON::Serializable / Reference / Object

Represents a color in RGBA space.

Constructors

new(alpha : Float32 | Nil, blue : Float32 | Nil, green : Float32 | Nil, red : Float32 | Nil)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

alpha

The alpha component of this color in the range [0-1].

Source
blue

The blue component of this color in the range [0-1].

Source
green

The green component of this color in the range [0-1].

Source
red

The red component of this color in the range [0-1].

Source