struct GL::Color4

Defined in:

sdl_test.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(red : Float = 1.0, green : Float = 1.0, blue : Float = 1.0, alpha : Float = 1.0) #

[View source]

Instance Method Detail

def alpha : Float64 #

[View source]
def alpha=(alpha : Float64) #

[View source]
def blue : Float64 #

[View source]
def blue=(blue : Float64) #

[View source]
def green : Float64 #

[View source]
def green=(green : Float64) #

[View source]
def inspect #
Description copied from class Object

Returns an unambiguous and information-rich string representation of this object, typically intended for developers.

This method should usually not be overridden. It delegates to #inspect(IO) which can be overridden for custom implementations.

Also see #to_s.


[View source]
def red : Float64 #

[View source]
def red=(red : Float64) #

[View source]