Fill color

How can i set a fill color to a display Group??

Since no one replied to you, I’ll give it a shot. I made the following function to handle changing the color of a group or individual object. Hopefully this can do what you need it to do.

[lua]

function ChangeShade(group,red,green,blue)
 if group.setFillColor then
  group:setFillColor(red,green,blue)
 elseif group.numChildren then
  for i=1, group.numChildren do
   group[i]:setFillColor(red,green,blue)
  end
 end
end

[/lua]

Since no one replied to you, I’ll give it a shot. I made the following function to handle changing the color of a group or individual object. Hopefully this can do what you need it to do.

[lua]

function ChangeShade(group,red,green,blue)
 if group.setFillColor then
  group:setFillColor(red,green,blue)
 elseif group.numChildren then
  for i=1, group.numChildren do
   group[i]:setFillColor(red,green,blue)
  end
 end
end

[/lua]