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