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
FLAG OF GEORGIA BY FUNCTIONS
By
ARJUN
Run
r1 = rectangle(x=0,y=0,w=300,h=300,fill="#FFFFFF",stroke="none") show(r1) def plus(x,y,w,h): shape = rectangle(x=x,y=y,w=w,h=h,fill="#ff0000",stroke="none") + rectangle(x=x,y=y,w=h,h=w,fill="#ff0000",stroke="none") return(shape) c = plus(x=0,y=0,w=50,h=300) show(c) def smallplus(x,y,w,h): shape = rectangle(x=x,y=y,w=w,h=h,fill="#ff0000",stroke="none") + rectangle(x=x,y=y,w=h,h=w,fill="#ff0000",stroke="none") return(shape) c = smallplus(x=-100,y=100,w=60,h=20) c1 = smallplus(x=100,y=100,w=60,h=20) c2 = smallplus(x=-100,y=-100,w=60,h=20) c3 = smallplus(x=100,y=-100,w=60,h=20) show(c,c1,c2,c3)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login