Skip to content

Instantly share code, notes, and snippets.

@sasaki-shigeo
Last active December 15, 2019 22:51
Show Gist options
  • Save sasaki-shigeo/bd4eb39ff71792f83cd6f837a0c86384 to your computer and use it in GitHub Desktop.
Save sasaki-shigeo/bd4eb39ff71792f83cd6f837a0c86384 to your computer and use it in GitHub Desktop.
A demonstration of the Perlin noise: the sky and cloud. / パーリンノイズのデモ:空と雲
void setup() {
size(500, 500);
colorMode(HSB, 360, 1.0, 1.0);
}
void draw() {
for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
stroke(210, noise(i / 60.0, j / 60.0, frameCount / 60.0), 1.0);
point(i, j);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment