> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://dflab.sketchpad.cc/sp/pad/view/ro.Qyqg-Im28MW/rev.1047
 * 
 * authors: 
 *   TEKOteko

 * license (unless otherwise specified): 
 *   creative commons attribution-share alike 3.0 license.
 *   https://creativecommons.org/licenses/by-sa/3.0/ 
 */ 




//salva de aplausos ao Delacroix e as suas figuras sensuais e objectificadas
// coiso
/* @pjs preload="/static/uploaded_resources/p.10089/551.jpg"; */
/* @pjs preload="/static/uploaded_resources/p.10089/552.jpg"; */

PImage cr1 = loadImage("/static/uploaded_resources/p.10089/551.jpg");
PImage cr2 = loadImage("/static/uploaded_resources/p.10089/552.jpg");



float px;
float py;
int num_particles = 45;

 
void setup() { 
    
 
    size(344, 344);  
    background(cr1,255,255,200);
    frameRate(50);    
    px = random (width);
    py = random (height);
    
    //alvo~
    textSize(25);
    fill(255);
    text("대상", 25, 35);
    text("대상", 25, 65);  
    text("대상~", 25, 95); 
        

} 
 
void draw() {
    


    if (mousePressed == true)
    background (cr2);
    if (mousePressed == false)
    background (cr1);
    
    
    textSize(25);
    fill(random(256));
    text("대상", 25, 35);    
    fill(255);
    text("대상", 25, 65);  
    fill(255);
    text("대상~", 25, 95);    
    
    
    noStroke();
    rectMode(CENTER);
    fill(240,180,200,130);    
    sx = (frameCount % 500) / 500.0;
    rect(180,140,32,21* sx, 800 * sx);


    noStroke();
    rectMode(CENTER);
    fill(240,180,200,90);    
    sx = (frameCount % 500) / 500.0;
    rect(258,140,32,21 * sx, 800 * sx);

    
    
}