CodingTrain / CodingTrain/Suggestion-Box

Pi Day - Turtle Graphics and Pi

Open
#872 0 comments 4 reactions 0 assignees View on GitHub
Pi Day
Dominant language
No language data
Stars
570
Forks
85
PR merge metrics
No merged PRs in 30d

Description

## Converts digits of Pi to drawing on the canvas
Loop through as many digits of Pi as needed. Depending on what the value is, move the cursor in certain directions, change the drawing color, or even skip digits. It could be fun to see if it's possible to create anything interesting through varying the instructions and controls.

### Topics covered

* Drawing turtle graphics
* Calculating individual digits of Pi
* Manipulating values into actions
* Switch Case statements

### Possible Expansions

* Multiple turtles at once with different instructions
* Be able to change the instructions within the application and update image on input
* Converting the canvas into a savable image
* Automatically drawing and saving x number of images locally
* Creating graphics in 3D

### References

[Turtle Graphics](https://en.wikipedia.org/wiki/Turtle_graphics)
[p5.js Example](https://ycatch.github.io/p5.turtle.js/)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.