class LEDMatrix

Included Modules

Defined in:

led_matrix.cr

Constructors

Instance Method Summary

Instance methods inherited from module CG2d::Drawable

draw_circle(cx : Int, cy : Int, r : Int, color)
draw_circle(c : Vec, r, color)
draw_circle
, draw_line(x1 : Int, y1 : Int, x2 : Int, y2 : Int, color)
draw_line(p1 : CG2d::Vec, p2 : CG2d::Vec, color)
draw_line(line : CG2d::Line, color)
draw_line
, draw_point(x, y, color)
draw_point(point : CG2d::Vec, color)
draw_point

Instance methods inherited from module Layout::Z4

bytes_per_pixel : UInt32 bytes_per_pixel, index(x, y) index, panel_height : UInt32 panel_height, panel_width : UInt32 panel_width, panels_x : UInt32 panels_x, panels_y : UInt32 panels_y

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def [](x, y) #

[View source]
def []=(x, y, value : Tuple(UInt8, UInt8, UInt8)) #

[View source]
def draw_point(x, y, color) #

Implements Drawable


[View source]
def height : UInt32 #

[View source]
def pixels : Slice(UInt8) #

[View source]
def pixels_per_panel : UInt32 #

[View source]
def to_unsafe #

[View source]
def width : UInt32 #

[View source]