class TestMatrix

Overview

Requires a truecolor terminal (24bit) like iterm2

Included Modules

Defined in:

test_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

Constructor Detail

def self.new #

[View source]

Instance Method Detail

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

[View source]
def []=(x, y, color : RGB(UInt8)) #

[View source]
def draw #

[View source]
def draw_point(x, y, color) #
Description copied from module CG2d::Drawable

To be implemented by the including class


[View source]
def index(x, y) #

[View source]