struct Godot::Color::CMYK

Overview

Intermediary representation for Cyan, Magenta, Yellow, Key (Black), 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(c : Float32, m : Float32, y : Float32, k : Float32, a : Float32 = 1.0_f32) #

def self.new(c : Number, m : Number, y : Number, k : Number, a : Number = 1.0) #

Instance Method Detail

def a : Float32 #

def a=(a : Float32) #

def a=(val : Number) : Void #

def c : Float32 #

def c=(c : Float32) #

def c=(val : Number) : Void #

def k : Float32 #

def k=(k : Float32) #

def k=(val : Number) : Void #

def m : Float32 #

def m=(m : Float32) #

def m=(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(val : Number) : CMYK #

def with_c(val : Number) : CMYK #

def with_k(val : Number) : CMYK #

def with_m(val : Number) : CMYK #

def with_y(val : Number) : CMYK #

def y : Float32 #

def y=(y : Float32) #

def y=(val : Number) : Void #