StumpyCore::Canvas
Inherits Reference / Object
Instance methods
circle(center_x, center_y, radius, color = RGBA::BLACK, filled = false)
Xiaolin Wu's circle algorithm
fill_polygon(vertices, color = RGBA::BLACK)
flip_horizontal!
flip_vertical!
line(x0 : Int, y0 : Int, x1 : Int, y1 : Int, color = RGBA::BLACK)
Xiaolin Wu's line algorithm
line(x0, y0, x1, y1, color = RGBA::BLACK)
line_bresenham(x0, y0, x1, y1, color = RGBA::BLACK)
Bresenham
text(x, y, string, font, color = RGBA::BLACK)