Skip to content

Commit 42b56f9

Browse files
committed
add media
1 parent 0ef3a61 commit 42b56f9

File tree

11 files changed

+10
-1
lines changed

11 files changed

+10
-1
lines changed

β€Ž.gitignoreβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

β€Žexample_p5.htmlβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
}
4444

4545
let start;
46-
4746
function draw() {
4847
const now = millis();
4948
if (start === undefined) start = now;

β€Žmedia/.DS_Storeβ€Ž

6 KB
Binary file not shown.

β€Žmedia/convert_gif.shβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
width="800"
4+
fps="24"
5+
6+
for f in *.webm; do gifski $f -r $fps -W $width --output ${f%.*}.gif; done

β€Žmedia/convert_mp4.shβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
for f in *.webm; do ffmpeg -i $f ${f%.*}.mp4; done

β€Žmedia/example_p5.gifβ€Ž

874 KB
Loading

β€Žmedia/example_p5.webmβ€Ž

1.13 MB
Binary file not shown.

β€Žmedia/example_three.gifβ€Ž

287 KB
Loading

β€Žmedia/example_three.webmβ€Ž

2.32 MB
Binary file not shown.
143 KB
Loading

0 commit comments

Comments
Β (0)