generation

package
v0.0.0-...-6af930d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoiseMap

type NoiseMap struct {
	Width  int
	Height int
	// contains filtered or unexported fields
}

func NewNoiseMap

func NewNoiseMap(seed int64, width, height int, ofs, scale float64, octaves int, persistance, lacunarity float64) NoiseMap

func (*NoiseMap) Get

func (n *NoiseMap) Get(x, y int) float32

func (*NoiseMap) GetColor

func (n *NoiseMap) GetColor(x, y int) color.RGBA

func (*NoiseMap) WriteImage

func (n *NoiseMap) WriteImage(w io.Writer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL