iafan / goplayspace

Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more
https://goplay.space
Other
981 stars 63 forks source link

Feature request: Turtle graphics: Add fast mode(s) #36

Open jraman opened 4 years ago

jraman commented 4 years ago

Turtle graphics mode is a lovely feature in goplayspace. However, it can appear to be slow at times.

It would be great to add support for a fast mode that is controlled by the code itself. This would not only be useful if a fast drawing is desired, but also for debugging.

As a suggestion, fast mode could be specified as an option to draw mode - for example, draw mode fasttab. This could be equivalent to continuously hitting Tab on the drawing board. Another option could be draw mode fastshift which would be equivalent to keeping the Shift-key pressed in the drawing.

Other options are also possible, such as draw mode final - which is like a super fast mode and shows the final drawing as fast as possible i.e. without showing the intervening steps.