> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://playgramming.sketchpad.cc/sp/pad/view/ro.kFHArwpbIRH/rev.618
 * 
 * authors: 
 *   Devon Scott-Tunkin

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



/* @pjs preload="/static/uploaded_resources/p.9705/volcano.jpg, /static/uploaded_resources/p.9705/alligator.png"; */
PImage volcano;
PImage alligator;

void setup() {  // this is run once.   
    size(300, 500); 

    volcano = loadImage("/static/uploaded_resources/p.9705/volcano.jpg");
    volcano.filter(BLUR, 10);
    
    alligator = loadImage("/static/uploaded_resources/p.9705/alligator.png"); 


    imageMode(CORNER);
    image(volcano, 0, 0, width, height);

    for (int count = 0; count < height; count += 10)
    {
        stroke(255);
        strokeWeight(1.5);
        line(0, count, width, count);
    }
    for (int count = 0; count < width; count += 10)
    {
        stroke(255);
        strokeWeight(1.5);
        line(count, 0, count, height);
    }
    
    imageMode(CENTER);
    
    tint(100, 0, 100);
    pushMatrix();
    translate(200, 200);
    rotate(radians(45));
    image(alligator, 0, 0, 50, 50);
    popMatrix();
    
    noTint();
    pushMatrix();
    translate(200, 400);
    rotate(radians(72));
    image(alligator, 0, 0, 50, 50);
    popMatrix();
    
    tint(255, 0, 0);
    

    
    pushMatrix();
    translate(100, 100);
    rotate(radians(90));
    scale(2, 2);
    image(alligator, 0, 0, 50, 50);
    popMatrix();
    
    //println("x: " + mouseX + " y: " + mouseY);
    

}