To tendo o erro a seguir ao executar o codigo:
let imagemDaEstrada;
let imagemDoAtor;
let imagemCarro;
function preload(){
imagemDaEstrada = loadImage("imagens/capa_145.jpg");
imagemDoAtor = loadImage("imagens/ator-1.png");
imagemCarro = loadImage("imagens/carro-1.png")
}
function setup() {
createCanvas(500, 400);
}
function draw() {
background(imagemDaEstrada);
image(imagemDoAtor, 100, 366, 30, 30);
image(imagemCarro, 420, 40, 50, 40)
}
p5.js says: p5 had problems creating the global function "createElement", possibly because your code is already using that name as a variable. You may want to rename your variable to something else. (http://p5js.org/reference/#/p5/createElement)