LED - LE pure 2d drawing library
Let's admit it, LE context drawing functions are essentially OK, but are very basic and very low-level. I wish something like LED library API would make a part of the official LE API one day.
Until then, here is LED: a lightweight (~350 lines of code) LUA 2d drawing library draft. It gives you out of the box entities - Text, Panel, Image and Animation - enriched with useful functions like SetPosition, SetScale, SetColor, Release and similar.
In order to use it grab Main.lua (for the example) and LED/LED.lua (for the lib itself) files from my github.
P.S. Library is in its early state of development, so bugs are possible (even trivial ones ). In the future, I'll add the documentation (for now, use the Main.lua example and read the code - it's not complicated) and more functionality. Do not hesitate to participate in the development if you like the project.
EDIT 04.06.15
Added SetPivot() via shaders.
EDIT 05.06.15
Added Intersection(). Now you can test for basic rectangle based overlapping.
- 6
10 Comments
Recommended Comments