setFillColor problems understanding.....

Hi, I am trying to make my day scene into a night scene by using SetFillColor on all my assets.

When I first started to use the API it looked like crap. I am adding a blue color over all assets to simulate a night scene. The first API call I was testing was:

Object:setFillColor( R, G, B, Alpha) as from the documentation

  
 sprite:setFillColor( 87, 172, 252, 1 )  
  

And this looks just like crap, please see http://cl.ly/HufZ for a sample of my trees in the night scene.

So then by mistake I added a fifth parameter to the API:

  
 sprite:setFillColor( 0, 87, 172, 252, 1 )  
  

and then the trees looks just perfect, and it looks really like a night scene, please see http://cl.ly/Hu4M

So what is happening here? What parameters is the color and why can I put in five params, instead of four?

My RGB values is 87,172,252 - or what I think they are???

Best regards, Joakim [import]uid: 81188 topic_id: 28350 reply_id: 328350[/import]

I don’t know what the original image is supposed to look like, but the alpha values should be a 0-255 value rather than a 0-1 value, which should change it.

I tried using 846, and found that using either 3, 4, or 5 parameters the ordering I got was R, G, B, [Discarded], [Discarded]. Using a solid image from a LoqSprite atlas, I couldn’t see any difference regardless of my alpha values. [import]uid: 134101 topic_id: 28350 reply_id: 114523[/import]

I think i saw something about the alpha only affects text objects. I am not sure. I am on 843.

So if my last parameters get discarded, I am properly adding the color 0, 87, 172 to my assets.

Thanks, Joakim [import]uid: 81188 topic_id: 28350 reply_id: 114557[/import]