It’s hard to explain but basically, I have a project which includes an image and I want to make an Html website that runs the p5js code. I already got the website set up and the code, but when I run it the image doesn’t load, even though it’s in the web file on my computer. How do I fix this?
p5js project: https://www.openprocessing.org/sketch/1038452
HTML code:
<<!DOCTYPE html>
<html lang="">
<title>MARS P5.js 2020 Image Processing</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
padding: 0;
margin: 0;
}
</style>
<script src="../p5.js"></script>
<script src="../addons/p5.sound.min.js"></script>
<script src="image.js"></script>
<h1 style="color: rgb(0,0,0); font-family: Helvetica;">MARS P5.js 2020 Image Processing</h1>
<p style="color: rgb(0,0,0); font-family: Helvetica;" >e</p>
<a href="index.html" style="color: rgb(0,0,0); font-family: Helvetica;"> <-- </a>
</head>
</body>
</html>
Also for some reason the it doesn’t all the time