xxxxxxxxxx
35
// ⭐️ TODO: Declare your variables here
// EXAMPLE:
var myPic;
// ⭐️ TODO: Use function preload()
// and loadImage() (for sound: loadSound() to preload your media
// EXAMPLE:
function preload() {
//myImg = loadImage("divdeby0.jpeg");
//https://www.alleycat.org/wp-content/uploads/2019/03/FELV-cat.jpg
myPic = loadImage("https://www.alleycat.org/wp-content/uploads/2019/03/FELV-cat.jpg");
}
function setup() {
createCanvas(400, 400);
// ⭐️ TODO: Initialize your (non-media) variables here
}
function draw() {
background(220, 220, 220);
// ⭐️ TODO: Place your images on the canvas using
image(myPic, 0, 0, 200, 100)
// helper grid
// drawGrid();
}