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
New Sketch
By
Farhan
Run
def random_color(): r = random(255) b = random(255) g = random(255) a = color(r=r,b=b,g=g,a=0.56) return a x1 = 0 r = rectangle(w=300,h=300,fill="white") show(r) for i in range(7): a = rectangle(x=-150,y=150,w=25,h=25,fill=random_color())| translate(x=x1) b = rectangle(x=-125,y=125,w=25,h=25,fill=random_color())| translate(x=x1) c = a+b d = c | repeat(7,translate(y=-50)) x1 = x1+50 show(d)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login