Skip to content

Instantly share code, notes, and snippets.

View Andrewcpu's full-sized avatar
👁️‍🗨️

Andrew Stein Andrewcpu

👁️‍🗨️
  • Andrewcpu
  • Philadelphia
  • 09:08 (UTC -04:00)
View GitHub Profile
/*
* OpenSimplex (Simplectic) Noise in Java.
* (v1.0.1 With new gradient set and corresponding normalization factor, 9/19/14)
*/
public class OpenSimplexNoise {
private static final double STRETCH_CONSTANT_3D = -1.0 / 6;
private static final double SQUISH_CONSTANT_3D = 1.0 / 3;