Graphics

The layout manager makes it easy to create regions, rectangular areas defined relative to the screen, the stage (which may or may not be the full screen), and to the previously created user-defined regions. The final regions are created with content coordinates.

Comments, 270 Votes - submitted on 22/06/2016 view repo

2d Math Library for Corona SDK / Lua

Point is a 2d math library for Corona SDK or just plain ol' lua. It allows us to think of positions within corona as single units (points) vs independent x and y coordinates. You can run methods directly on those points.

Comments, 241 Votes - submitted on 17/05/2016 view repo

transition.to doesn't seem to support color transitions. So I made one myself using enterFrame, which is how I suspect corona's transition library works too.

Comments, 342 Votes - submitted on 27/04/2016 view repo

Converts your hex (html-format) or RGB values into Corona-compatible format (numbers from 0 to 1). No difficulties, only two functions: hex('value') and rgb(rNum, gNum, bNum).

Comments, 494 Votes - submitted on 15/01/2016 view repo

Create a filled or unfilled circle or ring and move the output polygon by the circle centre not the polygon centre.

Requires the mathlib library: https://code.coronalabs.com/code/mathliblua

Comments, 290 Votes - submitted on 01/11/2015 view repo

Uses snapshots and text objects to make outlined text in the Corona SDK. Good performance since the outlines are only drawn when the text changes...

Comments, 227 Votes - submitted on 10/08/2015 view repo

Graphical representation utilizing the Fibonacci sequence to tell the time.
Clock video demo :
https://youtu.be/bi-uZVHnfbI

Comments, 251 Votes - submitted on 30/07/2015 view repo

Simple code that allows multitouch and single touch on an image.
In my project I added lots of assets on top of the image and put them all in a container. This allowed me move a chart (map) and overlay marks and routes and have them all zoom, pinch and scroll.

Comments, 376 Votes - submitted on 17/06/2015 view repo

This function returns a matrix of RGB values that allow you to gradually change from one color to another using a single index, like the position of a scrollview/springboard.

It takes a two dimensional array of RGB colors, each page width and the total amount of pages.

Comments, 487 Votes - submitted on 14/05/2015 view repo

Have you ever wondered how to create 9-sliced images using Corona? Corona only provides a few possibilities to do it, but it requires 9 previously sliced images to mount it at runtime, but now you can do it using just one image!

Comments, 272 Votes - submitted on 01/05/2015 view repo