Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DEEPWATER = color.RGBA{0, 83, 209, 255} WATER = color.RGBA{45, 118, 228, 255} SHORE = color.RGBA{100, 193, 240, 255} LAND = color.RGBA{81, 168, 95, 255} MOUNTAIN = color.RGBA{115, 66, 12, 255} )
---------------------------------------------------------------------------- Auxiliaries
Functions ¶
func HeightMapToImage ¶
Heightmap -> RGBA image
func SaveHeightMap ¶
---------------------------------------------------------------------------- Other functions Saves the heightmap
Types ¶
type HeightMap ¶
---------------------------------------------------------------------------- Heightmap
func NewHeightMapDS ¶
Diamond Square (works better with h,w = 2^k)
func NewHeightMapRN ¶
---------------------------------------------------------------------------- Heightmap generator functions Random noise
func (*HeightMap) ColorModel ¶
Click to show internal directories.
Click to hide internal directories.