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
<svg></svg>
By
Devadut Balan
Run
from random import choice as c s = [i for i in range(12,255)] colorfull = [ellipse(h=40,w=155,fill='#FFFF5B',stroke='none') | rotate(i) for i in range(0,360,30)] cir = ellipse(h=5,w=70,fill=color(r=250,g=246,b=3),stroke="red",stroke_width=1) | 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) rounding2 = rectangle(w=5,h=5,x=28,y=28,fill="red",stroke='yellow') | repeat(360,rotate(10)) colorfull2 = [ellipse(h=15,w=250,fill=color(r=c(s),g=c(s),b=c(s)),stroke='none') | rotate(i) for i in range(0,360,2)] [show(i) for i in colorfull2] show(rectangle(w=156,h=156,fill="gold",stroke="blue",stroke_width=2) | repeat(20,rotate(20))) show(circle(r=95,fill=color(r=255,g=12,b=0,a=0.9),stroke="green")) show(circle(r=82,fill=color(r=255,g=255,b=255,a=0.7),stroke="green",stroke_width=10)) show(rectangle(w=8,h=8,x=70,y=70,fill="yellow",stroke="navyblue",stroke_width=2) | repeat(36,rotate(10))) show(circle(r=5,x=60,y=60,fill="gold",stroke="orange",stroke_width=2) | repeat(36,rotate(10))) [show(i) for i in colorfull] [show(i) for i in [l3,l2,cir,rounding2,inner_circle]] show(rectangle(h=8,w=8,x=36,y=36,fill="#F319FF",stroke="none") | repeat(52,rotate(8)))
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login