Low Poly Backgrounds

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Posts: 92
Joined: Fri May 30, 2014 2:30 am
Location: Boston, MA, USA

Low Poly Backgrounds

Post by MicroMacro » Sat Jul 16, 2016 4:30 pm

Hey all!
I'd like to experiment with using low-poly graphics. For now, I want to generate a somewhat large lowpoly background (just like http://alssndro.github.io/trianglify-ba ... generator/ does) and draw it to a canvas, so I could parallax it. Im sure it won't look as good as I imagine it in my head, but it's worth a try.

Is there a low-poly generating function out there for lua/Love2D? If so, I'd love to see it.

https://github.com/ebernerd- where you can find all my work.

User avatar
Party member
Posts: 2733
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary

Re: Low Poly Backgrounds

Post by zorg » Sat Jul 16, 2016 4:49 pm

I read some threads here about generating Voronoi graphs, one could use a lib like that to create points with set boundaries (the size of the canvas, for example), number of points can be set, then triangulate everything, order the triangles according to the x/y coordinates of their centroids, then finally, apply a gradient to all the triangles in either the horizontally or the vertically ordered table (or both, though you'd need to combine the two gradients, or store them separately, and combine them later)

That would mostly replicate the effects of the generator you linked, anything else is just finetuning.
Have fun implementing it. :3
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 11 guests