noise

package
v0.0.0-...-9e256ac Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator generates a heightmap using perlin noise.

func New

func New(seed int64, offsetX, offsetY float32) *Generator

New creates a new Generator with a seed.

func NewDefault

func NewDefault() *Generator

func (*Generator) Generate

func (g *Generator) Generate(px, py, width, height int) []byte

Generate implements terrain.Source.Generate.

Jump to

Keyboard shortcuts

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