Giter VIP home page Giter VIP logo

prettypaint's Introduction

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

prettypaint's People

Contributors

korkemoms avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.