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
rongoli
By
Gayatri
Run
r= circle(r=150,fill="black") c = circle(r=100,fill="green",stroke="none") c1 = circle(r=25,fill="#f5079e",stroke="none") c2 = circle(r=50,fill="#9000f7",stroke="none") c3 = circle(r=20,y=50,stroke="pink",stroke_width=3)|repeat(8, rotate(45)) c4 = circle(r=30,y=50,stroke="#ff0505",stroke_width=3)|repeat(8, rotate(45)) d = circle(r=5,y=95,fill="#ff6105",stroke="red")|repeat(36, rotate(10)) d1 = circle(r=5,y=145,fill="#16ff05",stroke="#0f6908",stroke_width=2)|repeat(36, rotate(10)) def star(size): p1 = point(x=-size/2, y=0) p2 = point(x=0, y=2*size) p3 = point(x=size/2, y=0) p4 = point(x=0, y=-2*size) shape1 = polygon([p1, p2, p3, p4], fill="orange", stroke="red",stroke_width=2) shape2 = shape1 | rotate(45) shape3 = shape1 | rotate(90) shape4 = shape1 | rotate(135) return(shape1+shape2+shape3+shape4) s=star(75) def small_star(size): p1 = point(x=-size/2, y=0) p2 = point(x=0, y=2*size) p3 = point(x=size/2, y=0) p4 = point(x=0, y=-2*size) shape1 = polygon([p1, p2, p3, p4], fill="blue", stroke="#0d1463",stroke_width=2) shape2 = shape1 | rotate(45) shape3 = shape1 | rotate(90) shape4 = shape1 | rotate(135) return(shape1+shape2+shape3+shape4) s1= small_star(60) r1=rectangle(w=300,h=300,fill="#1750eb") show(r1,r,s,s1,c,c4,c3,c2,c1,d,d1)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login