Jump to content

BitmapData rect not working?


charlie_says
 Share

Recommended Posts

I'm just working with bitmap data, and have hit a stumbling block, I'm trying to fill part of the bitmap data with rect, but I keep getting an error.

	var col  = 'rgb(255,0,0)';	var bmd = game.make.bitmapData(6, 4);	//bmd.setPixel(0,0,255,0,0,true);//works        //bmd.fill(0,0,255);//works	//bmd.circle(0, 0, 2, col);//works	//bmd.rect(0, 0, 2, 2, col);//TypeError: rock2.rect is not a function

Any ideas as to what I'm doing wrong?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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