Re: JSUI-MGraphics patch-a-day

Darwin Grosse

Here is the patch for November 23, 2011:

Continuing the exploration of images, in this one we use the set_source_rgba to determine the alpha (transparancy) that will be used for drawing the image to the display area. This allows use to custom fade the output. Again, notice that we also have to translate the location (rather than just move_to()) in order to get the display to position correctly, and that we save() and restore() to return to the normal display layout.


Nov 23, 2011 at 1:07pm #214991