Skip to content

feat: drawing primitives (lines, rects, circles) - #17

Merged
0717lee merged 1 commit into
mainfrom
feat/drawing
Jul 27, 2026
Merged

feat: drawing primitives (lines, rects, circles)#17
0717lee merged 1 commit into
mainfrom
feat/drawing

Conversation

@0717lee

@0717lee 0717lee commented Jul 27, 2026

Copy link
Copy Markdown
Owner

In-place drawing layer with silent bounds clipping:

  • draw_line: classic integer-only Bresenham
  • draw_rect / fill_rect
  • draw_circle: midpoint algorithm, 8-way symmetric; fill_circle: exact disk predicate
  • 4 new tests with exact pixel counts (diagonal = 1 px/column, 5x4 perimeter = 14, r=2 disk = 13 px, off-canvas clipping)
  • 72/72 tests passing

Closes #7

In-place, bounds-clipped primitives: draw_line (integer Bresenham), draw_rect/fill_rect, draw_circle (8-way midpoint) and fill_circle. Closes #7
@0717lee
0717lee merged commit e79c059 into main Jul 27, 2026
1 check passed
@0717lee
0717lee deleted the feat/drawing branch July 27, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: drawing API (Bresenham lines, circles, rectangles, fill)

1 participant