var r
var g
var b
var xspeed = 0;
var yspeed = 0;
var xpos = 0;
var ypos = 0;
var x1pos = 600;
var y1pos = 0;
var x2pos = 0;
var y2pos = 0;
var x3pos = 0;
var y3pos = 0;
var x4pos = 0;
var y4pos = 0;
var s ='Susan Cianciolo Bridget Donahue, New York Sep 21 - Dec 3';


function setup() {
  createCanvas(windowWidth, windowHeight);
 background(0,65,163);
   message=("run");
   message2=("café");

 

}

function windowResized() {
  resizeCanvas(windowWidth, windowHeight);
   background(0,65,163);

     
}


function draw() {
    textSize(width/10);
    textFont("Arial Black");
 
   


 
  //run1
  fill(random(200,247), 208, 132);
  text(message, x2pos, y2pos);
  x2pos = random(0,width);
  y2pos += random(1,25);
 
  //cafe1
  fill(random(200,247), 71, 47);
  text(message2, x2pos, y2pos);
  x2pos = random(0,width);
  y2pos += random(1,20);
  textSize(width/33);
    
  //run2
  fill(117,160,36);
  text(message, x1pos, y1pos);
  x1pos = random(0,width);
  y1pos += random(1,25);
 
    //run22
  fill(0,65,163);
  text(message, x1pos, y1pos);
  x1pos = random(0,width);
  y1pos += random(1,25);
 
    
  //cafe2
  fill(random(200,221), 171, 70);
  text(message2, x1pos, y1pos);
  x1pos = random(0,width);
  y1pos += random(1,20);
  textSize(width/34);
  
  //
  fill(255);
  textAlign(CENTER);
  text(s, width/2, height-10);
  //text(s, x4pos+12, y4pos);
  x4pos = 0;
  y4pos += height/1.01;
  pop();
    
    if(y3pos > height/3){
    y3pos = 0;
   
 } if(y2pos > height/3){
    y2pos = 0;
   
 } 
  if(y4pos > height){
    y4pos = 0;
   
 }  if(y1pos > height){
     y1pos = 0;
 }
    //

}
function keyTyped(){
     if(key==' '){
        save('poster.png');
        
    }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.6/p5.min.js
  2. https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.7/addons/p5.dom.js