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
2
Nandakishor
By
Nandakishor
Run
rec1 = rectangle(0, 0, 200, 200, fill="#d63e0a", stroke="none") rec2 = rectangle(0, 0, 185, 185, fill="#ff9c00", stroke="none") | rotate(15) rec3 = rectangle(0, 0, 170, 170, fill="#f8c94f", stroke="none") | rotate(30) rec4 = rectangle(0, 0, 155, 155, fill="#e9f20c", stroke="none") | rotate(45) rec5 = rectangle(0, 0, 140, 140, fill="#f2f78e", stroke="none") | rotate(60) rec6 = rectangle(0, 0, 125, 125, fill="#ffffff", stroke="none") | rotate(75) e1 = ellipse(0, 0, 150 * 0.5, 80 * 0.5, fill="#d63e0a", stroke="none") e2 = ellipse(0, 0, 120 * 0.5, 60 * 0.5, fill="#ff9c00", stroke="none") e3 = ellipse(0, 0, 90 * 0.5, 40 * 0.5, fill="#f8c94f", stroke="none") e4 = ellipse(0, 0, 60 * 0.5, 20 * 0.5, fill="#f0f0f0", stroke="none") e = e1 + e2 + e3 + e4 cout = circle(0, 0, 145, fill="black") show(cout) for i in range(20): show(rec1 | rotate(i * 20)) for i in range(20): show(rec2 | rotate(i * 20)) for i in range(20): show(rec3 | rotate(i * 20)) for i in range(20): show(rec4 | rotate(i * 20)) for i in range(20): show(rec5 | rotate(i * 20)) for i in range(20): show(rec6 | rotate(i * 20)) c11 = circle(0, 0, 80, fill="#690207", stroke="none") c12 = circle(0, 0, 73, fill="#a00c3a", stroke="none") c13 = circle(0, 0, 66, fill="#f72b4e", stroke="none") c14 = circle(0, 0, 59, fill="#f6c021", stroke="none") c15 = circle(0, 0, 52, fill="#ffeb3b", stroke="none") show(c11 + c12 + c13 + c14 + c15) e11 = (e | translate(-40, 0)) + (e | translate(40, 0)) show(e11, e11 | rotate(90), e11 | rotate(45), e11 | rotate(135)) cin1 = circle(0, 0, 52, fill="#383333", stroke="none",opacity="0.8") show(cin1) l = [ "#C2185B", "#D81B60", "#FF5722", "#E64A19", "#FDD835", "#FBC02D", "#DCE775", "#C0CA33", "#9E9D24", "#827717", "#FFEB3B", "#FBC02D", "#B71C1C", "#C62828", "#000000", "#212121", "#FFFFFF", "#F5F5F5", "#FFC107", "#FFB300", "#8E24AA", "#AB47BC" ] for i in range(30): color_index = i % len(l) rec7 = rectangle(0, 0, 73 - 2 * i, 73 - 2 * i, fill=l[color_index], stroke="none") | rotate(45) show(rec7 | rotate(i * 60)) for i in range(90): rec7 = rectangle(0, 0, 11 - i, 11 - i, fill=l[i % 10], stroke="none") show(rec7 | rotate(i * 90)) for i in range(5): cfin = circle(0, 0, 10 - 2 * i, fill="#e0e0e0", stroke_width=0.5) show(cfin) cfin = circle(0, 0,2, fill="black", stroke_width=0.5) show(cfin)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login