int numFrames = 10;
int frame = 0;
BImage[] images = new BImage[numFrames];
void setup()
{
size(500, 500);
framerate(10);
images[0] = loadImage("news00.gif");
images[1] = loadImage("new01.gif");
images[2] = loadImage("news02.gif");
images[3] = loadImage("news03.gif");
images[4] = loadImage("news04.gif");
images[5] = loadImage("news05.gif");
images[6] = loadImage("news06.gif");
images[7] = loadImage("news07.gif");
images[8] = loadImage("news08.gif");
images[9] = loadImage("news09.gif");
}
void loop()
{
if(frame == 9)
{
frame = 0;
}
else
{
frame++;
}
image(images[frame], 0, 0);
}
***NOISE 2***
int xx;
void setup(){
//framerate(80);
size(500,500);
xx = 100;
}
void loop(){
for (int y=10; y < 500; y++){
for (int x=10; x < 500; x++){
float h = sin(PI + x / 500);
float v = tan(PI * y / 500);
float c = cos(xx * tan(h * v)) * 100;
set(x,y,color(25,c,50));
}
}
xx = xx * 100/35;
}
***NOISE ^***
int xx;
void setup(){
framerate(60);
size(400,400);
xx = 100;
}
void loop(){
for (int y=0; y < 400; y++){
for (int x=0; x < 400; x++){
float h = sin(PI * x / 400);
float v = sin(PI * y / 400);
float c = tan(xx * cos(PI*(h *v*PI/xx)) * 100);
set(x,y,color(c,25,1));
}
}
xx = xx + 1;