Hello everyone,
Today I updated to the latest daily build, 2013.2091. When I loaded my project, all of the objects using display.newRect were completely white.
I recreated the issue by dumping this into a main.lua:
local displayBug = display.newRect(0,0, display.contentWidth / 2, display.contentHeight / 2) displayBug:setFillColor(120,120,120) -- Still white after this line displayBug.x = display.contentWidth / 2 displayBug.y = display.contentHeight / 2
Did setFillColor become deprecated in the new version or is this a bug?
Any help is appreciated! Thanks!
EDIT: To anyone else having the same problem, it looks like they’ve switched from 0-255 RGB to 0.0-1.0 numbers. Sorry, I missed this in the migration guide.
http://docs.coronalabs.com/guide/graphics/migration_g20.html#TOC