Hi my name is Erick and first of all, i’m new at Corona, and have been reading the forum and the community just seems great in support and collaboration, so in advanced tnx to everyone 'cause even without touching the SDK i have learned a lot just with that.
My first question here is about drawing a radial gradient, i have found a linear gradient script and i wanted to know if there is something similar for a radial…
local percent = i/height;
local amt = (1.0 - percent );
myRed = amt * rr + percent * r
myGreen = amt * gg + percent * g
myBlue = amt * bb + percent * b
local newRect = display.newCircle(display.contentWidth/2,display.contentHeight/2,radius);
newRect:setFillColor(myRed,myGreen,myBlue,255);
radius = radius - 2;
end
It’s amazing your support to the community,
Thank you Carlos implementing the code right now! [import]uid: 13637 topic_id: 5825 reply_id: 20391[/import]
Sweeeeet!! Really nice Carlos, in a couple of weeks i will be showing my app to be submitted with some beautiful gradients!!.. [import]uid: 13637 topic_id: 5825 reply_id: 20508[/import]
I’m wondering about the linear gradient script you said you already had. I haven’t been able to track down an example of that. Can you post that? [import]uid: 3671 topic_id: 5825 reply_id: 29243[/import]