struct Gloop::Color


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:



Instance Method Summary

Constructor Detail

def : Float32, green : Float32, blue : Float32, alpha : Float32) #

Creates the color with all components defined.

[View source]

Instance Method Detail

def alpha : Float32 #

Amount of the alpha component.

[View source]
def blue : Float32 #

Amount of the blue component.

[View source]
def green : Float32 #

Amount of the green component.

[View source]
def red : Float32 #

Amount of the red component.

[View source]