Advertisement
Crazykk1449

Loading Screen

Dec 18th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var loadLeng = 0;
  2. var loadingText = "Loading";
  3.  
  4. draw = function() {
  5.     background(255, 255, 255);
  6.     fill(187, 187, 187);
  7.     noStroke();
  8.     rect(125, 175, 175, 25);
  9.     fill(255, 255, 255);
  10.     rect(127, 177, 171, 21);
  11.     fill(9, 0, 255);
  12.     rect(loadLeng, 178, 100, 19);
  13.     fill(255, 255, 255);
  14.     rect(0, 0, 125, 300);
  15.     rect(300, 0, 125, 300);
  16.     loadLeng += 3;
  17.     if (loadLeng >= 320) {
  18.         loadLeng = 0;
  19.     }
  20.     fill(0, 0, 0);
  21.     textSize(20);
  22.     text(loadingText, 180, 230);
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement