nunziox Posted May 9, 2014 Share Posted May 9, 2014 how can i set the background color of my bitmap data? function create() { bmd = game.add.bitmapData(800, 600); bmd.context.fillStyle = 'rgba(255,255,255, 0.3)'; bmd.canvas.style.background='red'; game.add.sprite(0, 0, bmd); _points = new Array(); _r = new DollarRecognizer(); } Link to comment Share on other sites More sharing options...
stasuss Posted May 9, 2014 Share Posted May 9, 2014 draw filled rectangle first and then draw what you want. or use fill() method. Link to comment Share on other sites More sharing options...
Recommended Posts