Godot::Color
Inherits Struct < Value < Object
A color represented in RGBA format with 32-bit floating point precision per channel.
Constants
BLACK = Color.new(0.0_f32, 0.0_f32, 0.0_f32, 1.0_f32)
BLUE = Color.new(0.0_f32, 0.0_f32, 1.0_f32, 1.0_f32)
GREEN = Color.new(0.0_f32, 1.0_f32, 0.0_f32, 1.0_f32)
RED = Color.new(1.0_f32, 0.0_f32, 0.0_f32, 1.0_f32)
WHITE = Color.new(1.0_f32, 1.0_f32, 1.0_f32, 1.0_f32)
Constructors
new(r : Float32 = 1.0_f32, g : Float32 = 1.0_f32, b : Float32 = 1.0_f32, a : Float32 = 1.0_f32)
Sourcenew(r : Number, g : Number, b : Number, a : Number = 1.0)
Sourcenew(pointer : Pointer(Void))
SourceInstance methods
a=(a : Float32)
Sourceb=(b : Float32)
Sourceg=(g : Float32)
Sourcer=(r : Float32)
Source