A kanji practice grid canvas widget for iced.
Renders a square 田-style grid (outer border + dashed center dividers) and lets the user draw freehand strokes with the mouse. Completed strokes are emitted as messages and stored by the application.
- Square grid that fills its container, centered, with dashed center dividers
- Freehand stroke drawing — click and drag to draw, release to commit
- Strokes are stored in normalized [0, 1] coordinates and scale correctly when the window is resized
- Optional Ramer–Douglas–Peucker stroke simplification to reduce stored points
- Optional reference character displayed as a faint guide behind the strokes
- Fully theme-aware — colors follow the iced theme by default, or can be overridden per-instance
- Configurable corner style (round, bevel, miter), grid color, stroke color, reference font, and reference opacity
For complete usage examples, see the examples/ folder.
