ideas for gradients in love:

from irc:loveclub


I have an idea add a function that can stand in for a series of colours in setColor

the gradient function can take things like a direction and two colours and it returns the correct seties of rgba values for setColor

eg setcolor(,yellow,math.pi/3))

if the number of colour points set is 4 and is different from the number of vertices being drawn, fit a bounding rectangle and moodulate with its gradient

does this cover what you were envisioning?


actually, yes it does, and quite nicely.

This formatting is wrong, and the location as well, but anyway, I do not agree with setColor(gradient()), I really prefer setColorGradient() and not having to expose a Gradient type. --Bartbes 11:14, 30 March 2010 (UTC)