Your welcome. I got in touch with Processing some years ago ( it was in ALPHA stage ).
Nearly forget about it because I tend to write my Java applets from scratch now. Never-
theless, it makes gfx coding with java very easy and has some nice built in function.
Furthermore, you can extend your programs with normal java classes rather easily ...
Btw, there is also a version for java enabled mobile phones around at :
http://mobile.processing.org/index.phpI tested it back in 2005 and it did work perfectly on my mobile as far as I remember. I
did write a little horizontal starfield. Here is the code for it :
Star [] s;
int numStars;
int centerX;
int centerY;
void setup()
{
numStars = 30;
centerX = width >> 1;
centerY = height >>1;
s = new Star[numStars];
for (int i = 0; i < numStars; i++)
{
s[i] = new Star();
}
}
void draw()
{
background(0);
for (int i = 0; i < numStars; i++)
{
s[i].draw();
}
}
class Star
{
int x;
int y;
int z;
int f;
Star()
{
this.x = random(width);
this.y = random(height);
this.z = random(1,4);
this.f = this.z * 50;
}
void draw()
{
stroke(f);
this.x = this.x - this.z;
if (this.x > 0)
{
point (this.x, this.y);
}
else
{
this.x = width;
this.y = random(height);
this.z = random(1,4);
this.f = this.z * 50;
}
}
}