Skip to content

jaeoh91/Flow-Field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flow Field Generator

A generative art tool built with p5.js that creates flow field patterns using Perlin noise. Perfect for generating desktop wallpapers.

Description

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.

Features

  • 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

Setup

  1. Make sure you have the p5.js libraries in the libraries/ folder:

    • p5.min.js
    • p5.sound.min.js
  2. Start a local web server in the project directory:

    python3 -m http.server 8000
  3. Open your browser and navigate to:

    http://localhost:8000
    
  4. Click anywhere on the canvas to save the current design as a PNG file.

Customization

Edit sketch.js to customize:

  • Colors: Change the hex values in the define_colors section
  • Branching: Adjust the mult value (smaller = more branches, larger = smoother flow)
  • Density: Modify baseDensity to change particle count
  • Frame limit: Change maxFrames to control render duration

Demo Images

Demo 1

Demo 2

Demo 3

About

Generating stunning flow field patterns using Perlin Noise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors