I wrote the code
gB = new Gfx.BufferedBitmap({
:disableTransparency => false,
:width=>(center - goWidth)*2,
:height=>(center - goWidth)*2,
:palette=> [
Gfx.COLOR_BLACK,
Gfx.COLOR_WHITE,
Gfx.COLOR_TRANSPARENT
]
});
var tdc=gB.getDc();
tdc.setColor(Gfx.COLOR_TRANSPARENT,Gfx.COLOR_TRANSPARENT);
tdc.clear();
On the last line "tdc.clear()", the simulator freezes.
I planned to overlay this over the background so as not to render the background elements in the bitmap. How do I make this work?