/**
* Noise Wave
* by Daniel Shiffman.
*/
int xspacing = 8;
int w;
float yoff = 0.0f;
float[] yvalues;
void setup(){
size(400,400);
frameRate(30);
colorMode(RGB,255,255,255,100);
smooth();
w = width + 16;
yvalues = new float[w/xspacing];
}
void draw(){
background(0);
calcWave();
renderWave();
renderWave2();
}
void calcWave(){
float dx = 0.05f;
float dy = 0.01f;
float amplitude = 200.0f;
yoff += dy;
float xoff = yoff;
for(int i =0; i < x ="0;" x ="0;">
コメント
コメントを投稿