module

CG2d::Drawable

Instance methods

draw_circle(cx : Int, cy : Int, r : Int, color)

Draw a circle using Bresenham’s Algorithm

Source
draw_circle(c : Vec, r, color)
Source
draw_line(x1 : Int, y1 : Int, x2 : Int, y2 : Int, color)

Draw a line using Bresenham’s Algorithm

Source
draw_line(p1 : CG2d::Vec, p2 : CG2d::Vec, color)

Draw a line using Bresenham’s Algorithm

Source
draw_line(line : CG2d::Line, color)

Draw a line using Bresenham’s Algorithm

Source
draw_point(x, y, color)

To be implemented by the including class

Source
draw_point(point : CG2d::Vec, color)
Source