koolguy
Active Member
Hi,
I am learning processing software here is the code for moving object..
i want to know how to make a file for opening it like flash file/gif images while saving/exporting it it is not doing as i want the processing software window open.
I am learning processing software here is the code for moving object..
i want to know how to make a file for opening it like flash file/gif images while saving/exporting it it is not doing as i want the processing software window open.
Code:
float x=200;
float y=100;
float speed=2;
void setup(){
size(200,200);
}
void draw(){
background(255);
move();
display();
}
void move() {
x=x+speed;
if (x>width){
x=0 ;
}}
void display(){
fill(20);
rect(x,y,30,20);}