My ships have different colors on them, and they explode in different colors. However, two of them do not explode in the correct color for some reason. I am using the unpack() function to unpack these color values but they are not the correct colors.
The color is a light blue, but in-game it appears as a dark green.
I am using :setFillColor to set the color to a sprite of an explosion.
--explosion.lua local explosionColor = params.color or {1, 1, 0} explosion:setFillColor(unpack(explosionColor))
enemy.color = params.color or {1, 0, 0} --collision function explosion.new(cameraGroup, self.x, self.y, { xScale = 0.8, yScale = 0.8, color = self.color }) display.remove(self)
implementation: local assaultShip = parent.new(cameraGroup, group, x, y, { --, color = {24/255, 163/255, 227/255} --I have tried setting these to their corresponding decimal values but no dice })
Any ideas?