Incorrect colors appear in-game

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?

Does setFillColor tend to blend with the previous color? I am trying to go for blue, but the sprite by default is yellow, and putting it in a color mixer does return some greens, so could this be the issue?

Is the image you are colouring non-white? If you tint a sprite that isn’t white, the resulting colour may be different.

That could be it then, the sprite is yellow. But is there any workaround to this?

I just read the documentation for setFillColor:

“_Sets the fill color of vector and text objects. Also applies a tint to image objects. _”

Dang.

Use something like gimp to re-colour the sprite to shades of white/grey, then colour it yellow again in Corona.

Ok, made the sprite grayscale and it looks good now, thank you!

Does setFillColor tend to blend with the previous color? I am trying to go for blue, but the sprite by default is yellow, and putting it in a color mixer does return some greens, so could this be the issue?

Is the image you are colouring non-white? If you tint a sprite that isn’t white, the resulting colour may be different.

That could be it then, the sprite is yellow. But is there any workaround to this?

I just read the documentation for setFillColor:

“_Sets the fill color of vector and text objects. Also applies a tint to image objects. _”

Dang.

Use something like gimp to re-colour the sprite to shades of white/grey, then colour it yellow again in Corona.

Ok, made the sprite grayscale and it looks good now, thank you!