added mona-lisa picture to the canvas

This commit is contained in:
2025-02-03 12:19:01 +01:00
parent ca414fd909
commit f9b57cd884
2 changed files with 14 additions and 5 deletions

BIN
assets/mona-lisa.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 KiB

View File

@ -1,7 +1,16 @@
function setup() {
createCanvas(400, 400);
let img;
// Load the image.
function preload() {
img = loadImage('/assets/mona-lisa.jpg');
}
function draw() {
background(220);
}
function setup() {
createCanvas(400, 400);
// Display the image.
img.resize(0, 400);
image(img, 0, 0);
describe('Mona lisa - by Davincci');
}