I would just track it in a variable. You could even add it onto the object in question.
For example:
[code]
test = display.newRect(0,0,200,200)
test.myfill = {}
function SetMyfill(ob,c1,c2,c3,a1)
{
ob:setFillColor(c1,c2,c3,a1)
ob.myfill[1] = c1
ob.myfill[2] = c2
ob.myfill[3] = c3
ob.myfill[4] = a1
}
SetMyfill(test,200,100,5,255)
print (test.myfill[1]) – prints 200
print (test.myfill[2]) – prints 100
print (test.myfill[3]) – prints 5
print (test.myfill[4]) – prints 255
[/code] [import]uid: 56820 topic_id: 29342 reply_id: 117934[/import]