class LSProtocol::Color

Overview

Represents a color in RGBA space.

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(alpha : Float32 | Nil, blue : Float32 | Nil, green : Float32 | Nil, red : Float32 | Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def alpha : Float32 #

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


[View source]
def blue : Float32 #

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


[View source]
def green : Float32 #

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


[View source]
def red : Float32 #

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


[View source]