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
thattikootte
By
Amjad C P
Run
def pookalam(): # center circle center = circle(r=20, fill='red', stroke="none") #outer circle out = circle(r=120, fill='green', stroke='none') #square p1 = point(x=-10, y=97) p2 = point(x=97, y=10) p3 = point(x=10, y=-97) p4 = point(x=-97, y=-10) square = polygon([p1,p2,p3,p4], fill='white', stroke='none') #triangle group p1 = point(x=0, y=50) p2 = point(x=50, y=0) p3 = point(x=-50, y=0) triangle1 = polygon([p1,p2,p3], fill='yellow', stroke='none') | translate(x=-50, y=0) triangle2 = triangle1 | rotate(90) | translate(x=-50, y=50) triangle_group = (triangle1 + triangle2) | translate(x=-20) | rotate(-30) show(out,square, triangle_group|repeat(4, rotate(90)), center) pookalam()
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login