https://github.com/kartmaan/random-plot-turtle
Random plot in a defined area with Turtle
https://github.com/kartmaan/random-plot-turtle
heading plot random turtle
Last synced: 10 months ago
JSON representation
Random plot in a defined area with Turtle
- Host: GitHub
- URL: https://github.com/kartmaan/random-plot-turtle
- Owner: Kartmaan
- License: mit
- Created: 2023-04-17T15:25:42.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-29T14:05:14.000Z (about 3 years ago)
- Last Synced: 2025-03-17T20:31:38.215Z (about 1 year ago)
- Topics: heading, plot, random, turtle
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# random_plot_turtle
## Functioning
Draws a random graph within spatial boundaries. The turtle moves from left to right and randomly changes its angular orientation with each iteration. Ascending segments are colored green and descending segments are colored red. The function has 5 parameters:
- `strip` : defines the width of the strip in which the graph will be drawn
- `step` : length of the step between each change of direction of the turtle
- `angle_range` : angular freedom of movement of the turtle
- `info` : display on the surface information related to function parameters
- `show_strip` : display the upper and lower limits between which the graph is drawn
## Screenshots
