Re: JSUI-MGraphics patch-a-day

Darwin Grosse

Thanks, Rymf – I’m having a blast with this!

Here is the patch for November 11, 2011.

When you create a surface for drawing (using the separate MGraphics instance we saw last time), you don’t have to make an opaque surface – it can be alpha channel reduced, allowing us to make semi-transparent figures that can be reused. In this case, I make a Big Red Square, scale the user space when drawing it, then draw a blue circle over the top. Everything is half-alpha’d, so you get a little see-thru no matter what happens.


Nov 11, 2011 at 8:58pm #214973