class LSProtocol::Color
- LSProtocol::Color
- Reference
- Object
Overview
Represents a color in RGBA space.
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(alpha : Float32 | Nil, blue : Float32 | Nil, green : Float32 | Nil, red : Float32 | Nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#alpha : Float32
The alpha component of this color in the range [0-1].
-
#blue : Float32
The blue component of this color in the range [0-1].
-
#green : Float32
The green component of this color in the range [0-1].
-
#red : Float32
The red component of this color in the range [0-1].
Constructor Detail
def self.new(alpha : Float32 | Nil, blue : Float32 | Nil, green : Float32 | Nil, red : Float32 | Nil)
#