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
Color Ayittulla Pookkalam
By
Devadut Balan
Run
from random import choice as c s = [i for i in range(255)] colorfull = [ellipse(h=5,w=120,fill=color(r=c(s),g=c(s),b=c(s)),stroke=color(r=c(s),g=c(s),b=c(s)),stroke_width=3) | rotate(i) for i in range(0,360,5)] cir = ellipse(h=10,w=70,fill=color(r=250,g=246,b=3),stroke="red",stroke_width=2) | repeat(120,rotate(10)) l2 = circle(r=45,fill='green',stroke=color(r=255,g=45,b=255,a=0.5)) l3 = rectangle(h=70,w=70,fill=color(r=0,g=255,b=0,a=0.7),stroke = color(r=0,g=255,b=52,)) | repeat(120,rotate(10)) rounding = rectangle(w=5,h=5,x=28,y=28,fill="red",stroke='yellow') | repeat(360,rotate(10)) inner_circle = circle(r=15,fill='yellow',stroke='green',stroke_width=5) [show(i) for i in colorfull] show(l3) show(l2) show(cir) show(inner_circle) show(rounding)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login