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
pookalam draft1
By
Sahaja
Run
def bottomEllipse(x,y,w,h,fill): e = ellipse(x,y+h/2,w,h,fill=fill,stroke="none") return(e) def wreath (c1,c2): x=0 y=0 w=25 h=50 b1=bottomEllipse(x,y,w*2,h*2,fill=c2) b2=bottomEllipse(x,y,w,h,fill=c1) shape=b1+b2 a = shape| scale(0.75) | translate(y=20) | repeat(100, rotate(40)) c = circle(r=w,stroke="none",fill="yellow") shape2=a+c b = shape2| scale(0.4) | translate(y=100) | repeat(100, rotate(40)) return(b) c2=color(r=255, g=0, b=0) c1=color(r=255, g=136, b=0) s1=wreath(c1,c2) d2=color(r=255, g=0, b=144) d1=color(r=255, g=153, b=211) s2=wreath(d1,d2)|scale(0.5) background=rectangle(w=300,h=300,fill="white") c=circle(r=50,stroke="none",fill="yellow") shape=background+c+s1+s2 show(shape)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login