UpdateExample -- showing the difference between overriding and not overriding the update method.

The triangle on the left is drawn with the standard update method, which first clears the background. The triangle on the right is drawn using an overridden update method, which does not clear the background.

Experiment:



The source.