We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi Processing users, i have an innue exporting this code snippet
int eventID = 0;
class DrawCircle {
int r;
int x;
int y;
int h;
DrawCircle() {
r = width/4;
h = 0;
}
void display(int x, int y) {
noStroke();
fill(192,43,11,h);
ellipse(x,y,r,r);
if (h < 256) {
h += 1;
}
}
void erase(int x, int y) {
fill(255);
noStroke();
ellipse(x,y,r,r);
}
}
DrawCircle a;
DrawCircle b;
DrawCircle c;
void setup() {
smooth();
noStroke();
size(800,800);
background(255);
fill(192,43,11);
ellipse(width/2,height/2,height,height);
fill(255,255,255);
ellipse(width/2,height/2,height-150,height-150);
a = new DrawCircle();
b = new DrawCircle();
c = new DrawCircle();
frameRate(10);
}
void draw() {
if (eventID == 0) {
a.erase(width/2,height/2 - width/8);
b.erase(width/2 - width/8,height/2 + height/11);
c.erase(width/2 + width/8,height/2 + height/11);
} else if (eventID == 1) {
a.display(width/2,height/2 - width/8);
} else if (eventID == 2) {
b.display(width/2 - width/8,height/2 + height/11);
} else {
c.display(width/2 + width/8,height/2 + height/11);
}
}
void mousePressed() {
if (eventID == 3) {
eventID = 0;
} else {
eventID += 1;
}
}
for Windows platform. exporting it for osx don't give me any issue but in windows everything goes well until i try to open the .exe file and nothing happens. i tried it on windows 7 windows 8 and windows xp i'm wondering that's maybe is a code issue but i don't know
thanks in advance for the helping hand
Answers
Which version of Processing are you using? 2.0.3?
the last stable one 2.1
See http://forum.processing.org/two/discussion/780/why-execute-not-run-processing-2-1 among other similar topics.