v2.1.0
changes:
- fix an issue with incremental rendering where the top layer would sometimes not have the correct color
- allow canvas snapshots (to save the image as a file for instance)
- fixed scaling & resizing issues
- support multiple instances
- don't reset the layer limit after parsing the gcode
- highlight the top layer and the last segment
- top layer / last segment color is configurable
- clear() method added to reset parser state
- add incremental parsing
- bugfix: only create a new layer when extruding
- allow input to be either a string or an array of strings
- remove 2.5d canvas version
- demo: shows how to use incremental parsing to render a file progressively