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
Circles
By
Anand Chitipothu
Run
x = 50 y = 50 r = 50 # c0 = circle(y=0, r=5, fill='black', stroke='none') # c1 = circle(x=x, y=y, r=5, fill='red', stroke='none') # c2 = circle(x=x, y=y, r=r, stroke='red') # #s = rectangle(x=50, y=50, w=50, h=100) # show(c0, c1, c2) # c1 = circle(r=100) # c2 = circle(r=50) # donut = c1 + c2 # show(donut) #s = circle() | scale(x=1, y=0.5) # s1 = s # s2 = s | rotate(60) # s3 = s | rotate(120) # show(s1, s2, s3) r = 25 n = 3 angle = 180/n s = circle(r=r) | scale(x=1, y=0.5) star = s | repeat(n, rotate(angle)) shape = star | translate(x=100) | repeat(12, rotate(30)) show(shape)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login