Thanks to visit codestin.com
Credit goes to github.com

Skip to content

tinne26/sfntshape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sfntshape

Go Reference

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)

About

Wanna make cool shapes?

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages