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
2
DevSprint
By
Akhina George
Run
c1=circle(r=250,fill="#b8c0ff") show(c1) c2=circle(r=200,fill="#b8c0ff") show(c2) c7=circle(r=190,fill="#c8b6ff") show(c7) c8=circle(r=180,fill="#c8b6ff") show(c8) c9=circle(r=170,fill="#c8b6ff") show(c9) c10=circle(r=160,fill="#d8bbff") show(c10) c11=circle(r=150,fill="#d8bbff") show(c11) c13=circle(r=150,fill="#d0d1ff") show(c13) c3=circle(r=150,fill="#c8e7ff") show(c3) c4=circle(r=100,fill="#c0fdff") show(c4) c5=circle(r=50,fill="#c0fdff") show(c5) c6=circle(r=25,fill="#c0fdff") show(c6) bg=rectangle(x=300, y=300, fill='red') def random_concentric_circles(n, max_radius): shapes = [] for i in range(n): r = random(max_radius) c = circle(r=r) shapes.append(c) return combine(shapes) shape1 = random_concentric_circles(n=10, max_radius=100) shape2 = random_concentric_circles(n=10, max_radius=100) def beside(shape1, shape2): a1 = shape1 | translate(x=-75) a2 = shape2 | translate(x=75) return a1 + a2 part=shape1+shape2 part1=part|scale(0.30) part2=part|scale(0.40) a=part1+part2 b=a|translate (x=110, y=0) c=a|translate (x=-110, y=0) d=a+b+c e=d|rotate(30) f=e|rotate(30) g=f|rotate(30) h=g|rotate(30) i=h|rotate(30) j=h|rotate(30) k=d+e+f+g+h+i+j l=k|scale(0.50) m=k|scale(0.75) n=l|scale(1) u=a|translate(x=200, y=200) show(u,k,l,m,n)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login