A generative art tool built with p5.js that creates flow field patterns using Perlin noise. Perfect for generating desktop wallpapers.
This sketch generates dynamic flow field visualizations by simulating particles moving through a noise-based vector field. Each particle follows the flow direction determined by Perlin noise, creating beautiful, river-like patterns that develop over time. The animation automatically stops after 500 frames to maintain optimal performance.
- Responsive design that scales density based on screen size
- Customizable color gradients with diagonal direction variation
- Automatic frame limiting to prevent performance degradation
- High pixel density (defaults to 2x screen resolution) for crisp, high-resolution outputs
- Click on the drawing to save to downloads
-
Make sure you have the p5.js libraries in the
libraries/folder:p5.min.jsp5.sound.min.js
-
Start a local web server in the project directory:
python3 -m http.server 8000
-
Open your browser and navigate to:
http://localhost:8000 -
Click anywhere on the canvas to save the current design as a PNG file.
Edit sketch.js to customize:
- Colors: Change the hex values in the
define_colorssection - Branching: Adjust the
multvalue (smaller = more branches, larger = smoother flow) - Density: Modify
baseDensityto change particle count - Frame limit: Change
maxFramesto control render duration


