Explore
Courses
Batches
Sketches
Statistics
Code a Pookkalam
Jobs
Devsprint
People
Course Creation
Create a Course
Guidelines
Resources
Support
Blogs
My Profile
About Us
Login
Sketches
0
pookalam
By
mohammedafeef
Run
def createSquareLayer (height, width, color = "black", rep = "10",innerRotate = "0", outerRotate = "0"): r1 = rectangle(w=width, h=height, fill=color, stroke="none") | rotate(outerRotate) | repeat(rep, rotate(innerRotate)) show(r1); #r1 = rectangle(w=212,h=212,fill="#003b0e",stroke="none") | repeat(10, rotate(10)) #r2 = rectangle(w=200,h=200,fill="#a10000",stroke="none") | rotate(15) | repeat(10, rotate(10)) #r3 = rectangle(w=188,h=188,fill="#e64805",stroke="none") | rotate(20) | repeat(10, rotate(10)) #r4 = rectangle(w=176,h=176,fill="#ff8503",stroke="none") | rotate(25) | repeat(10, rotate(10)) #r5 = rectangle(w=164,h=164,fill="#ffd503",stroke="none") | rotate(30) | repeat(10, rotate(10)) #r6 = rectangle(w=152,h=152,fill="#ffee6b",stroke="none") | rotate(35) | repeat(10, rotate(10)) #r7 = rectangle(w=140,h=140,fill="#fffded",stroke="none") | rotate createSquareLayer(212,212,"#003b0e",10,10);
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login