Skip to content

scto/PrettyPaint

 
 

Repository files navigation

PrettyPaint

PrettyPaint is for drawing pretty polygons in libGDX. Click here for some examples.

Screenshot of some PrettyPaint polygons.

Description

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)

Unmerged and unaligned. Merged and aligned.

It depends on two great libraries: poly2tri and Clipper. I have modified these libraries a little bit to make them work with GWT.

How to use

For now you must copy the source code from git if you want to try it. Click here for some examples.

License

Things im not happy about

  • 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

About

PrettyPaint is for drawing pretty polygons in libGDX.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%