Marcos Lopez Small Assignment 2 – Turtle Geometry

Polar Plot

Using some of our lessons in class. I messed around using modulus until I created something that looked like a flower to me. They move around and start out very wide and then move petals closer and closer with more and more petals. This one is interactive where you can move the mouse around to make more or less petals and change the size.

Centered Circle

This one was pretty simple. It really just came down to how much you need to move forward before turning left 1 degree. To solve for the step length first you must find the circumference. Easy enough just use 2*PI*r where r is the radius you enter when you call the function. After that you divide that circumference/ 360. then you just run through 360 degrees moving forward by the calculated step size each time.

Circle with radius 100

Flower

This took our idea of rotating a single shape around a circle to create an image. So, I create a single line and loop for the snow cone shape and then rotate it by 360/the number of petals. Then it repeats until it fully goes around. This problem was surprisingly difficult for me to get the curve correct. I had a hard time finding the radius needed to make the half-circle. I needed to use a right triangle that is created by bisecting the angle given. Then using some trigonometry, we can solve for the radius of half circle.

Turtle Designs

I tried to use several different methods to produce these images. For Turtle Design One I used the polygonHalt method while rotating the polygon. It can be changed with different angle parameter. Turtle Design Two was really just me messing around with different rotation and size of steps. Turtle Design 3 was designed by using a random walk and turning 90 degrees randomly. I really liked this one because it reminded me of a city map with off shoots and city centers.

https://handandmachine.org/classes/computational_fabrication/wp-content/uploads/2022/02/MarcosLopezSA2.zip

3 thoughts on “Marcos Lopez Small Assignment 2 – Turtle Geometry

  1. I really liked the random pattern one, it is cool to see what the turtle was up to with random instructions. Like you said, it looks like it created some sort of map.

  2. Hello,

    I like that you went ahead and discussed how you made the program interactive with some of the problems. I also think that the colors in the images of the last problem really go well together.

    Thank you for sharing this!

  3. Hi Marcos, your “Turtle Design two” gives me a feeling that it moves? maybe resulting from the combination of color and the line patterns, proportions? And your “Turtle Design 3” looks 3 dimensional to me and also maybe resembles the movie “Valerian and the City of a Thousand Planets”? And seeing you mention city makes me wonder what will the city life be like and that also resembles anthill to me. Maybe it’s an hidden alien city? in unlikely places? The Men In Black movie’s kind of alien style?

Comments are closed.