perlin

package
v0.0.0-...-566b5d1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2011 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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