Snapshot / canvas background colour bug?

Am I going mad? Or does this code not work? (copy and paste into an empty main.lua and run).

Note the RGB values I sett for the snapshot and canvas clear colours. The snapshot should be pink and the canvas should be red (with a tint of blue). Instead I see white and pure purple.

Seems like any value > 0 is treated as 1.

I’ve tried latest daily build…

-- Snapshot and canvas local snapshot = display.newSnapshot( 100, 100 ) snapshot.x     = 75 snapshot.y     = 75   local canvas = graphics.newTexture{ type   = "canvas", width  = 100, height = 100, } local canvasImage = display.newImageRect( canvas.filename, canvas.baseDir, 100, 100 ) canvasImage.x     = 75 canvasImage.y     = 200   ---- Update it and also set the container's clear colour snapshot.clearColor = { 0.1, 0.5, 0.5 } snapshot:invalidate() canvas:setBackground( 1, 0, 0.1 ) canvas:invalidate()

Hi @rakoonic,

I’m pretty sure the engineers fixed this and it should apply in an upcoming daily build. Keep an eye on the release notes.

Best regards,

Brent

Far be it from me to say you guys rock, but… you guys rock :slight_smile: Thanks for the speedy turn-around.

Hi @rakoonic,

I’m pretty sure the engineers fixed this and it should apply in an upcoming daily build. Keep an eye on the release notes.

Best regards,

Brent

Far be it from me to say you guys rock, but… you guys rock :slight_smile: Thanks for the speedy turn-around.