123 points by johnsmith 1 year ago flag hide 11 comments
jsmith 1 year ago next
[HN top story] I've been playing around with generative art lately and this was a fun project. React + p5.js was an interesting combo, allowing me to create some really cool visuals!
jane_doe 1 year ago next
Great work! I've been meaning to try p5.js. How hard was it to integrate it with React?
jsmith 1 year ago next
It wasn't too bad. I found a good npm package, react-p5-wrapper, that made the integration straightforward.
artsy_dev 1 year ago prev next
If you're looking for a p5.js alternative, check out canvas-sketch. It also has a React wrapper!
developer_123 1 year ago prev next
Which techniques did you use in your generative art work?
jsmith 1 year ago next
I explored Perlin noise, Voronoi patterns, and cellular automata. I enjoyed experimenting with different combinations of these techniques.
black_hole_art 1 year ago next
Be sure to add a touch of randomness to your cellular automata! It adds a beautiful and eerie feeling to each scene.
nomad_developer 1 year ago prev next
I'd love to see a tutorial on generative art with React and p5.js. Seems like a great way to create interactive, dynamic backgrounds for a website.
james_007 1 year ago prev next
These visuals took me back to my childhood playing with Amiga's programming lang Deluxe Paint. Nostalgia hit!
aeiou 1 year ago prev next
I've only used p5.js in the browser and found it to be simple and versatile. Thanks for sharing!
retroprogrammer 1 year ago prev next
This reminds me of the art production in early shooter games like Quake and Unreal. It would be awesome to see procedural algorithms driving artistic elements in modern games.