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
New Sketch
By
Abdul Hafidh K A
Run
from math import * radius=80 def square(side,color,**kwargs): return rectangle(h=side,w=side,fill=color,x=0,y=0) c1=square(side=0,color=None);c2=square(side=0,color=None); c3=square(side=0,color=None) c4=square(side=0,color=None) for i in range(0,361,15): X= radius*cos(i) Y= radius*sin(i) c1+= circle(r=radius,fill="#81B622") | translate(x=X,y=Y)|repeat(50,rotate(45))|scale(.8) c2+= circle(r=radius,fill="#FF9900") | translate(x=X,y=Y)|repeat(50,rotate(45))|scale(.7) c3+= circle(r=radius,fill="#") | translate(x=X,y=Y)|repeat(50,rotate(45))|scale(.6) c4+= square(side=radius,color="#ECF87F") | translate(x=X,y=Y)|repeat(50,rotate(45))|scale(.3) c2+= circle(r=radius,fill="#E6FF00") | translate(x=X,y=Y)|repeat(8,rotate(45))|scale(.7) c5= circle(r=radius,fill="#08313A") | translate(x=0,y=0)|repeat(1,rotate(45))|scale(.2) bg=square(side=300,color="#DFDACD") show(bg,circle(r=135,fill="#3D550C"),c1,c2,c3,c4,c5)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login