Documentation ¶
Overview ¶
Perlin noise generation code.
Written using http://webstaff.itn.liu.se/~stegu/TNM022-2005/perlinnoiselinks/perlin-noise-math-faq.html as a guide.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PerlinNoise ¶
type PerlinNoise struct {
// contains filtered or unexported fields
}
func NewPerlinNoise ¶
func NewPerlinNoise(seed int64) *PerlinNoise
func (*PerlinNoise) At2d ¶
func (gen *PerlinNoise) At2d(x, y float64) float64
At2d returns the noise value at a given 2D point.
func (*PerlinNoise) MeanMagnitude ¶
func (gen *PerlinNoise) MeanMagnitude() float64
Click to show internal directories.
Click to hide internal directories.