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()