8000 GitHub - conwayjw97/Packing-Lines: Line packing generative art made with p5.js and ReactJS
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Line packing generative art made with p5.js and ReactJS

License

Notifications You must be signed in to change notification settings

conwayjw97/Packing-Lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packing-Lines

Packing-Lines.webm

Original idea from this post by Estienne.

Try it out

Hosted version: https://conwayjw97.github.io/Packing-Lines/

Change the following parameters in the url to customise the sketch:

  • size: [1 - Inf]

    Size of the grid to fill with lines (100 = 100x100 grid). N.B. you should adjust speed along with this to smooth out the rendering animation

  • speed: [1 - Inf]

    Number of lines to draw per frame

  • vectors: [1 - size]

    Number of initial vectors that will explore the grid creating lines

  • lineWidth: [1 - Inf]

    Width of rendered lines

  • colours: [000000 - ffffff]

    Dash separated list of hexadecimal RGB values of colours, each vector will be assigned a colour interpolated from between these colours

  • start: [rand, circ, diag]

    rand = Vectors start in random positions

    circ = Vectors start along the radius of a circle in the centre of the grid

    diag = Vectors start along diagonals of the grid (this ignores the vectors param)

  • fill: [true, false]

    Toggle whether to create cleanup vectors to fill the still empty spaces once all the initial vectors have traversed the grid

  • loop: [true, false]

    Toggle animation looping

To run locally, clone and run "npm start" from the root directory.

About

Line packing generative art made with p5.js and ReactJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0