struct Godot::Color::HSL

Overview

Intermediary representation for Hue, Saturation, Lightness, and Alpha

Defined in:

lapis/color.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

try?(&)
try?
try?

Constructor Detail

def self.new(h : Float32, s : Float32, l : Float32, a : Float32 = 1.0_f32) #

def self.new(h : Number, s : Number, l : Number, a : Number = 1.0) #

Instance Method Detail

def a : Float32 #

def a=(a : Float32) #

def a=(val : Number) : Void #

def h : Float32 #

def h=(h : Float32) #

def h=(val : Number) : Void #

def l : Float32 #

def l=(l : Float32) #

def l=(val : Number) : Void #

def s : Float32 #

def s=(s : Float32) #

def s=(val : Number) : Void #

def to_color : Godot::Color #

def to_rgb : Godot::Color #

def to_s(io : IO) : Void #
Description copied from struct Struct

Same as #inspect(io).


def with_a(new_a : Number) : HSL #

def with_h(new_h : Number) : HSL #

def with_l(new_l : Number) : HSL #

def with_s(new_s : Number) : HSL #