> show canvas only <


/* built with Studio Sketchpad: 
 *   https://sketchpad.cc
 * 
 * observe the evolution of this sketch: 
 *   https://dflab.sketchpad.cc/sp/pad/view/ro.QpzljJPH91q/rev.293
 * 
 * authors: 
 *   Daniela Soares

 * 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.10117/9.png"; */

PShape bot;

void setup() {
  size(300, 300);
  bot = loadImage("/static/uploaded_resources/p.10117/9.png");
} 

void draw() {
  background(#81EAF5);
  translate(width/2, height/2);
  float zoom = map(mouseX, 0, width, -1, 6.0);
  scale(zoom);
  image(bot, -10, -65);
}