8000 GitHub - erparts/go-shapes: Basic shapes and effects for Ebitengine
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

erparts/go-shapes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shapes

Go Reference

shapes is a package for Ebitengine (the 2D game library written by Hajime Hoshi) that allows rendering some common shapes and effects in complementary ways to the official vector package. Some examples:

  • Smooth triangles, hexagons, ellipses and rects (all with the option of rounding).
  • High quality image outlines, expansions and blurs.
  • Simple patterns like dots, rhombuses and triangles.
  • Some color functions and gradients.

Unlike vector, shapes relies more on simple Kage shaders instead of raw triangles rasterization. This means rendering tends to be smoother, but extra care has to be taken as changing shaders or some of its parameters will break batching.

[TODO: simple UI surface example image]

Credit

Many of the SDFs are based on https://iquilezles.org/articles/distfunctions2d.

About

Basic shapes and effects for Ebitengine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0