added mona-lisa picture to the canvas
This commit is contained in:
1 parent
ca414fd909
commit
f9b57cd884
2 files changed
+13
-4
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 471 KiB |
@@ -1,7 +1,16 @@
|
|||||||
function setup() {
|
let img;
|
||||||
createCanvas(400, 400);
|
|
||||||
|
// Load the image.
|
||||||
|
function preload() {
|
||||||
|
img = loadImage('/assets/mona-lisa.jpg');
|
||||||
}
|
}
|
||||||
|
|
||||||
function draw() {
|
function setup() {
|
||||||
background(220);
|
createCanvas(400, 400);
|
||||||
|
|
||||||
|
// Display the image.
|
||||||
|
img.resize(0, 400);
|
||||||
|
image(img, 0, 0);
|
||||||
|
|
||||||
|
describe('Mona lisa - by Davincci');
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user