struct Godot::Color::Lab

Overview

Intermediary representation for CIE 1976 Lab* (CIELAB)

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, a : Float32, b : Float32, alpha : Float32 = 1.0_f32) #

def self.new(l : Number, a : Number, b : Number, alpha : Number = 1.0) #

Instance Method Detail

def a : Float32 #

def a=(a : Float32) #

def a=(val : Number) : Void #

def alpha : Float32 #

def alpha=(alpha : Float32) #

def alpha=(val : Number) : Void #

def b : Float32 #

def b=(b : Float32) #

def b=(val : Number) : Void #

def delta_e(other : Lab) : Float32 #

Computes perceptual color difference (CIE76 Delta-E)


def l : Float32 #

def l=(l : Float32) #

def l=(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).