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
Playing with translations
By
Riya P Mathew
Run
blue_tone = color(r=6, g=254, b=255) green_tone = color(r=18, g=108, b=17, a=0.5) s1 = circle(r=50, fill=blue_tone) + ellipse(w=100, h=50, fill=green_tone) + ellipse(w=50, h=100, fill=green_tone) s2 = s1 | translate(x=100, y=0) s3 = s1 | translate(x=-100, y=0) show(s1, s2, s3) s4 = s1 | translate(x=0, y=100) s5 = s1 | translate(x=0, y=-100) show(s4, s5)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login