File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed
15_Math_And_Physics/03_Smoke_Particle_System Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function setup() {
13
13
// This createVideo() function will build a p5.MediaElement class.
14
14
// It's best to upload multiple video formats so the video
15
15
// is visible within different browsers.
16
- video = createVideo ( [ 'assets/fingers.mov' , 'assets/fingers.webm' ] ) ;
16
+ video = createVideo ( [ '/ assets/fingers.mov' , '/ assets/fingers.webm' ] ) ;
17
17
18
18
// Create a button next to the video that says 'play.'
19
19
button = createButton ( 'play' ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function setup() {
10
10
// use the createVideo() function to load the video into the code.
11
11
// It's best to upload multiple video formats so the video
12
12
// is visible within different browsers.
13
- video = createVideo ( [ 'assets/fingers.mov' , 'assets/fingers.webm' ] ) ;
13
+ video = createVideo ( [ '/ assets/fingers.mov' , '/ assets/fingers.webm' ] ) ;
14
14
15
15
// By default, the video will render as its own DOM element.
16
16
// Use the hide() method to remove the DOM instance of the video.
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ let fingers;
11
11
function setup ( ) {
12
12
createCanvas ( 320 , 240 ) ;
13
13
// specify multiple formats for different browsers
14
- fingers = createVideo ( [ 'assets/fingers.mov' , 'assets/fingers.webm' ] ) ;
14
+ fingers = createVideo ( [ '/ assets/fingers.mov' , '/ assets/fingers.webm' ] ) ;
15
15
fingers . loop ( ) ;
16
16
fingers . hide ( ) ;
17
17
noStroke ( ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ let theShader;
10
10
11
11
function preload ( ) {
12
12
// load the shader
13
- theShader = loadShader ( '/assets/basic.vert' , 'assets/basic.frag' ) ;
13
+ theShader = loadShader ( '/assets/basic.vert' , '/ assets/basic.frag' ) ;
14
14
}
15
15
16
16
function setup ( ) {
Original file line number Diff line number Diff line change 10
10
11
11
function preload ( ) {
12
12
// load the shader
13
- theShader = loadShader ( '/assets/uniforms.vert' , 'assets/uniforms.frag' ) ;
13
+ theShader = loadShader ( '/assets/uniforms.vert' , '/ assets/uniforms.frag' ) ;
14
14
}
15
15
16
16
function setup ( ) {
Original file line number Diff line number Diff line change 12
12
13
13
function preload ( ) {
14
14
// load the shader
15
- theShader = loadShader ( '/assets/webcam.vert' , 'assets/webcam.frag' ) ;
15
+ theShader = loadShader ( '/assets/webcam.vert' , '/ assets/webcam.frag' ) ;
16
16
}
17
17
18
18
function setup ( ) {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ function setup() {
12
12
createCanvas ( 710 , 400 , WEBGL ) ;
13
13
14
14
img = loadImage ( '/assets/cat.jpg' ) ;
15
- vid = createVideo ( [ 'assets/360video_256crop_v2.mp4' ] ) ;
15
+ vid = createVideo ( [ '/ assets/360video_256crop_v2.mp4' ] ) ;
16
16
vid . elt . muted = true ;
17
17
vid . loop ( ) ;
18
18
vid . hide ( ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ let particleTexture;
3
3
let particleSystem ;
4
4
5
5
function preload ( ) {
6
- particleTexture = loadImage ( 'assets/particle_texture.png' ) ;
6
+ particleTexture = loadImage ( '/ assets/particle_texture.png' ) ;
7
7
}
8
8
9
9
function setup ( ) {
You can’t perform that action at this time.
0 commit comments