struct PF::Pixel

Defined in:

pixel.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(rgba : UInt32) #

[View source]
def self.new(r : UInt8 = 255, g : UInt8 = 255, b : UInt8 = 255, a : UInt8 = 255) #

[View source]

Class Method Detail

def self.black #

[View source]
def self.blue #

[View source]
def self.cyan #

[View source]
def self.green #

[View source]
def self.magenta #

[View source]
def self.random #

[View source]
def self.red #

[View source]
def self.white #

[View source]
def self.yellow #

[View source]

Instance Method Detail

def *(n : Float64) #

[View source]
def +(n : Float64) #

[View source]
def -(n : Float64) #

[View source]
def /(n : Float64) #

[View source]
def a : UInt8 #

[View source]
def a=(a : UInt8) #

[View source]
def b : UInt8 #

[View source]
def b=(b : UInt8) #

[View source]
def format(format) #

[View source]
def g : UInt8 #

[View source]
def g=(g : UInt8) #

[View source]
def r : UInt8 #

[View source]
def r=(r : UInt8) #

[View source]
def to_u #

[View source]
def to_u32 #

[View source]