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
1
Jackson Pollock but with straight lines.
By
Samrudh N
Run
#Abstract generative art - Random lines generator. #No of lines. n=350 #Background background = rectangle(w=300, h=300, fill="black") show(background) for i in range(n): #Random points generated for each iteration x1,y1=random(-150,150),random(-150,150) x2,y2=random(-150,150),random(-150,150) #Random colors and stroke_width str_width=random(1,7) fill=color(r=random(10,255), g=random(10,255), b=random(10,255),a=random(0.1,1)) #Random Line Generator abstract_line = line(x1,y1,x2,y2,stroke=fill,stroke_width=str_width) show(abstract_line)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login