New Sketch

By Aiswarya a

        
Comments
Anand Chitipothu
3 years ago
Post
Dismiss
Looks beautiful. You could have done this slightly differently too. Instead of rotating each rectangle, you could have combined all the rectangles first and then rotated all of them. ``` s1=rectangle(x=0,y=8,w=109,h=5,fill="red") s2=rectangle(x=0,y=18,w=109,h=5,fill="purple") s3=rectangle(x=0,y=28,w=109,h=5,fill="yellow") ... s = s1+s2+s3 + ... shape = s | repeat(12, rotate(30)) ```
Looks beautiful. You could have done this slightly differently too. Instead of rotating each rectangle, you could have combined all the rectangles first and then rotated all of them. ``` s1=rectangle(x=0,y=8,w=109,h=5,fill="red") s2=rectangle(x=0,y=18,w=109,h=5,fill="purple") s3=rectangle(x=0,y=28,w=109,h=5,fill="yellow") ... s = s1+s2+s3 + ... shape = s | repeat(12, rotate(30)) ```
Want to discuss?
Post it here, our mentors will help you out.