my mind....tadaaa

By Aysha PS

        
Comments
Anand Chitipothu
3 years ago
Post
Dismiss
This is interesting. Just like `rotate`, there is a way to `repeat`. Instead of those 8 shapes from s2...s9, you could have written that in a single line, like this: ``` shape = s1 | repeat(8, rotate(45)) show(shape) ``` Try it out and see if you can make more patterns using that.
This is interesting. Just like `rotate`, there is a way to `repeat`. Instead of those 8 shapes from s2...s9, you could have written that in a single line, like this: ``` shape = s1 | repeat(8, rotate(45)) show(shape) ``` Try it out and see if you can make more patterns using that.
Want to discuss?
Post it here, our mentors will help you out.