Not sure if I am just doing something stupid here, but my scrollView bgColor seems to be really messed up. From the docs, bgColor can be set by passing an array of {r,g,b,a} values. When I try and set ‘red’ - 255,0,0,255 - it displays yellow?!
My test code:
local widget = require("widget")
display.setStatusBar(display.HiddenStatusBar)
scrollHead = widget.newScrollView{
bgColor = {255,0,0,255},
scrollWidth = 320,
scrollHeight = 160
}
myObject = display.newImage("assets/images/animals/Monkey\_head.png")
scrollHead:insert(myObject)
I can see the alfa channel works, and 0,0,255,255 displays blue, 255,255,255,255 displays white - but nothing else seems to display correctly. [import]uid: 140429 topic_id: 25627 reply_id: 325627[/import]