Skip to content

Releases: ojrac/opensimplex-go

Fix normalized noise range

27 Jan 02:18
Compare
Choose a tag to compare

For details, see #9 . Before this change, normalized values could return outside the range [0, 1).

Updating to this version will change normalized output; expect some differences if you're relying on repeatable results.

Update Go module syntax

03 Oct 01:05
Compare
Choose a tag to compare

A typo made it hard to target v1.0.0 as a Go module. No code changes.

Prepare for go modules, and add normalized noise

27 Sep 12:05
Compare
Choose a tag to compare

This release is the first API-breaking change to opensimplex-go. It includes newly contributed normalized noise options, and replaces the Noise struct with an interface, to make room for future options like fractal noise.

New noise options

Noise32: A noise interface that takes float32 values as inputs and returns a float32.

New32(seed): Same data as New(), but cast to float32
NewNormalized(seed): Eval methods return a float64 in [0, 1).
NewNormalized32(seed): Eval methods return a float32 in [0, 1).

Updating

Replace NewWithSeed(seed) with New(seed).
Replace New() with New(0).
The NewWithPerm function has been removed; please open an issue if you want this back.