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.
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.
Width: 600, height: 400, steps: 500000
Width: 600, height: 400, steps: 1000000
Width: 1920, height: 1080, steps: 6000000