test commit
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
let img;
|
let img;
|
||||||
|
|
||||||
// Load the image.
|
// Load the image
|
||||||
function preload() {
|
function preload() {
|
||||||
img = loadImage('/assets/mona-lisa.jpg');
|
img = loadImage('/assets/mona-lisa.jpg');
|
||||||
}
|
}
|
||||||
@ -8,7 +8,7 @@ function preload() {
|
|||||||
function setup() {
|
function setup() {
|
||||||
createCanvas(400, 400);
|
createCanvas(400, 400);
|
||||||
|
|
||||||
// Display the image.
|
// Display the image
|
||||||
img.resize(0, 400);
|
img.resize(0, 400);
|
||||||
image(img, 0, 0);
|
image(img, 0, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user