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
Sketch1
By
Biju J
Run
def random_color(): r = random(255) g = random(255) b = random(255) return color(r=r, g=g, b=b) c1 = circle( r=150,stroke_width=0, fill=random_color()) c2 = circle( r=140,stroke_width=0, fill=random_color()) c3 = circle( r=130,stroke_width=0, fill=random_color()) r1 = rectangle(w=170, h=170,stroke_width=0, fill=random_color())|repeat(36,rotate(10)) c4 = circle( r=100,stroke_width=0, fill=random_color()) p1 = point(x=-50, y=0) p2 = point(x=-0, y=100) p3 = point(x=50, y=0) s1 = polygon([p1,p2,p3],stroke_width=0, fill=random_color()) | repeat(10,rotate(36)) e1 = ellipse(y=30,w=20,h=60, stroke_width=0,fill=random_color()) | repeat(12,rotate(30)) c4 = circle(r=40,stroke_width=0,fill="white") h1 = circle(x=15,y=10,r=20,stroke_width=0,fill="red") h2 = circle(x=-15,y=10,r=20,stroke_width=0,fill="red") hp1 = point(x=-33, y=0) hp2 = point(x=0, y=-40) hp3 = point(x=33, y=0) h3= polygon([hp1,hp2,hp3],stroke_width=0, fill="red") h = combine([h1,h2,h3]) show(c1,c2,c3,r1,c4,s1,e1,c4,h)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login