Nothing Shows HELP
in
Programming Questions
•
4 months ago
I am trying to make a scrolling banner with my name and changes color when mo clicked.
But when i run the sketch in pde and after saving it I get no errors but nothing comes up whatsoever.
PFont font;int xpos2;int xpos;color col;boolean el;
void setup() {xpos = -260;col = color(int(random(255)), int(random(255)), int(random(255)));font = loadFont("http://www.jaboston.com/agency.vlw");size(1200, 100);smooth();textSize(99);frameRate(120);while(xpos < 940){background(255);if (el == true) {col = color(int(random(255)), int(random(255)), int(random(255)));el = false;}if (mousePressed) {el = true;}}xpos2 = -260;fill(col);xpos++;text("Ethan", xpos, 90);}
void draw() {background(255);if (el == true) {col = color(int(random(255)), int(random(255)), int(random(255)));el = false;}if (mousePressed) {el = true;}if (xpos >= 940){xpos = 940;}fill(col);xpos++;xpos2++;text("Ethan", xpos, 90);text("Ethan", xpos2, 90);if (xpos == 1200){xpos = -260;}if (xpos2 == 1200){xpos2 = -260;}println(xpos);}
1