项目作者: intrepidcoder

项目描述 :
Generate hazy fractal-like wallpaper images by simulating random walks in different colors.
高级语言: Java
项目地址: git://github.com/intrepidcoder/RgbRandomWalk.git
创建时间: 2015-08-02T20:26:41Z
项目社区:https://github.com/intrepidcoder/RgbRandomWalk

开源协议:

下载


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

  1. javac RgbRandomWalk.java
  2. 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