https://editor.p5js.org/SuperiorCrane1/sketches/xWM-mKAof
var cliff;
var book;
var ps5;
var architectuur;
var frame;
var interior;
var picture;
var persona;
function preload() {
cliff = loadImage("Cliff House.jpg")
book = loadImage("SketchBook.png")
ps5 = loadImage("ps5.png")
frame = loadImage("frame.jpg")
architectuur = loadImage("Architectuur.png")
interior = loadImage("interior.jpg")
picture=[architectuur,interior]
selector= floor(random(picture.length))
persona= loadImage("Persona.png")
}
function setup() {
createCanvas(600, 500);
colorMode(HSB)
//Loop is off so it would load faster
noLoop()
}
function draw() {
background(128);
tint(200 ,10, 80)
image(cliff, 0,0,600,500);
tint(200 ,10, 200)
image(book, 25, 310, 180, 180)
image(ps5, 480,123,100,100)
tint(100 ,0, 75)
image(frame, 100, 115, 200, 110)
tint(200 ,10, 200)
image(picture[selector],110,120,180,100)
tint(100 ,0, 50)
image(persona, 330,138,80,80)
textFont("Pacifico")
textSize(26)
text("DodoKing",475,120)
}