Skip to content

Instantly share code, notes, and snippets.

@tuttlem
Created December 31, 2013 06:34
Show Gist options
  • Save tuttlem/8193381 to your computer and use it in GitHub Desktop.
Save tuttlem/8193381 to your computer and use it in GitHub Desktop.
Noise 5
for (int x = 0; x < w; x ++) {
for (int y = 0; y < h; y ++) {
float xx = (float)x / (float)this->width;
float yy = (float)y / (float)this->height;
map[x + (y * w)] = perlin::perlin2d(
xx, yy,
6, 1.02f
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment