Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By submitting this PR, I am indicating to the Numberscope maintainers that I have read and understood the contributing guidelines and that this PR follows those guidelines to the best of my knowledge. I have also read the pull request checklist and followed the instructions therein.
This PR provides enhancements to the turtle visualizer:
Note: This turtle visualizer is not backward compatible to past URLs. Is this something we need to add (seems difficult)? Or should we just update the existing gallery items to the new parameter format. This is perhaps a more general question about when visualizers are updated.
The main thing I have not implemented yet, but hope to later, is more colouring options.
To see what it can do, check out some fun ones (note that these URLs only work with this PR). These are all static to begin, but you can animate them.
http://localhost:5173/?name=Beatty+DNA&viz=Turtle&domain=3&turns=79+0+45&steps=5+2+6&pathLength=6000&bgColor=e9eee3&strokeColor=4b7a81&start=0+200&seq=OEIS+A001951
http://localhost:5173/?name=Tau+Goldberg+Machine&viz=Turtle&domain=2&turns=121+0&steps=40+100&pathLength=6000&bgColor=e9eee3&strokeColor=814b7c&start=0+5&seq=OEIS+A000594
http://localhost:5173/?name=Free+Wheelin%27&viz=Turtle&domain=3&turns=127+10+105&steps=40+25+5&pathLength=6000&bgColor=ffffff&strokeColor=5f402b&seq=OEIS+A005228
http://localhost:5173/?name=Hofstader&viz=Turtle&domain=3&turns=137+0+105&steps=15+10+5&pathLength=5000&folding=0+0+0&bgColor=ffffff&strokeColor=7792bb&seq=OEIS+A005228