Skip to content

Instantly share code, notes, and snippets.

@derrybryson
derrybryson / genmap.py
Last active August 29, 2015 14:25 — forked from caseman/genmap.py
"""Create a map and render it as a pgm image.
(see http://netpbm.sourceforge.net/doc/pgm.html)
"""
import sys
import math
import json
from functools import lru_cache
from noise import snoise2
@derrybryson
derrybryson / OpenSimplexNoise.java
Last active August 29, 2015 14:25 — forked from KdotJPG/OpenSimplex2S.java
Visually axis-decorrelated coherent noise algorithm based on the Simplectic honeycomb.
/*
* OpenSimplex Noise in Java.
* by Kurt Spencer
*
* v1.1 (October 5, 2014)
* - Added 2D and 4D implementations.
* - Proper gradient sets for all dimensions, from a
* dimensionally-generalizable scheme with an actual
* rhyme and reason behind it.
* - Removed default permutation array in favor of
@derrybryson
derrybryson / OpenSimplexASM.js
Last active August 29, 2015 14:25 — forked from Mocker/OpenSimplexASM.js
OpenSimplexNoise ported to Javascript
/*
* OpenSimplex (Simplectic) Noise in Javascript.
* original by Kurt Spencer (https://gist.github.com/KdotJPG/b1270127455a94ac5d19)
* ported to Javascript (ASM) by Ryan Guthrie
*
*/
function OpenSimplexASM(stdlib, foreign, heap ) {
"use asm";