Drawing

Intro :

As artists or designers generating graphics in code we may have varying conceptual intentions for the visual output.

At times you may want an animating visual that updates or you may want to see the traces left behind much like when drawing on paper. The quite distinctively different outcome is the difference in one line of code.

Whilst neither code will generate a compiler error, it will result in a Functional Error of a conceptual kind should you wish for one visual outcome over the other.

---------------------------------------------------------------------------->

Animation vs Drawing :

Move your mouse around each canvas to see the different outcomes.

---------------------------------------------------------------------------->

Try it :

Try edit the code to turn an animating shape into one that leaves traces behind.

Consider what line of code might be creating the visual difference.

Once you start typing code you can press the 'undo' button to go back a step. Or press the 'revert' button if you want to refresh to the orginal code.

---------------------------------------------------------------------------->
---------------------------------------------------------------------------->

J3n Sykes

GitHub | Back to examples