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
Random color for pookalam (fork of Adil's sketch)
By
Vishal Arya
Run
#Used the function for random color from Gayatri's sketch def random_color(): r = random(255) g = random(255) b = random(255) return color(r=r, g=g, b=b) r1 = rectangle(w=100,h=25,fill="white") c1 = circle(r=125,fill=random_color(),stroke="none") petal = ellipse(x=0,y=10,w=10,h=20,fill=random_color()) flower= petal | repeat(12,rotate(30)) flower_link = flower | translate(x=30,y=30) | repeat (128,rotate(45)) e1 = flower_link | repeat(3,scale(1.5)) show(c1,e1)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login