nature-of-code / noc-book

The Nature of Code book (archived repo, see README for new repo / build system!)

Home Page:http://natureofcode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reset button in live examples does not properly reset the Processing sketch

mrfabbri opened this issue · comments

In the live examples of the online book (e.g. Example I.1: Traditional random walk) when RESET button is pressed a new sketch is started while the previous one is not disposed; so every RESET press adds one more active sketch on the same canvas element (in the aforementioned example every RESET press adds one more random walker).