This week, I studied variables and applied it to TurtleArt. I was able to look at a basic code from TurtleArt and from their code, I learned how to create a variable and define it. I wanted to create a box that was repeated while overlapping. I started by making my own block: From the "box" block, I wanted the distance to increase each time it is repeated, so I turned made distance a variable. This was how my new code looked like (below); it was a success! I was even able to alter it and make it rotate: This made me wonder, like the petal code (from previous blog post), how would I make the stitches smaller, while keeping the distance the same? Please comment suggestions. Thank you!
Comments
Post a Comment