Skip to content

jonahjoughin/perlin-fields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perlin Fields

Generative particle fields using perlin noise

Samples

Perlin Fields

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Cairo

Prerequisite Installation

https://www.cairographics.org/download/

Compiling

gcc -o main -I /opt/local/include/cairo -L /opt/local/lib -lcairo main.c perlin.c particle.c color.c

Running

./main output /path/to/output.png

Command Line Aruments

  • width: set width of output in px
  • height: set height of output in px
  • hue: set hue of background (0-1)
  • sat: set saturation of background (0-1)
  • val: set value of background (0-1)
  • steps: set number of steps particles take
  • numParticles: set number of particles
  • noiseScale: set scale of perlin noise used
  • mode: set mode of particle motion
  • output: set output image path
  • scale: scale output image (adjusts width, height, and noiseScale automatically)

About

Generative particle fields using perlin noise

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages