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
6
ANJANA S NAIR_2024_MEC(design2)
By
ANJANA NAIR
Run
s4=circle(x=0,y=0,r=150,fill='white',stroke='crimson',stroke_width=5) show(s4) s1=rectangle(w=180,h=180,stroke='maroon')|repeat(100,rotate(2)) show(s1) r = 10 n = 3 angle = 180/n s = circle(r=r,stroke='brown')| scale(x=1, y=0.5) star = s | repeat(n, rotate(angle)) shape = star | translate(x=139) | repeat(30,rotate(25)) show(shape) c = circle(x=0,y=0,r=110,fill='crimson',stroke='orange',stroke_width=10) show(c) r=rectangle(w=150,h=150,fill="tomato",stroke="none")|rotate(45)|repeat(12,rotate(18)) show(r) r1=rectangle(w=140,h=140,fill="white",stroke="none")|rotate(45)|repeat(12,rotate(18)) show(r1) c1 = circle(x=0,y=0,r=85,stroke='orangered',stroke_width=6) show(c1) e=ellipse(w=170,h=50,fill='darksalmon',stroke='bisque')|rotate(25)|repeat(36,rotate(25)) show(e) e1=ellipse(w=150,h=30,fill='indianred',stroke='bisque')|rotate(27)|repeat(36,rotate(27)) show(e1) c = circle(x=0,y=0,r=50,fill='yellow',stroke='crimson',stroke_width=7) show(c) def Gradient_petal(w,h,x): petal=ellipse(x=x,y=0,w=w,h=h,fill=color(r=int(43+108*w/h), g=0, b=0),stroke="none") if w<0 or h<0: return petal return petal+Gradient_petal(w-5,h-.5,x) petal=(ellipse(w=80,h=30,stroke='pink',fill='pink',stroke_width=3)+Gradient_petal(100,50,0))|translate(x=-25,y=0) petal1=petal|scale(y=.6)|repeat(2,rotate(360/3))|repeat(2,rotate(2)) flower=(petal1|scale(.9))+(circle(r=2,fill='pink',stroke='pink',stroke_width=1))|scale(1.3) flower1=flower|scale(.5) flower2=flower1|translate(x=45,y=0)|repeat(15,rotate(360/15)) flower4=flower2 for i in range(5): flower4=flower4|rotate(15)|scale(.82) show(flower4) s=circle(r=18, x=50,fill='rosybrown')|repeat(5, rotate(5)|scale(0.985)) angle=360/5 s=s|scale(0.25)|translate(x=2)|repeat(15, rotate(angle))|repeat(10, scale(0.6)|rotate(angle/2)) show(s) print('happy onam')
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login