struct

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)
Source
new(r : Number, g : Number, b : Number, a : Number = 1.0)
Source
new(pointer : Pointer(Void))
Source

Instance methods

a=(a : Float32)
Source
b=(b : Float32)
Source
g=(g : Float32)
Source
r=(r : Float32)
Source