Skip to content

Commit 75f3ff8

Browse files
committed
Loading Images: use local filename, regen.py handles path
1 parent dbe9c93 commit 75f3ff8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

assets/examples_js/Basics/web/Loading_Images/Loading_Images.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
let img;
22

33
function preload() {
4-
img = loadImage('https://processing-cpp.github.io/assets/data/processing-web.png');
4+
img = loadImage('processing-web.png');
55
}
66

77
function setup() {

examples/loading-images.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ <h1>Loading Images</h1>
6868
<script>(function(){const iframe=document.getElementById('sketch-frame');const doc=iframe.contentDocument||iframe.contentWindow.document;doc.open();doc.write(`<!DOCTYPE html><html><head><style>*{margin:0;padding:0;}body{overflow:hidden;}</style><script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.9.0/p5.min.js"><\/script></head><body><script>let img;
6969
7070
function preload() {
71-
img = loadImage("https://processing-cpp.github.io/assets/data/https://processing-cpp.github.io/assets/data/processing-web.png");
71+
img = loadImage("https://processing-cpp.github.io/assets/data/processing-web.png");
7272
}
7373
7474
function setup() {

0 commit comments

Comments
 (0)