colour problem

Why is this not working? The colour of object03 stays white – regardless of the values set via setFillColor.

local cX = display.contentWidth/2 ; local cY = display.contentHeight/2 local object03 = display.newRect( cX,cY,256,256 ) object03:setFillColor(150, 60, 50, 180)

Found out why. It’s a new Graphics 2.0 feature:

“All RGBA color values have changed from 0:255 to 0:1. You can convert existing color values by dividing the old values by 255”

Found out why. It’s a new Graphics 2.0 feature:

“All RGBA color values have changed from 0:255 to 0:1. You can convert existing color values by dividing the old values by 255”