class StumpyCore::Canvas
- StumpyCore::Canvas
- Reference
- Object
Defined in:
stumpy_utils/circle.crstumpy_utils/line.cr
stumpy_utils/polygon.cr
stumpy_utils/text.cr
stumpy_utils/transform.cr
Instance Method Summary
-
#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)
Instance Method Detail
Xiaolin Wu's circle algorithm
Xiaolin Wu's line algorithm