Skip to content

Instantly share code, notes, and snippets.

View mroberti's full-sized avatar

Mario Roberti mroberti

View GitHub Profile
@HoraceBury
HoraceBury / circlelib.lua
Last active October 26, 2017 00:13
Create a portion of a fill or unfilled circle as a polygon and move it by it's circle-centre. Requires image: http://content.screencast.com/users/HoraceBury/folders/Default/media/18ea951e-71a1-44f4-a148-f2109a1c9059/brush2.png Download full solution: https://www.dropbox.com/s/8472upw9w2cwkwi/CircleLib.2015-12-02.001.zip?dl=0
-- circle lib
require("mathlib")
display.setDefault( "isAnchorClamped", false )
local min, max = -10000000000000, 10000000000000
local cache = {}
local circlelib = {}