NAME

tohtml.pl - Generate diamond-square fractal landscapes in HTML

SYNOSPS

 perl tohtml.pl --height 100 --width 200 --roughness .2 --landscape

DESCRIPTION

This tool shows how to use the Games::Terrain::DiamondSquare module. It will generate the HTML to display the output, though larger maps can be quite a burden for some browsers to render.

ARGUMENTS

All arguments are optional.

--height, -h

Takes a positive integer value. Default 50.

--width, -w

Takes a positive integer value. Default 50.

--roughness, r

A floating point value from 0.0 to 1.0. Higher numbers generate "rougher" terrain. Default is .5.

--landscape, -l

By default, we generate a 16 hue black and white plasma map. With the --landscape option, we generate an "old style" ASCII art map of terrain.