struct Gloop::Color
- Gloop::Color
- Struct
- Value
- Object
Overview
Standard four-component color value.
Stores four color components - red, green, blue, and alpha. Each component is represented as a 32-bit floating-point number. Component values should be in the range [0, 1], but may extend past it.
Defined in:
gloop/color.crConstructors
-
.new(red : Float32, green : Float32, blue : Float32, alpha : Float32)
Creates the color with all components defined.
Instance Method Summary
-
#alpha : Float32
Amount of the alpha component.
-
#blue : Float32
Amount of the blue component.
-
#green : Float32
Amount of the green component.
-
#red : Float32
Amount of the red component.
Constructor Detail
def self.new(red : Float32, green : Float32, blue : Float32, alpha : Float32)
#
Creates the color with all components defined.