mirror of
https://github.com/Cametendo/EMVs-Creative-coding.git
synced 2026-06-20 17:45:02 +02:00
Added some things
This commit is contained in:
22
Images/sketch.js
Normal file
22
Images/sketch.js
Normal file
@@ -0,0 +1,22 @@
|
||||
let img;
|
||||
|
||||
function preload() {
|
||||
img = loadImage("Images/monitoring-miku.png");
|
||||
}
|
||||
|
||||
function draw() {
|
||||
|
||||
}
|
||||
|
||||
function setup() {
|
||||
createCanvas(800, 800)
|
||||
image(img, 0, 0, mouseX, mouseY);
|
||||
|
||||
|
||||
loadPixels(); // loads pixels from canvas
|
||||
img.loadPixels(); // loads pixels from img
|
||||
img.updatePixels(); // updates the img pixels
|
||||
updatePixels(); // updates the canvas pixels
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user