struct Prism::ColorUInt8

Defined in:

prism/texture/color.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(red : UInt8, green : UInt8, blue : UInt8, alpha : UInt8) #

[View source]
def self.new(red : UInt8, green : UInt8, blue : UInt8) #

[View source]

Instance Method Detail

def alpha : UInt8 #

[View source]
def alpha=(alpha) #

[View source]
def black? #

Checks if the color is black


[View source]
def blue : UInt8 #

[View source]
def blue=(blue) #

[View source]
def green : UInt8 #

[View source]
def green=(green) #

[View source]
def red : UInt8 #

[View source]
def red=(red) #

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

Returns a string representation of this object.

Descendants must usually not override this method. Instead, they must override to_s(io), which must append to the given IO object.


[View source]
def transparent? #

Checks if the color has transparency


[View source]
def white? #

Checks if the color is white


[View source]