PrettyPaint is for drawing pretty polygons in libGDX. Click here for some examples.
PrettyPaint by Andreas Modahl is a small library for drawing polygons with texture filling and anti-aliased outlines. It is supposed to be easy and quick to set up and use.
Here are some of the things it can do:
- Merge the outlines and align the textures of overlapping polygons.
- Simple shadows or glow(just wider and less opaque outlines drawn behind)
- Frustum culling
- Draw background(s)
It depends on two great libraries: poly2tri and Clipper. I have modified these libraries a little bit to make them work with GWT.
For now you must copy the source code from git if you want to try it. Click here for some examples.
- PrettyPaint: MIT license
- poly2tri: New BSD License
- Clipper: Boost Software License
- Very sharp angles when combined with thick edges looks bad
- Its not very fast
- Seamlessly tiling texture regions from texture atlas does not work on many mobile devices