A heightmap implementation in Ruby.
- 'main.rb': A visualizer / toy that uses the HeightMap class
- 'heightmap.rb': The brain of the operation, this is all that is needed to use the HeightMap class with other projects.
- Pressing the spacebar will recalculate the height for all of the cells in the grid
- Hold one of the shift keys while pressing the spacebar to calculate 10 generations instead of 1
- Z to generate weak random static
- X to generate strong random static
- C to smooth the grid
- Mouse-over cells to see their height
- Left click on a cell to recalculate that cell's height
- [ to lower the contrast
- ] to raise the contrast
- F1 to save the heightmap
- F2 to load the heightmap
- F9 to save a bitmap image of the current heightmap
This work is licensed under a Creative Commons Attribution 3.0 Unported License.
Contact me if you have any questions: chase4926 (at) gmail.com