Skip to content

Commit 1c3e5a4

Browse files
committed
Fix incorrect assets path in examlpes
1 parent 01fe311 commit 1c3e5a4

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

src/content/examples/en/03_Imported_Media/05_Video/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function setup() {
1313
// This createVideo() function will build a p5.MediaElement class.
1414
// It's best to upload multiple video formats so the video
1515
// is visible within different browsers.
16-
video = createVideo(['assets/fingers.mov', 'assets/fingers.webm']);
16+
video = createVideo(['/assets/fingers.mov', '/assets/fingers.webm']);
1717

1818
// Create a button next to the video that says 'play.'
1919
button = createButton('play');

src/content/examples/en/03_Imported_Media/06_Video_Canvas/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function setup() {
1010
// use the createVideo() function to load the video into the code.
1111
// It's best to upload multiple video formats so the video
1212
// is visible within different browsers.
13-
video = createVideo(['assets/fingers.mov', 'assets/fingers.webm']);
13+
video = createVideo(['/assets/fingers.mov', '/assets/fingers.webm']);
1414

1515
// By default, the video will render as its own DOM element.
1616
// Use the hide() method to remove the DOM instance of the video.

src/content/examples/en/03_Imported_Media/More/Video_Pixels.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let fingers;
1111
function setup() {
1212
createCanvas(320, 240);
1313
// specify multiple formats for different browsers
14-
fingers = createVideo(['assets/fingers.mov', 'assets/fingers.webm']);
14+
fingers = createVideo(['/assets/fingers.mov', '/assets/fingers.webm']);
1515
fingers.loop();
1616
fingers.hide();
1717
noStroke();

src/content/examples/en/11_3D/More/basic_shader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let theShader;
1010

1111
function preload(){
1212
// load the shader
13-
theShader = loadShader('/assets/basic.vert', 'assets/basic.frag');
13+
theShader = loadShader('/assets/basic.vert', '/assets/basic.frag');
1414
}
1515

1616
function setup() {

src/content/examples/en/11_3D/More/passing_shader_uniforms.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
function preload(){
1212
// load the shader
13-
theShader = loadShader('/assets/uniforms.vert', 'assets/uniforms.frag');
13+
theShader = loadShader('/assets/uniforms.vert', '/assets/uniforms.frag');
1414
}
1515

1616
function setup() {

src/content/examples/en/11_3D/More/shader_using_webcam.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
function preload(){
1414
// load the shader
15-
theShader = loadShader('/assets/webcam.vert', 'assets/webcam.frag');
15+
theShader = loadShader('/assets/webcam.vert', '/assets/webcam.frag');
1616
}
1717

1818
function setup() {

src/content/examples/en/11_3D/More/textures.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function setup() {
1212
createCanvas(710, 400, WEBGL);
1313

1414
img = loadImage('/assets/cat.jpg');
15-
vid = createVideo(['assets/360video_256crop_v2.mp4']);
15+
vid = createVideo(['/assets/360video_256crop_v2.mp4']);
1616
vid.elt.muted = true;
1717
vid.loop();
1818
vid.hide();

src/content/examples/en/15_Math_And_Physics/03_Smoke_Particle_System/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ let particleTexture;
33
let particleSystem;
44

55
function preload() {
6-
particleTexture = loadImage('assets/particle_texture.png');
6+
particleTexture = loadImage('/assets/particle_texture.png');
77
}
88

99
function setup() {

0 commit comments

Comments
 (0)