struct

Galaxy::Color

Inherits Struct < Value < Object

Constructors

new(r : Float64, g : Float64, b : Float64, a : Float64 = 1.0)
Source

Instance methods

mix(other : Color, amount : Float64) : Color
Source
opacity(alpha : Float64) : Color
Source
shade(light : Float64) : Color
Source