Jump to content

Set bitmapData background color


nunziox
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...