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
Fasil tk
By
Muhammed fasil tk
Run
def random_color(): r=random(255) g=random(255) b=random(255) return color(r=r,g=g,b=b,a=0.5) print ("if you run More times you will see change the colours ") d= ellipse(w=100,h=20,fill=random_color(),stroke="none")|repeat (19,rotate(10)) e=circle(r=10,y=60,fill=random_color(),stroke="none")|repeat(36,rotate(10)) a=point(x=-15,y=70) b=point(x=15,y=70) c=point(x=0,y=90) shape=polygon([a,b,c],fill=random_color(),stroke="none")|repeat(15,rotate(24)) f=circle(r=90,stroke=random_color(),scale=30) h=circle(x=0,y=105,r=4,stroke="none",fill=random_color())|repeat(36,rotate(10)) j=circle(r=100,stroke=random_color(),scale=30) i=circle(x=-5,y=115,r=2,stroke="none",fill=random_color())|repeat(72,rotate(5)) g=rectangle(x=0,y=95,w=10,h=10,fill=random_color(),stroke="none")|repeat(45,rotate(8)) show(shape,d,e,f,g,h,i,j)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login