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
vakusketch
By
Vinay Arun Y
Run
import math s=100 e=circle(r=s,fill="#EE1289") bigr1=rectangle(w=200,h=200,x=0,y=0,fill='red')|repeat(36,rotate(10)) bigr2=rectangle(w=200,h=200,x=0,y=0,fill='black')|repeat(4,rotate(20)) bigr=bigr1+bigr2 re=25 h=50 b=0 rrr=40 bg=150 gr=150 wid=(s*math.cos(math.pi/4))*2 sun=circle(r=rrr,fill='white',stroke='white') col=['#EE4000', 'red','#CD0000'] i=0 while(rrr!=10): sun=sun+circle(r=rrr,fill=col[i],stroke=col[i]) rrr=rrr-10 i=i+1 rec=rectangle(w=wid,h=wid,x=0,y=0,fill="#8DB6CD",stroke="green") cir1=circle(x=115,y=0,r=15,fill='#FFFF00')|repeat(36,rotate(10)) cir2=circle(x=115,y=0,r=15,fill='orange')|repeat(18,rotate(20)) rec2=rectangle(w=wid,h=wid/2,x=0,y=-wid/4,fill='blue') cocbas=polygon([point(-70.75,-70.75),point(-60,-70.75),point(-63,20)],fill='brown') cocleaves1=polygon([point(-63,20),point(-40,0),point(-55,20)],fill='green') cocleaves2=polygon([point(-63,20),point(-80,0),point(-71,20)],fill='green') cocleaves3=polygon([point(-63,20),point(-90,20),point(-71,40)],fill='green') cocleaves4=polygon([point(-63,20),point(-45,20),point(-30,10),point(-42,40)],fill='green') cocleaves5=polygon([point(-63,20),point(-55,50),point(-31,40)],fill='green') d=combine([bigr,e,rec,sun,cir1,cir2,rec2,cocbas,cocleaves1,cocleaves2,cocleaves3,cocleaves5,cocleaves4]) show(d)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login