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
1
ARRIVAL OF THE UGLY ASTEROID
By
Nadim Naisam
Run
for i in range(100): red=color(r=i+210,g=i+165,b=i+32) c=circle(x=0, y=0, fill=red, r=222-i, stroke="none") show(c) a=rectangle(x=0,y=-75,w=300,h=100,fill="#009dc4", stroke="none")|translate(y=-40) b=rectangle(x=-38,y=-25, w=3,h=150,fill="black") c=polygon([point(-120,-100),point(-10,-100),point(17,-55),point(-147,-55)],fill="#42190D") show(a,b,c) y1=-25 w1=50 for i in range(1,4): r=rectangle(x=-38, y=y1, w=w1, h=25,fill="gray",stroke="none")|rotate(5) y1+=33 w1-=10 show(r) e=polygon([point(78,100),point(91,120),point(95,130),point(105,125),point(109,130),point(118,132),point(125,145),point(134,138),point(138,136),point(142,140),point(140,128),point(142,131),point(145,125),point(133,114),point(120,111),point(110,107),point(111,100)],fill="#fe9522",stroke="none") d=circle(x=89, y=103, r=11, fill="#d9d9d9", stroke="none") f=circle(x=87,y=101,r=2,fill="gray",stroke="none")|repeat(2,translate(x=7,y=6)) show(e, d,f)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login