Search found 56 matches

by EmmanuelOga
Thu Feb 17, 2011 6:04 pm
Forum: Support and Development
Topic: one color for each point on a poligon?
Replies: 10
Views: 2625

Re: one color for each point on a poligon?

I'd rather always provide the color as a table. I think it would be more natural to put the color before the new vertex you are defining. love.polygon("fill / line", [[color], x, y], [[color1], x1, y1], ..., [[colorn], xn, yn]) same with a table: love.polygon("fill / line", { [[c...
by EmmanuelOga
Thu Feb 17, 2011 1:52 pm
Forum: Support and Development
Topic: one color for each point on a poligon?
Replies: 10
Views: 2625

Re: one color for each point on a poligon?

I see, I could use some equations to find the color for each point. If I did that I guess I should use an ImageData object to pre-render the image, then convert to a drawable and only then draw it to screen. right? But I think it should be possible to do it in a more efficient way with opengl. I fou...
by EmmanuelOga
Thu Feb 17, 2011 2:43 am
Forum: Support and Development
Topic: one color for each point on a poligon?
Replies: 10
Views: 2625

one color for each point on a poligon?

Hi, http://love2d.org/wiki/love.graphics.polygon allows me to render a filled poligon, but only allows solid colors by calling love.graphics.setColor before. I wonder if there is a way to assign a different color to each point to get it shaded like in the "popular" opengl triangle :) http:...
by EmmanuelOga
Mon Feb 14, 2011 3:06 pm
Forum: Libraries and Tools
Topic: ...and a tweening library.
Replies: 2
Views: 2378

Re: ...and a tweening library.

So this morning I realized it might be easier to test this stuff with a couple .love files, so here I attach a couple ones.
tweener-follow-0.7.love
Tweener follow example (love 0.7)
(5.66 KiB) Downloaded 286 times
easing-with-0.7.love
easing demo, love 0.7
(3.71 KiB) Downloaded 287 times
tweener-circle-love-0.7.love
Tweener circle path example (love 0.7)
(5.49 KiB) Downloaded 287 times
by EmmanuelOga
Mon Feb 14, 2011 5:39 am
Forum: Libraries and Tools
Topic: ...and a tweening library.
Replies: 2
Views: 2378

...and a tweening library.

Hello again, to follow up that previous post about an easing functions library here is a tweening one, which I called... (drumroll...) ... tweener . Just for the record I tried for a while to give it a better name, perhaps extracting it some how from the lyrics of "In Between Love" by Tom ...
by EmmanuelOga
Sun Feb 13, 2011 5:16 pm
Forum: Libraries and Tools
Topic: Robert Penner's easing functions
Replies: 1
Views: 1967

Robert Penner's easing functions

Hello, I ported to lua the easing functions based off Robert Penner's work, but with tweener as the main source. There are two examples, one using plain old lua and the other one (arguably more interesting) using LÖVE. https://github.com/EmmanuelOga/easing No tweening helpers are included, I might g...