Skip to content

Instantly share code, notes, and snippets.

View NikkiKoole's full-sized avatar
💭
🍌

Nikki Koole NikkiKoole

💭
🍌
View GitHub Profile
@NikkiKoole
NikkiKoole / main.lua
Created September 26, 2017 12:36
generate polygon (lua & love2d)
-- --https://stackoverflow.com/questions/8997099/algorithm-to-generate-random-2d-polygon
function love.load()
poly = generatePolygon(100,100, 100, 0.0, 0.5, 16)
end
function love.draw()
love.graphics.polygon('fill', poly)
end
function clip(value, min, max)