deckcraft/crates/render
Brandon Thomas 5eb2797cd4 Render: rectangle and outline path gradients
Path gradients that follow a rectangle (path="rect") or the shape's own
outline (path="shape") were drawn as circles. They're now rasterised into
a small image of the bounds: rect takes the larger of the horizontal and
vertical shares of the distance from the focus to the edge (X-shaped
contours), shape the share of the way from the focus to the outline along
the same ray (an ellipse gives ellipses, a triangle triangles), as
measured on PowerPoint's export. The two path probe decks now match it to
a mean pixel difference of 1.7 and 0.6 (from 15.6 and 22).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-12 17:58:14 -04:00
..
src Render: rectangle and outline path gradients 2026-10-12 17:58:14 -04:00
tests/fixtures Emoji: drawn in colour, with families, skin tones and flags joined (#278) 2026-10-12 17:48:51 -04:00
Cargo.toml Emoji: drawn in colour, with families, skin tones and flags joined (#278) 2026-10-12 17:48:51 -04:00