- Modifié
How to I set the fill color in Corona?
How can I set the fill color of a whole object in Corona?
You can try something like "skeleton.group:setFillColor(slot.r, slot.g, slot.b, slot.a)". If not, maybe we need to add r,g,b,a fields to skeleton.
Thanks Nate.
I can't set a fill color to an entire group in Corona so I have to do it to each piece. I could get each piece and set its fill color, but that would be in vain if Spine sets it back.
Spine at least sets the fill color during setToSetUpPose but I'm not sure where the color comes from.
self:setColor(data.r, data.g, data.b, data.a)
Ah ok, I added r,g,b,a fields to skeleton which tint all slot images.
Nice! Thanks Nate!