Skip to content

Making String Art images based on "String Art: Towards Computational Fabrication" article

Notifications You must be signed in to change notification settings

a-m-farahani/StringArt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StringArt

Making String Art images based on String Art: Towards Computational Fabrication with a single connected thread or a path in a graph of N vertices that makes an image.

Example 1:

Example 2:

Usage:

  • Circle:
converter = StringImageCircle(img_path, radius, nPins)
result_img = converter.Convert(max_lines=2500)
  • Square:
converter = StringImageSquare(img_path, dim, nPins, noise=5)
result_img = converter.Convert(max_lines=2500)

Adding Noise to Pin Positions is used to reduce Moire effect.

A video example of string art conversion process (libx265 codec is needed for playing it): Link
To see the lines data(the start pin and end pin of each line) use converter.Lines:
print(converter.Lines)

About

Making String Art images based on "String Art: Towards Computational Fabrication" article

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages