Skip to content

Instantly share code, notes, and snippets.

@Darkyenus
Darkyenus / OpenSimplexNoise.java
Last active December 5, 2017 11:51 — forked from digitalshadow/OpenSimplexNoise.cs
OpenSimplex Noise Refactored for C# and then back for Java
/**
* Adapted from https://gist.github.com/digitalshadow/134a3a02b67cecd72181
*/
@SuppressWarnings({"unused", "WeakerAccess"})
public final class OpenSimplexNoise {
private final byte[] perm = new byte[256];
private final byte[] perm2D = new byte[256];
private final byte[] perm3D = new byte[256];
private final byte[] perm4D = new byte[256];