struct Godot::Color::HSV

Overview

Intermediary representation for Hue, Saturation, Value, and Alpha

Defined in:

libgodot/types/color.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

try?(&)
try?
try?

Constructor Detail

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

def self.new(h : Number, s : Number, v : 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 s : Float32 #

def s=(s : Float32) #

def s=(val : Number) : Void #

def to_color : Godot::Color #

Converts this HSV value back into a standard Godot::Color


def to_rgb : Godot::Color #

Shorthand alias to to_color


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

Same as #inspect(io).


def v : Float32 #

def v=(v : Float32) #

def v=(val : Number) : Void #

def with_a(new_a : Number) : HSV #

def with_h(new_h : Number) : HSV #

def with_s(new_s : Number) : HSV #

def with_v(new_v : Number) : HSV #