Ekran Koruyucu - Animasyon
Kaynak Kodu :
//JAVA - Processing
// zafercavdar
void setup()
{
size (1366, 768);
background(0);
frameRate(300);
//setup();
}
int x = 0, y = 0;
int sx = 1366/2, sy = 768/2;
void draw()
{
int c = 10;
stroke(random(255), random(255), random(255));
strokeWeight(c);
point(sx, sy);
x = int (random(3)) - 1;
y = int (random(3)) - 1;
if ((sx + x*c) >= 0 || (sx + x*c) <= 1366 )
sx += x*c;
if ((sy + y*c) >= 0 || (sy + y*c) <= 768 )
sy += y*c;
}
// zafercavdar
void setup()
{
size (1366, 768);
background(0);
frameRate(300);
//setup();
}
int x = 0, y = 0;
int sx = 1366/2, sy = 768/2;
void draw()
{
int c = 10;
stroke(random(255), random(255), random(255));
strokeWeight(c);
point(sx, sy);
x = int (random(3)) - 1;
y = int (random(3)) - 1;
if ((sx + x*c) >= 0 || (sx + x*c) <= 1366 )
sx += x*c;
if ((sy + y*c) >= 0 || (sy + y*c) <= 768 )
sy += y*c;
}