https://github.com/ftomassetti/haskell-diamond-square
Haskell implementation of the Diamond-Square algorithm for heightmap generation
https://github.com/ftomassetti/haskell-diamond-square
Last synced: 8 months ago
JSON representation
Haskell implementation of the Diamond-Square algorithm for heightmap generation
- Host: GitHub
- URL: https://github.com/ftomassetti/haskell-diamond-square
- Owner: ftomassetti
- License: mit
- Created: 2014-11-01T18:27:31.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-08T17:31:25.000Z (almost 11 years ago)
- Last Synced: 2024-12-27T07:45:23.165Z (9 months ago)
- Language: Haskell
- Size: 610 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
haskell-diamond-square
======================Haskell implementation of the Diamond-Square algorithm for heightmap generation.
Example
=======
Running:
```
haskell-diamond-square -s1 -w1000 -h500 -bmap.bmp
```The output is:
```
Diamond square generator
------------------------
Seed : 1
Width : 1000
Height : 500
Bitmap : 'map.bmp'
Heightmap :
```And the bitmap generated is:
Usage
=====The program accepts the following options. Note that -b or -m should be specified, otherwise the program exit without doing nothing.
| Example | Effect | Notes |
|---------------|---|---|---|---|
|-s1 | Specify the seed to use | |
|-w1000 | Width of the map | Should be in [1,8192] |
|-h500 | | Should be in [1,8192] |
|-bmap.bmp | Specify where to save the bitmap | |
|-mheightmap.hm | Specify where to save the map in binary format | This is serialized using [Google Protocol Buffers](https://developers.google.com/protocol-buffers/) |