Curtis Highschool Software Engineering Institute Reflections part 4! || Code Hs Tracy the Turtle!?
Code Hs || Tracy the Turtle:
After using project stem to learn about many codes and how to program a game; we switched over to a new website named Code Hs. I learned many things on how to make graphics move such as Tracy the turtle. To make Tracy move we would use Forward() or either backward(), in the brackets you would put the number of distance you want it to move. I also learned how to make Tracy rotate itself so we could move it around to different areas. Using left() and right() it allows us to change the direction/angle the turtle is looking at. For example it turns the degree u set it at in the brackets such as right(90) and left(180).
After learning all of those we learned to draw with the turtle. To draw with Tracy we would have to use pendown() which indicates that we can write because the pen is down and penup() if we do not want to draw anymore. If we wanted to draw different shapes we could use circle(radius,degree,sides) ex: circle(50,360,4).To change the color of our pen we would use color("what ever color you would like to use") and begin_fill() and end_fill() to fill in any closed in shape. For example color("red") and begin_fill() at the start of your code and end_fill() at the end of your code. And if you do all of this and have creativity it can turn out like this:
Comments
Post a Comment