Generate Perlin noise in Haxe.