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
Work-around for issues with transparency
By
Anand Chitipothu
Run
# Work-around for issues with tranaparency # source; https://mon.school/sketches/337472 # issue: https://github.com/fossunited/mon_school/issues/58 def hexcolor(hex): r, g, b, a, = hex[1:3], hex[3:5], hex[5:7], hex[7:9] return color(int(r, 16), int(g, 16), int(b, 16), int(a, 16)/255) c1=circle(r=150,fill="white",stroke="none") show(c1) e1=ellipse(w=200,h=50,x=50,fill=hexcolor("#ff2626ab"),stroke="none")|repeat(24,rotate(15)) e2=ellipse(w=200,h=50,x=50,fill=hexcolor("#7c82fd96"),stroke="none")|repeat(12,rotate(30)) e3=ellipse(w=100,h=30,x=50,fill=hexcolor("#8fd9a8b9"),stroke="none")|repeat(24,rotate(15)) e4=ellipse(w=100,h=30,x=50,fill=hexcolor("#ffe35991"),stroke="none")|repeat(12,rotate(30)) e5=ellipse(w=75,h=25,x=25,fill=hexcolor("#ff874b9f"),stroke="none")|repeat(12,rotate(30)) show(e1,e2,e3,e4,e5)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login