A simple Shape type to render vectorial shapes through golang.org/x/image/vector#Rasterizer.
The Shape type offers two APIs:
- sfnt/Ebitengine style:
MoveTo,LineTo,QuadTo,CubeTo. - Relative style:
Turn,TurnTo,Move,Line.
This code was originally part of etxt, but it was split after v0.0.9. The code now doesn't depend on etxt nor Ebitengine.
Check out a cool online example, or run it yourself with:
go run github.com/tinne26/sfntshape/examples/rng@latest
(Instructions can be hidden with H and fullscreen can be switched with F)