Difference between revisions of "User:Subrime"

(Created page with 'ideas for gradients in love: from irc:loveclub subrime: I have an idea add a love.graphics.gradient function that can stand in for a series of colours in setColor the gradient …')
 
Line 6: Line 6:
 
I have an idea
 
I have an idea
 
add a love.graphics.gradient function that can stand in for a series of colours in setColor
 
add a love.graphics.gradient function that can stand in for a series of colours in setColor
 +
 
the gradient function can take things like a direction and two colours
 
the gradient function can take things like a direction and two colours
 
and it returns the correct seties of rgba values for setColor
 
and it returns the correct seties of rgba values for setColor
 +
 
eg setcolor(love.graphics.gradient(red,yellow,math.pi/3))
 
eg setcolor(love.graphics.gradient(red,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
 
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?
 
does this cover what you were envisioning?
  
 
anjo:
 
anjo:
 
actually, yes it does, and quite nicely.
 
actually, yes it does, and quite nicely.

Revision as of 01:16, 30 March 2010

ideas for gradients in love:

from irc:loveclub

subrime: I have an idea add a love.graphics.gradient 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(love.graphics.gradient(red,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?

anjo: actually, yes it does, and quite nicely.