So I am making a simple card game using GWT. It works, it's nice, but it isn't very flashy. So my plan is to have a Canvas sit below the cards and when a card is played have a special effect animation on the canvas run. I'm looking at the GWTCanvasDemo @
http://code.google.com/p/gwtcanvasdemo/source/browse/trunk/src/com/google/gwt/gwtcanvasdemo/client/GwtCanvasDemo.java. I've downloaded the code, I've run it, it works....and I have no idea how.
There are two canvaes, canvas and backbuffer. The canvas has the lens with the warp effect, the back buffer has all the images / balls drawn on them. However, the backBuffer never seems to be added to the Rootpanel. It's also never given a size like canvas is, it's only given Coordinate Space. I'm trying to mess with this code in my own project and I can't figure out how and why the demo works. Can someone explain to me what's going on?