30 lines
519 B
JavaScript
30 lines
519 B
JavaScript
function preload() {
|
|
img1 = loadImage('assets/wallpaper/dear.png');
|
|
img2 = loadImage('assets/wallpaper/elphantJap.jpg');
|
|
}
|
|
|
|
function setup() {
|
|
createCanvas(img1.width, img1.height);
|
|
background(255, 255, 255)
|
|
|
|
//image(img1, 0, 0);
|
|
var glithes = random(3, 10);
|
|
|
|
for (let col = 0; col < img1.width; col += 1) {
|
|
for (let row = 0; row < img1.height; row += 1) {
|
|
let c = img1.get(col, row);
|
|
stroke(color(c));
|
|
strokeWeight(1);
|
|
point(col, row);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
function draw() {
|
|
|
|
}
|
|
|
|
function mousePressed() {
|
|
|
|
} |