I'm creating a student Web site of my work in a digital media class and am having trouble getting two Processing projects to appear on a portfolio page in this site. I've exported the applets for the two projects and placed them in the correct folder within the structure of the site. Then I selected "index.html" for each and the basic Processing index page and the video box or screen show up correctly, but the animations won't play within the box. The page said that my computer needed a Java update, but even after this was installed the animations still won't appear. These Processing projects are the last things I have to add to complete my site. Can anyone offer any advice? It's greatly appreciated. Thank you.
I'm new to Processing and this is my first post on this forum. I'm working on a simple animation project for a class and I've hit a snag. For the animation, I'm trying to get a couple of rectangles to move across the screen using the Wrap Around technique. I also have mouse input- a small dot that follows the arrow around the screen. The code I've created is below. The void draw seems to be controlling the speed at which the dot follows the arrow, but the rectangles aren't moving. I have a feeling that a simple change is all that's needed, but the changes I've tried haven't made a difference. What am I missing?
int center=40;
float x= -center;
float speed=30;
void setup(){
frameRate(30);// Thirty frames each second
size(640,480);// size of window
background(51);
smooth();
strokeWeight(2);
rectMode(CENTER);
}
void draw(){
background(51);
x+=speed;// Increase the value of x
if(x>width+center){ //If the shape is off the screen,