This program was an exercise in drawing shapes using python code. I used the turtle library, which gave me functions to control the drawing tool or “turtle”. Using the directional commands from the turtle library I had the turtle draw 100 white lines in a fixed range. I imported the random library in order to allow lines to be drawn of any length in range of 0 to 150 while turning anywhere between 0 and 45 degrees. The star pattern is created by using the for loop to repeat instructions to draw a line and returning to it’s starting position.
- Write a brief paragraph to introduce yourself to your visitors and explain what they will find on this site. Be sure to add more developed content to your About Me page. (Edit this paragraph in Dashboard > Widgets > Text)
Learning Blog Archives
-
Recent Posts
Categories
- Coursework (1)
- Field Trips (1)
Tags