Drawing primitives without anti-aliasing #4

Closed
opened 2026-11-01 23:21:15 +00:00 by Weissstreifen · 0 comments

All charts draw with hard pixel edges on the art pixel grid, with no anti-aliasing:

  • Outlined and filled rects (with shadow), thick lines and polylines, arrows.
  • Filled sectors, rings and ring sectors for pies and donuts, tested per pixel at the pixel center, with outlines.
  • Stretchable sprites (3-slice, vertical and horizontal): a cap, a repeating or stretching body and a base, from a texture drawn in grayscale and tinted with a series color (or mapped: dark/mid/light grays → dark/base/light of the series color). Used for bars, see the bar chart issue.

Generic parts go to parin_kit, see parin_kit#140. Until they land, keep a small source/pixel_shapes.d with // TODO: move to parin_kit, see parin_kit#140.

Done when: a test scene shows a pie, a ring, thick lines and an outlined box, all with crisp edges at x1 and at x3.

All charts draw with hard pixel edges on the art pixel grid, with no anti-aliasing: - Outlined and filled rects (with shadow), thick lines and polylines, arrows. - Filled sectors, rings and ring sectors for pies and donuts, tested per pixel at the pixel center, with outlines. - **Stretchable sprites (3-slice, vertical and horizontal):** a cap, a repeating or stretching body and a base, from a texture drawn in grayscale and tinted with a series color (or mapped: dark/mid/light grays → `dark`/`base`/`light` of the series color). Used for bars, see the bar chart issue. Generic parts go to parin_kit, see **parin_kit#140**. Until they land, keep a small `source/pixel_shapes.d` with `// TODO: move to parin_kit, see parin_kit#140`. **Done when:** a test scene shows a pie, a ring, thick lines and an outlined box, all with crisp edges at x1 and at x3.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Weissstreifen/daviz#4
No description provided.