Skip to content

Generate hazy fractal-like wallpaper images by simulating random walks in different colors.

Notifications You must be signed in to change notification settings

intrepidcoder/RgbRandomWalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Walk Wallpaper Generator

Generate hazy fractal-like wallpaper images by simulating random walks in different colors.

The intensity of a pixel corresponds to the number of times it is visited during each random walk. See Wikipedia for more info on random walks.

Usage

javac RgbRandomWalk.java
java RgbRandomWalk <imagefilepath> <width> <height> <steps>

The <imagefilepath> parameter is the filename of the PNG image to output. Output is in PNG format regardless of specified extension. This can be changed in source file. Note: will overwrite any existing file. Use caution.

width and height specify the size of image.

steps specifies the number of steps to take for each random walk.

The number of random walks and corresponding colors can be changed by editing the RgbRandomWalk.java file.

Example output

Example 1

Width: 600, height: 400, steps: 500000

Example 2

Width: 600, height: 400, steps: 1000000

Example 3

Width: 1920, height: 1080, steps: 6000000

About

Generate hazy fractal-like wallpaper images by simulating random walks in different colors.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages