struct Godot::Color::Oklch

Overview

Intermediary representation for Oklch (Cylindrical Oklab: Lightness, Chroma, Hue in degrees)

Defined in:

lapis/color.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

try?(&)
try?
try?

Constructor Detail

def self.new(l : Float32, c : Float32, h : Float32, alpha : Float32 = 1.0_f32) #

def self.new(l : Number, c : Number, h : Number, alpha : Number = 1.0) #

Instance Method Detail

def alpha : Float32 #

def alpha=(alpha : Float32) #

def alpha=(val : Number) : Void #

def c : Float32 #

def c=(c : Float32) #

def c=(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 to_color : Godot::Color #

def to_oklab : Oklab #

def to_rgb : Godot::Color #

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

Same as #inspect(io).