Skip to content

An AI skill that turns books into animated, narrated, interactive web experiences

feat(site): Joke Collection episode 3, How to Move a Cow

yzr930026665693
diff --git a/site/joke-collection/ch02/index.html b/site/joke-collection/ch02/index.html
index 9749f46..519f4b7 100644
--- a/site/joke-collection/ch02/index.html
+++ b/site/joke-collection/ch02/index.html
@@ -25,7 +25,7 @@
<script src="scene4.js"></script>
<script>
'use strict';
-const CHAPTER = { number: 2, title: 'Do You Need a Bag?', minutes: 2, language: 'en' };
+const CHAPTER = { number: 2, title: 'Do You Need a Bag?', minutes: 2, language: 'en', next: '../ch03/' };
// captions on the first time: half the film is Japanese
try { if (localStorage.getItem('captions') === null) setCaptions(true); } catch {}
diff --git a/site/joke-collection/ch03/audio/en/hush1.mp3 b/site/joke-collection/ch03/audio/en/hush1.mp3
new file mode 100644
index 0000000..04761d7
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/hush1.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/hush2.mp3 b/site/joke-collection/ch03/audio/en/hush2.mp3
new file mode 100644
index 0000000..c106bee
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/hush2.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/hush3.mp3 b/site/joke-collection/ch03/audio/en/hush3.mp3
new file mode 100644
index 0000000..06a4447
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/hush3.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/mouths.js b/site/joke-collection/ch03/audio/en/mouths.js
new file mode 100644
index 0000000..26018ef
--- /dev/null
+++ b/site/joke-collection/ch03/audio/en/mouths.js
@@ -0,0 +1 @@
+window.MOUTHS = {"s01":[[0.102,"D"],[0.232,"B"],[0.321,"C"],[0.41,"B"],[0.499,"C"],[0.588,"B"],[0.677,"C"],[0.766,"A"],[0.949,"D"],[1.133,"B"],[1.365,"D"],[1.43,"B"],[1.495,"C"],[1.584,"B"],[1.672,"C"],[1.761,"D"],[1.849,"B"],[1.938,"A"],[2.064,"D"],[2.19,"B"],[2.316,"D"],[2.374,"B"],[2.433,"D"],[2.478,"B"],[2.524,"D"],[2.591,"A"],[2.657,"C"],[2.724,"B"],[2.791,"C"],[2.858,"B"],[2.924,"D"],[2.991,"B"],[3.058,"F"],[3.094,"C"],[3.129,"B"],[3.165,"C"],[3.201,"B"],[3.336,"F"],[3.47,"B"],[3.605,"E"],[3.663,"B"],[3.722,"D"],[3.787,"B"],[3.888,"F"],[3.989,"B"],[4.09,"C"],[4.191,"B"],[4.328,"E"],[4.466,"D"],[4.603,"B"],[4.741,"X"],[5.547,"D"],[5.69,"B"],[5.859,"F"],[6.029,"F"],[6.094,"D"],[6.159,"B"],[6.224,"B"],[6.32,"D"],[6.417,"B"],[6.513,"C"],[6.609,"B"],[6.706,"C"],[6.738,"B"],[6.771,"B"],[6.81,"C"],[6.849,"A"],[6.904,"C"],[6.958,"B"],[7.013,"H"],[7.068,"C"],[7.122,"E"],[7.194,"G"],[7.266,"C"],[7.541,"B"],[7.816,"X"]],"s02":[[0.141,"A"],[0.416,"F"],[0.691,"X"]],"s03":[[0.102,"C"],[0.187,"B"],[0.271,"F"],[0.328,"H"],[0.384,"B"],[0.441,"B"],[0.523,"E"],[0.606,"B"],[0.688,"A"],[0.826,"E"],[0.963,"G"],[1.101,"C"],[1.238,"X"],[2.109,"B"],[2.233,"E"],[2.357,"B"],[2.441,"C"],[2.526,"D"],[2.612,"B"],[2.698,"F"],[2.784,"C"],[2.87,"B"],[2.956,"D"],[3.021,"A"],[3.086,"F"],[3.151,"B"],[3.216,"B"],[3.268,"C"],[3.32,"A"],[3.433,"C"],[3.546,"B"],[3.659,"F"],[3.73,"C"],[3.802,"B"],[3.861,"E"],[3.919,"A"],[3.978,"D"],[4.036,"B"],[4.095,"C"],[4.154,"C"],[4.212,"B"],[4.271,"F"],[4.408,"D"],[4.546,"H"],[4.683,"B"],[4.821,"X"]],"s04":[[0.1,"C"],[0.283,"B"],[0.467,"C"],[0.65,"X"],[1.675,"F"],[1.817,"D"],[1.958,"B"],[2.1,"B"],[2.283,"C"],[2.467,"B"],[2.65,"X"]],"s05":[[0.141,"A"],[0.416,"F"],[0.691,"X"]],"s06":[[0.098,"D"],[0.374,"D"],[0.519,"D"],[0.794,"C"],[1.069,"X"]],"s07":[[0.103,"D"],[0.223,"C"],[0.343,"D"],[0.449,"C"],[0.555,"D"],[0.693,"C"],[0.83,"E"],[0.968,"B"],[1.105,"X"],[1.273,"D"],[1.372,"C"],[1.47,"E"],[1.569,"B"],[1.667,"D"],[1.765,"D"],[1.885,"C"],[2.005,"E"],[2.124,"D"],[2.262,"C"],[2.399,"E"],[2.537,"B"],[2.674,"X"]],"s08":[[0.098,"D"],[0.374,"D"],[0.555,"D"],[0.83,"C"],[1.105,"X"]],"s09":[[0.102,"B"],[0.185,"C"],[0.267,"B"],[0.349,"C"],[0.389,"B"],[0.428,"F"],[0.484,"D"],[0.54,"B"],[0.597,"B"],[0.655,"C"],[0.714,"B"],[0.806,"C"],[0.897,"B"],[0.989,"C"],[1.081,"B"],[1.172,"C"],[1.274,"A"],[1.4,"D"],[1.526,"B"],[1.652,"B"],[1.835,"F"],[2.018,"B"],[2.202,"X"],[3.008,"B"],[3.105,"C"],[3.203,"B"],[3.271,"D"],[3.34,"A"],[3.408,"C"],[3.477,"A"],[3.581,"D"],[3.685,"B"],[3.789,"F"],[3.832,"C"],[3.876,"B"],[3.919,"D"],[3.997,"G"],[4.086,"C"],[4.174,"B"],[4.263,"C"],[4.352,"B"],[4.44,"B"],[4.566,"E"],[4.692,"B"],[4.818,"D"],[4.883,"B"],[4.948,"D"],[5.026,"A"],[5.102,"F"],[5.177,"B"],[5.253,"H"],[5.328,"C"],[5.404,"E"],[5.462,"G"],[5.521,"B"],[5.796,"C"],[6.071,"X"]],"s10":[[0.102,"B"],[0.2,"C"],[0.297,"B"],[0.415,"C"],[0.532,"B"],[0.649,"B"],[0.688,"C"],[0.727,"B"],[0.864,"C"],[1.001,"B"],[1.066,"E"],[1.131,"B"],[1.189,"C"],[1.248,"B"],[1.431,"F"],[1.615,"B"],[1.873,"D"],[1.918,"B"],[1.964,"B"],[2.016,"C"],[2.068,"B"],[2.181,"E"],[2.294,"B"],[2.407,"B"],[2.452,"E"],[2.498,"B"],[2.557,"C"],[2.615,"B"],[2.745,"F"],[2.876,"B"],[3.006,"A"],[3.189,"D"],[3.372,"B"],[3.556,"X"]],"s11":[[0.098,"D"],[0.326,"C"],[0.555,"D"],[0.651,"D"],[1.201,"X"],[1.43,"D"],[1.599,"D"],[1.737,"C"],[1.875,"D"],[2.079,"C"],[2.284,"D"],[2.776,"D"],[2.909,"D"],[3.053,"D"],[3.269,"C"],[3.486,"D"],[3.726,"C"],[3.966,"D"],[4.183,"D"],[4.733,"X"]],"s12":[[0.102,"A"],[0.159,"F"],[0.215,"B"],[0.271,"A"],[0.334,"C"],[0.397,"G"],[0.46,"E"],[0.523,"B"],[0.586,"C"],[0.649,"H"],[0.832,"E"],[1.016,"B"],[1.313,"B"],[1.372,"C"],[1.43,"B"],[1.593,"F"],[1.756,"F"],[1.818,"E"],[1.881,"B"],[1.943,"C"],[2.006,"B"],[2.068,"B"],[2.131,"E"],[2.195,"A"],[2.258,"C"],[2.321,"B"],[2.384,"C"],[2.448,"B"],[2.511,"F"],[2.786,"B"],[3.061,"X"],[3.776,"B"],[3.859,"F"],[3.941,"C"],[4.023,"G"],[4.106,"C"],[4.188,"B"],[4.271,"G"],[4.379,"D"],[4.488,"B"],[4.596,"C"],[4.648,"B"],[4.701,"F"],[4.792,"D"],[4.884,"H"],[4.976,"B"],[5.067,"C"],[5.159,"B"],[5.352,"C"],[5.404,"B"],[5.456,"F"],[5.517,"H"],[5.577,"B"],[5.638,"B"],[5.706,"C"],[5.773,"G"],[5.841,"C"],[5.909,"B"],[5.977,"B"],[6.081,"C"],[6.185,"B"],[6.289,"B"],[6.359,"D"],[6.428,"B"],[6.497,"B"],[6.772,"C"],[7.047,"X"]],"s13":[[0.102,"B"],[0.239,"E"],[0.376,"B"],[0.441,"C"],[0.506,"B"],[0.662,"F"],[0.818,"B"],[0.875,"C"],[0.931,"B"],[0.988,"F"],[1.036,"B"],[1.085,"D"],[1.134,"B"],[1.183,"C"],[1.274,"F"],[1.365,"B"],[1.456,"A"],[1.517,"C"],[1.578,"E"],[1.639,"A"],[1.699,"H"],[1.76,"C"],[1.821,"C"],[1.886,"B"],[1.951,"B"],[2.052,"C"],[2.153,"B"],[2.254,"D"],[2.355,"B"],[2.524,"D"],[2.693,"H"],[2.862,"H"],[2.971,"C"],[3.08,"B"],[3.188,"G"],[3.326,"H"],[3.463,"D"],[3.601,"B"],[3.738,"X"]],"s14":[[0.098,"D"],[0.326,"D"],[0.453,"C"],[0.579,"D"],[0.771,"C"],[0.963,"D"],[1.108,"D"],[1.3,"C"],[1.492,"D"],[1.767,"C"],[2.042,"X"],[2.5,"D"],[2.648,"C"],[2.796,"E"],[2.945,"D"],[3.077,"D"],[3.352,"C"],[3.678,"D"],[3.834,"D"],[3.942,"D"],[4.183,"D"],[4.429,"C"],[4.676,"D"],[5.226,"X"]],"s15":[[0.1,"A"],[0.375,"C"],[0.65,"X"]]};
diff --git a/site/joke-collection/ch03/audio/en/s01.mp3 b/site/joke-collection/ch03/audio/en/s01.mp3
new file mode 100644
index 0000000..ef9527b
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s01.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s02.mp3 b/site/joke-collection/ch03/audio/en/s02.mp3
new file mode 100644
index 0000000..0852684
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s02.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s03.mp3 b/site/joke-collection/ch03/audio/en/s03.mp3
new file mode 100644
index 0000000..c8204ee
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s03.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s04.mp3 b/site/joke-collection/ch03/audio/en/s04.mp3
new file mode 100644
index 0000000..08ca70c
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s04.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s05.mp3 b/site/joke-collection/ch03/audio/en/s05.mp3
new file mode 100644
index 0000000..54625ae
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s05.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s06.mp3 b/site/joke-collection/ch03/audio/en/s06.mp3
new file mode 100644
index 0000000..a3f79ae
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s06.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s07.mp3 b/site/joke-collection/ch03/audio/en/s07.mp3
new file mode 100644
index 0000000..2b22442
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s07.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s08.mp3 b/site/joke-collection/ch03/audio/en/s08.mp3
new file mode 100644
index 0000000..45079af
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s08.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s09.mp3 b/site/joke-collection/ch03/audio/en/s09.mp3
new file mode 100644
index 0000000..aa6b774
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s09.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s10.mp3 b/site/joke-collection/ch03/audio/en/s10.mp3
new file mode 100644
index 0000000..ec4d798
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s10.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s11.mp3 b/site/joke-collection/ch03/audio/en/s11.mp3
new file mode 100644
index 0000000..f554c87
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s11.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s12.mp3 b/site/joke-collection/ch03/audio/en/s12.mp3
new file mode 100644
index 0000000..8a63b9e
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s12.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s13.mp3 b/site/joke-collection/ch03/audio/en/s13.mp3
new file mode 100644
index 0000000..f90da03
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s13.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s14.mp3 b/site/joke-collection/ch03/audio/en/s14.mp3
new file mode 100644
index 0000000..311fe0b
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s14.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/s15.mp3 b/site/joke-collection/ch03/audio/en/s15.mp3
new file mode 100644
index 0000000..0e6a3b0
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/s15.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/scene1.mp3 b/site/joke-collection/ch03/audio/en/scene1.mp3
new file mode 100644
index 0000000..dbdc762
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/scene1.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/scene2.mp3 b/site/joke-collection/ch03/audio/en/scene2.mp3
new file mode 100644
index 0000000..9d56c1e
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/scene2.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/scene3.mp3 b/site/joke-collection/ch03/audio/en/scene3.mp3
new file mode 100644
index 0000000..6515ce87
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/scene3.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/scene4.mp3 b/site/joke-collection/ch03/audio/en/scene4.mp3
new file mode 100644
index 0000000..6d879ab
Binary files /dev/null and b/site/joke-collection/ch03/audio/en/scene4.mp3 differ
diff --git a/site/joke-collection/ch03/audio/en/shots.js b/site/joke-collection/ch03/audio/en/shots.js
new file mode 100644
index 0000000..3dda4b8
--- /dev/null
+++ b/site/joke-collection/ch03/audio/en/shots.js
@@ -0,0 +1,17 @@
+TIMINGS.scene1 = {"dur": 23.234, "marks": {}, "cues": [[0.102, "A Chinese man, an Indian man and an American were stuck on a country road."], [5.547, "A cow was standing in the middle of it."], [8.75, "Moo."], [12.914, "It would not move."], [14.921, "So they argued about the best way to make it walk."], [18.926, "Easy."], [21.501, "Watch this."]], "parts": {"s01": 0, "s02": 8.75, "s03": 12.812, "s04": 18.826}};
+TIMINGS.scene2 = {"dur": 22.312, "marks": {}, "cues": [[0, "MOOO!"], [5.902, "\u8fd9\u662f\u66b4\u529b\uff01 (That's violence!)"], [8.796, "He Gau Mata, kripya aage chaliye. (O Mother Cow, please walk on.)"], [15.866, "\u8fd9\u662f\u8ff7\u4fe1\uff01 (That's superstition!)"]], "parts": {"s05": 0, "s06": 5.902, "s07": 8.796, "s08": 15.866, "hush1": 21.312}};
+TIMINGS.scene3 = {"dur": 30.366, "marks": {}, "cues": [[0.102, "Then it was the Chinese man's turn."], [6.408, "He came back with a fishing rod and a bundle of hay."], [11.068, "He tied the hay to the hook, and the rod to the cow's back."], [17.308, "\u770b\u5230\u4e86\u5417\uff1f\u6211\u6ca1\u6709\u5f3a\u8feb\u5b83\uff0c\u5b83\u662f\u81ea\u613f\u5f80\u524d\u8d70\u7684\uff01 (See? I'm not forcing it. It's walking of its own free will!)"]], "parts": {"s09": 0, "s10": 10.566, "s11": 17.308, "hush2": 27.866}};
+TIMINGS.scene4 = {"dur": 35.94, "marks": {}, "cues": [[2.102, "But before long, the cow worked something out."], [5.776, "However far it walked, it would never reach that hay."], [15.752, "So the cow did what young people in China call \"lying flat.\""], [20.608, "\u4f60\u8fd9\u4e2a\u53ef\u6076\u7684\u5883\u5916\u52bf\u529b\uff01\u662f\u4e0d\u662f\u4f60\u717d\u52a8\u6211\u7684\u725b\u8eba\u5e73\u7684\uff1f (You evil foreign hostile force! Did YOU incite my cow to lie flat?!)"], [30.818, "Me?"]], "parts": {"s12": 0, "s13": 10.15, "s14": 20.608, "s15": 30.218, "hush3": 32.94}};
+MOUTHS.s02 = [[0.049, "X"], [1.141, "A"], [1.416, "F"], [1.691, "X"]];
+MOUTHS.s04 = [[0.1, "C"], [0.283, "B"], [0.467, "C"], [0.65, "X"], [1.199, "X"], [2.675, "F"], [2.817, "D"], [2.958, "B"], [3.1, "B"], [3.283, "C"], [3.467, "B"], [3.65, "X"]];
+MOUTHS.s05 = [[0.049, "X"], [2.741, "A"], [3.016, "F"], [3.291, "X"]];
+MOUTHS.s06 = [[0.049, "X"], [0.698, "D"], [0.974, "D"], [1.119, "D"], [1.394, "C"], [1.669, "X"]];
+MOUTHS.s07 = [[0.049, "X"], [3.103, "D"], [3.223, "C"], [3.343, "D"], [3.449, "C"], [3.555, "D"], [3.693, "C"], [3.83, "E"], [3.968, "B"], [4.105, "X"], [4.273, "D"], [4.372, "C"], [4.47, "E"], [4.569, "B"], [4.667, "D"], [4.765, "D"], [4.885, "C"], [5.005, "E"], [5.124, "D"], [5.262, "C"], [5.399, "E"], [5.537, "B"], [5.674, "X"]];
+MOUTHS.s08 = [[0.049, "X"], [3.298, "D"], [3.574, "D"], [3.755, "D"], [4.03, "C"], [4.305, "X"]];
+MOUTHS.s09 = [[0.102, "B"], [0.185, "C"], [0.267, "B"], [0.349, "C"], [0.389, "B"], [0.428, "F"], [0.484, "D"], [0.54, "B"], [0.597, "B"], [0.655, "C"], [0.714, "B"], [0.806, "C"], [0.897, "B"], [0.989, "C"], [1.081, "B"], [1.172, "C"], [1.274, "A"], [1.4, "D"], [1.526, "B"], [1.652, "B"], [1.835, "F"], [2.018, "B"], [2.202, "X"], [2.599, "X"], [6.408, "B"], [6.505, "C"], [6.603, "B"], [6.671, "D"], [6.74, "A"], [6.808, "C"], [6.877, "A"], [6.981, "D"], [7.085, "B"], [7.189, "F"], [7.232, "C"], [7.276, "B"], [7.319, "D"], [7.397, "G"], [7.486, "C"], [7.574, "B"], [7.663, "C"], [7.752, "B"], [7.84, "B"], [7.966, "E"], [8.092, "B"], [8.218, "D"], [8.283, "B"], [8.348, "D"], [8.426, "A"], [8.502, "F"], [8.577, "B"], [8.653, "H"], [8.728, "C"], [8.804, "E"], [8.862, "G"], [8.921, "B"], [9.196, "C"], [9.471, "X"]];
+MOUTHS.s10 = [[0.049, "X"], [0.502, "B"], [0.6, "C"], [0.697, "B"], [0.815, "C"], [0.932, "B"], [1.049, "B"], [1.088, "C"], [1.127, "B"], [1.264, "C"], [1.401, "B"], [1.466, "E"], [1.531, "B"], [1.589, "C"], [1.648, "B"], [1.831, "F"], [1.999, "X"], [3.615, "B"], [3.873, "D"], [3.918, "B"], [3.964, "B"], [4.016, "C"], [4.068, "B"], [4.181, "E"], [4.294, "B"], [4.407, "B"], [4.452, "E"], [4.498, "B"], [4.557, "C"], [4.615, "B"], [4.745, "F"], [4.876, "B"], [5.006, "A"], [5.189, "D"], [5.372, "B"], [5.556, "X"]];
+MOUTHS.s11 = [[0.049, "X"], [5.098, "D"], [5.326, "C"], [5.555, "D"], [5.651, "D"], [6.201, "X"], [6.43, "D"], [6.599, "D"], [6.737, "C"], [6.875, "D"], [7.079, "C"], [7.284, "D"], [7.776, "D"], [7.909, "D"], [8.053, "D"], [8.269, "C"], [8.486, "D"], [8.726, "C"], [8.966, "D"], [9.183, "D"], [9.733, "X"]];
+MOUTHS.s12 = [[0.049, "X"], [2.102, "A"], [2.159, "F"], [2.215, "B"], [2.271, "A"], [2.334, "C"], [2.397, "G"], [2.46, "E"], [2.523, "B"], [2.586, "C"], [2.649, "H"], [2.832, "E"], [3.016, "B"], [3.313, "B"], [3.372, "C"], [3.43, "B"], [3.593, "F"], [3.756, "F"], [3.818, "E"], [3.881, "B"], [3.943, "C"], [4.006, "B"], [4.068, "B"], [4.131, "E"], [4.195, "A"], [4.258, "C"], [4.321, "B"], [4.384, "C"], [4.448, "B"], [4.511, "F"], [4.786, "B"], [5.061, "X"], [5.776, "B"], [5.859, "F"], [5.941, "C"], [6.023, "G"], [6.106, "C"], [6.188, "B"], [6.271, "G"], [6.379, "D"], [6.488, "B"], [6.596, "C"], [6.648, "B"], [6.701, "F"], [6.792, "D"], [6.884, "H"], [6.976, "B"], [7.067, "C"], [7.159, "B"], [7.352, "C"], [7.404, "B"], [7.456, "F"], [7.517, "H"], [7.577, "B"], [7.638, "B"], [7.706, "C"], [7.773, "G"], [7.841, "C"], [7.909, "B"], [7.977, "B"], [8.081, "C"], [8.185, "B"], [8.289, "B"], [8.359, "D"], [8.428, "B"], [8.497, "B"], [8.772, "C"], [9.047, "X"]];
+MOUTHS.s13 = [[0.049, "X"], [5.602, "B"], [5.739, "E"], [5.876, "B"], [5.941, "C"], [6.006, "B"], [6.162, "F"], [6.318, "B"], [6.375, "C"], [6.431, "B"], [6.488, "F"], [6.536, "B"], [6.585, "D"], [6.634, "B"], [6.683, "C"], [6.774, "F"], [6.865, "B"], [6.956, "A"], [7.017, "C"], [7.078, "E"], [7.139, "A"], [7.199, "H"], [7.26, "C"], [7.321, "C"], [7.386, "B"], [7.451, "B"], [7.552, "C"], [7.653, "B"], [7.754, "D"], [7.855, "B"], [8.024, "D"], [8.193, "H"], [8.362, "H"], [8.471, "C"], [8.58, "B"], [8.688, "G"], [8.826, "H"], [8.963, "D"], [9.101, "B"], [9.238, "X"]];
+MOUTHS.s14 = [[0.049, "X"], [3.598, "D"], [3.826, "D"], [3.953, "C"], [4.079, "D"], [4.271, "C"], [4.463, "D"], [4.608, "D"], [4.8, "C"], [4.992, "D"], [5.267, "C"], [5.542, "X"], [6.0, "D"], [6.148, "C"], [6.296, "E"], [6.445, "D"], [6.577, "D"], [6.852, "C"], [7.178, "D"], [7.334, "D"], [7.442, "D"], [7.683, "D"], [7.929, "C"], [8.176, "D"], [8.726, "X"]];
+MOUTHS.s15 = [[0.049, "X"], [0.6, "A"], [0.875, "C"], [1.15, "X"]];
diff --git a/site/joke-collection/ch03/audio/en/timings.js b/site/joke-collection/ch03/audio/en/timings.js
new file mode 100644
index 0000000..acc9113
--- /dev/null
+++ b/site/joke-collection/ch03/audio/en/timings.js
@@ -0,0 +1,187 @@
+window.TIMINGS = {
+ "s01": {
+ "dur": 8.4,
+ "marks": {},
+ "cues": [
+ [
+ 0.102,
+ "A Chinese man, an Indian man and an American were stuck on a country road."
+ ],
+ [
+ 5.547,
+ "A cow was standing in the middle of it."
+ ]
+ ]
+ },
+ "s02": {
+ "dur": 2.712,
+ "marks": {},
+ "cues": [
+ [
+ 0,
+ "Moo."
+ ]
+ ]
+ },
+ "s03": {
+ "dur": 5.664,
+ "marks": {},
+ "cues": [
+ [
+ 0.102,
+ "It would not move."
+ ],
+ [
+ 2.109,
+ "So they argued about the best way to make it walk."
+ ]
+ ]
+ },
+ "s04": {
+ "dur": 3.408,
+ "marks": {},
+ "cues": [
+ [
+ 0.1,
+ "Easy."
+ ],
+ [
+ 1.675,
+ "Watch this."
+ ]
+ ]
+ },
+ "s05": {
+ "dur": 2.952,
+ "marks": {},
+ "cues": [
+ [
+ 0,
+ "MOOO!"
+ ]
+ ]
+ },
+ "s06": {
+ "dur": 1.944,
+ "marks": {},
+ "cues": [
+ [
+ 0,
+ "这是暴力! (That's violence!)"
+ ]
+ ]
+ },
+ "s07": {
+ "dur": 3.72,
+ "marks": {},
+ "cues": [
+ [
+ 0,
+ "He Gau Mata, kripya aage chaliye. (O Mother Cow, please walk on.)"
+ ]
+ ]
+ },
+ "s08": {
+ "dur": 1.896,
+ "marks": {},
+ "cues": [
+ [
+ 0,
+ "这是迷信! (That's superstition!)"
+ ]
+ ]
+ },
+ "s09": {
+ "dur": 6.816,
+ "marks": {},
+ "cues": [
+ [
+ 0.102,
+ "Then it was the Chinese man's turn."
+ ],
+ [
+ 3.008,
+ "He came back with a fishing rod and a bundle of hay."
+ ]
+ ]
+ },
+ "s10": {
+ "dur": 4.392,
+ "marks": {},
+ "cues": [
+ [
+ 0.102,
+ "He tied the hay to the hook, and the rod to the cow's back."
+ ]
+ ]
+ },
+ "s11": {
+ "dur": 5.208,
+ "marks": {},
+ "cues": [
+ [
+ 0,
+ "看到了吗?我没有强迫它,它是自愿往前走的! (See? I'm not forcing it. It's walking of its own free will!)"
+ ]
+ ]
+ },
+ "s12": {
+ "dur": 7.8,
+ "marks": {},
+ "cues": [
+ [
+ 0.102,
+ "But before long, the cow worked something out."
+ ],
+ [
+ 3.776,
+ "However far it walked, it would never reach that hay."
+ ]
+ ]
+ },
+ "s13": {
+ "dur": 4.608,
+ "marks": {},
+ "cues": [
+ [
+ 0.102,
+ "So the cow did what young people in China call \"lying flat.\""
+ ]
+ ]
+ },
+ "s14": {
+ "dur": 5.76,
+ "marks": {},
+ "cues": [
+ [
+ 0,
+ "你这个可恶的境外势力!是不是你煽动我的牛躺平的? (You evil foreign hostile force! Did YOU incite my cow to lie flat?!)"
+ ]
+ ]
+ },
+ "s15": {
+ "dur": 1.872,
+ "marks": {},
+ "cues": [
+ [
+ 0.1,
+ "Me?"
+ ]
+ ]
+ },
+ "hush1": {
+ "dur": 1.0,
+ "marks": {},
+ "cues": []
+ },
+ "hush2": {
+ "dur": 2.5,
+ "marks": {},
+ "cues": []
+ },
+ "hush3": {
+ "dur": 3.0,
+ "marks": {},
+ "cues": []
+ }
+};
diff --git a/site/joke-collection/ch03/audio/sfx/clop.mp3 b/site/joke-collection/ch03/audio/sfx/clop.mp3
new file mode 100644
index 0000000..76a35bb
Binary files /dev/null and b/site/joke-collection/ch03/audio/sfx/clop.mp3 differ
diff --git a/site/joke-collection/ch03/audio/sfx/crack.mp3 b/site/joke-collection/ch03/audio/sfx/crack.mp3
new file mode 100644
index 0000000..a950b28
Binary files /dev/null and b/site/joke-collection/ch03/audio/sfx/crack.mp3 differ
diff --git a/site/joke-collection/ch03/audio/sfx/crickets.mp3 b/site/joke-collection/ch03/audio/sfx/crickets.mp3
new file mode 100644
index 0000000..bcf7ebb
Binary files /dev/null and b/site/joke-collection/ch03/audio/sfx/crickets.mp3 differ
diff --git a/site/joke-collection/ch03/audio/sfx/sting.mp3 b/site/joke-collection/ch03/audio/sfx/sting.mp3
new file mode 100644
index 0000000..af1219c
Binary files /dev/null and b/site/joke-collection/ch03/audio/sfx/sting.mp3 differ
diff --git a/site/joke-collection/ch03/audio/sfx/thud.mp3 b/site/joke-collection/ch03/audio/sfx/thud.mp3
new file mode 100644
index 0000000..1d7e164
Binary files /dev/null and b/site/joke-collection/ch03/audio/sfx/thud.mp3 differ
diff --git a/site/joke-collection/ch03/audio/sfx/whoosh.mp3 b/site/joke-collection/ch03/audio/sfx/whoosh.mp3
new file mode 100644
index 0000000..feb4d22
Binary files /dev/null and b/site/joke-collection/ch03/audio/sfx/whoosh.mp3 differ
diff --git a/site/joke-collection/ch03/farm.js b/site/joke-collection/ch03/farm.js
new file mode 100644
index 0000000..38eb4cd
--- /dev/null
+++ b/site/joke-collection/ch03/farm.js
@@ -0,0 +1,177 @@
+/* farm.js — episode 3's cast, props and places: the American, the Chinese man, the Indian man (grown-ups built like
+ the series' puppets, ../lib/cast.js), the cow (side-on, like the dog), the whip, the fishing rod and the hay, and the
+ two stretches of country road. The series helpers are in ../lib/shared.js. */
+'use strict';
+
+/* ---------- the three men (pose keys as in cast.js) ----------
+ Hands pressed together in prayer: armL = armR = -115 (the mittens meet under the chin; further in, the big head
+ hides them). Pointing at someone on the right: armR 80…95; on the left: armL 80…95. Hands up: armL = armR = 110 (at 150 the mittens go behind the big head). */
+// The American: cowboy hat, red plaid shirt, belt with a big buckle, jeans.
+SHAPES.american = { ...SHAPES.aunt, sx: 66,
+ body: 'M-52,-284 C-74,-270 -78,-140 -72,-96 Q-36,-84 0,-84 Q36,-84 72,-96 C78,-140 74,-270 52,-284 Z',
+ extra: [-48, -20, 8, 36].map(x => `<rect x="${x}" y="-280" width="10" height="184" fill="#8e2e28" opacity=".55"/>`).join('') +
+ [-246, -206, -166, -126].map(y => `<rect x="-70" y="${y}" width="140" height="9" fill="#8e2e28" opacity=".55"/>`).join('') +
+ '<rect x="-74" y="-112" width="148" height="18" fill="#4a2e1a"/><rect x="-16" y="-116" width="32" height="26" rx="5" fill="#d9b24a"/>',
+ hair: ['#6a4426', 'M-88,-372 C-92,-410 -60,-430 0,-430 C60,-430 92,-410 88,-372 L84,-330 Q78,-344 72,-346 L70,-390 Q0,-404 -70,-390 L-72,-346 Q-78,-344 -84,-330 Z'],
+ hat: '<path d="M-150,-414 Q-160,-436 -120,-428 Q0,-404 120,-428 Q160,-436 150,-414 Q0,-380 -150,-414 Z" fill="#a0703c"/>' +
+ '<path d="M-74,-420 C-80,-480 -60,-500 -30,-494 Q0,-476 30,-494 C60,-500 80,-480 74,-420 Q0,-406 -74,-420 Z" fill="#a0703c"/><path d="M-74,-430 Q0,-416 74,-430 L74,-418 Q0,-404 -74,-418 Z" fill="#5a3a20"/>' };
+const americanPuppet = (p, o) => spKid(p, 'american', { coat: '#c4453a', stripe: '#c4453a', pants: '#3d5a8a', ...o });
+// The Chinese man: middle-aged, black side-parted hair, a pale blue short-sleeved shirt with a pen in its pocket, dark trousers, a bit of a belly.
+SHAPES.chinese = { ...SHAPES.aunt, sx: 62,
+ body: 'M-48,-284 C-70,-270 -80,-150 -78,-100 Q-38,-84 0,-84 Q38,-84 78,-100 C80,-150 70,-270 48,-284 Z',
+ extra: '<path d="M0,-256 V-100" stroke="#8fa9c4" stroke-width="3"/>' + [-232, -192, -152, -116].map(y => `<circle cx="6" cy="${y}" r="4" fill="#8fa9c4"/>`).join('') +
+ '<rect x="-56" y="-240" width="34" height="36" rx="3" fill="none" stroke="#8fa9c4" stroke-width="3"/><rect x="-46" y="-254" width="7" height="30" rx="2" fill="#2f5aa8"/>' +
+ '<rect x="-80" y="-104" width="160" height="14" fill="#2a2a2e"/>', hat: '',
+ hair: ['#151313', 'M-90,-370 C-96,-432 -54,-450 -6,-450 C52,-450 96,-430 90,-370 L84,-392 Q40,-420 -18,-410 L-24,-424 Q-60,-416 -82,-392 Z'] };
+const chinesePuppet = (p, o) => spKid(p, 'chinese', { skin: '#f2d2ae', coat: '#b9d0e6', stripe: '#9fb9d2', pants: '#2f3138', ...o });
+// The Indian man: a moustache, wavy black hair, a long mustard kurta with a darker placket over white trousers.
+SHAPES.indian = { ...SHAPES.aunt, sx: 60,
+ body: 'M-46,-284 C-66,-270 -74,-120 -70,-56 Q-34,-46 0,-46 Q34,-46 70,-56 C74,-120 66,-270 46,-284 Z',
+ extra: '<path d="M0,-268 V-170" stroke="#a8782a" stroke-width="10"/>' + [-250, -220, -190].map(y => `<circle cx="0" cy="${y}" r="3.5" fill="#f2e6c0"/>`).join(''), hat: '',
+ hair: ['#171313', 'M-88,-366 C-96,-436 -50,-452 0,-450 C50,-452 96,-436 88,-366 Q80,-392 60,-398 Q40,-412 20,-400 Q0,-414 -20,-400 Q-40,-412 -60,-398 Q-80,-392 -88,-366 Z'] };
+function indianPuppet(p, o) {
+ const pup = spKid(p, 'indian', { skin: '#b57c52', coat: '#e3b25a', stripe: '#e3b25a', pants: '#f6f3ea', ...o });
+ // the moustache sits on the face (it slides with the features), just above the mouth
+ pup.g.querySelector('[data-p="feat"] .mouth').insertAdjacentHTML('beforebegin',
+ `<path d="M-30,-328 Q-16,-340 0,-332 Q16,-340 30,-328 Q34,-318 24,-320 Q12,-326 0,-322 Q-12,-326 -24,-320 Q-34,-318 -30,-328 Z" fill="#171313"/>`);
+ return pup;
+}
+
+// Where a man's mitten is in the world for a pose (side 'R' = screen-right arm, 'L' = screen-left): for things that
+// leave the hand or are drawn live from it (the whip's lash, a knot being tied).
+function handAt(pup, o, side = 'R') {
+ const S = pup.S, s = o.s ?? 1, a = (side === 'R' ? -24 - (o.armR || 0) : 24 + (o.armL || 0)) * Math.PI / 180;
+ const lx = (side === 'R' ? S.sx : -S.sx) - 72 * Math.sin(a), ly = S.sy + 72 * Math.cos(a) + (o.bob || 0);
+ return [(o.x || 0) + s * lx, (o.y || 0) + s * ly];
+}
+
+/* ---------- props ---------- */
+// The bundle of hay, hung from its loop at (0, 0) (painted, 384 x 800).
+const haySVG = artSVG('hay', -38, -6, 77, 160);
+// The coiled whip in the hand (the handle in the fist, the coil hanging below).
+const whipCoilSVG = `<g filter="url(#paper)"><rect x="-6" y="-34" width="12" height="44" rx="4" fill="#4a2e1a"/><ellipse cx="4" cy="34" rx="20" ry="26" fill="none" stroke="#6a4426" stroke-width="5"/><ellipse cx="-2" cy="40" rx="15" ry="20" fill="none" stroke="#6a4426" stroke-width="4"/></g>`;
+// The whip's handle alone (the lash is drawn live by whipLash).
+const whipHandleSVG = `<g filter="url(#paper)"><rect x="-6" y="-46" width="12" height="52" rx="4" fill="#4a2e1a"/></g>`;
+// The fishing rod carried over the shoulder: the butt and reel at the hand, the tip far up behind.
+const rodHeldSVG = `<g filter="url(#paper)"><path d="M14,40 L-150,-330" stroke="#3a2a1a" stroke-width="7" stroke-linecap="round"/><path d="M-150,-330 L-190,-420" stroke="#5a4636" stroke-width="3.5" stroke-linecap="round"/>
+ <circle cx="4" cy="14" r="13" fill="#9aa0a8"/><circle cx="4" cy="14" r="5" fill="#5a5f66"/></g>`;
+/* The whip's lash, live: a tapering curve from the handle's tip (hx, hy). phase 0 hangs limp, 0…1 the swing over the
+ head and the crack forward (the tip reaches tx, ty on 1). whipLash(parent) → pose({ hx, hy, tx, ty, phase, on }). */
+function whipLash(parent) {
+ // dark and thick on a pale edge, so it reads against the fence and the fields at wide-shot scale
+ const edge = mk('path', { fill: 'none', stroke: '#f6efe0', 'stroke-width': 11, 'stroke-linecap': 'round', opacity: .8 }, parent);
+ const path = mk('path', { fill: 'none', stroke: '#2e1c10', 'stroke-width': 7, 'stroke-linecap': 'round' }, parent);
+ return { pose({ hx = 0, hy = 0, tx = hx + 160, ty = hy + 40, phase = 0, on = true } = {}) {
+ vis(path, on); vis(edge, on); if (!on) return;
+ let d;
+ if (phase <= 0) d = `M${hx},${hy} q10,60 -10,110 q-14,30 4,56`; // hanging
+ else if (phase < .6) { const u = phase / .6, bx = hx - 180 * Math.sin(u * Math.PI), by = hy - 120 - 80 * u; // whirled up and back
+ d = `M${hx},${hy} Q${hx - 40},${hy - 120} ${bx},${by}`; }
+ else { const u = (phase - .6) / .4; // thrown forward: a wave runs down the lash to the crack
+ const mx = hx + (tx - hx) * .5, my = hy - 140 * (1 - u) + (ty - hy) * .5 * u;
+ d = `M${hx},${hy} Q${mx},${my - 60 * (1 - u)} ${hx + (tx - hx) * (.4 + .6 * u)},${hy + (ty - hy) * (.4 + .6 * u) - 120 * (1 - u)}`; }
+ if (path._d !== d) { path.setAttribute('d', path._d = d); edge.setAttribute('d', d); }
+ } };
+}
+
+/* ---------- the cow ----------
+ A black-and-white cow seen side-on, built at its feet (0, 0) facing right, about 490 long (tail -190 … nose 300)
+ and 350 tall at s = 1. pose(o, f): x, y, s, dir (1 faces right, -1 left), headR (degrees, + raises the head, -
+ lowers it), jaw (0 shut … 1 wide open: moo; small quick values chew), tail (degrees, + swings it out behind), ear
+ (degrees), shut, lids (0 … 1), eyeX (-1 looks back … 0 at the camera … 1 forward), eyeY, brow (0 none, > 0 cross),
+ walk (legs scissor on twos), splay (legs thrown out, a jump), bob, lie (0 standing … 1 flat on the ground, chin
+ down), rod (the fishing rod tied on its back), swing (the hay's swing on its line, degrees, + forward). */
+const COW = { coat: '#f6f2ea', spot: '#2a2624', pink: '#f0a8a8', hoof: '#3a302a', horn: '#efe2c0' };
+const REST_COW = { x: 0, y: 0, s: 1, dir: 1, headR: 0, jaw: 0, tail: 0, ear: 0, shut: false, lids: 0, eyeX: 1, eyeY: 0, brow: 0,
+ walk: false, splay: 0, bob: 0, lie: 0, rod: false, swing: 0 };
+// where the line hangs from (the rod's tip) and the hay's loop, in the cow's own frame
+const COW_ROD = { tip: [372, -500], line: 200 };
+function cowPuppet(parent) {
+ const g = mk('g', {}, parent), id = 'cowc' + (++spClip), C = COW;
+ const leg = (k, col) => `<g data-p="leg${k}"><g filter="url(#paper)"><rect x="-17" y="0" width="34" height="150" rx="10" fill="${col}"/><rect x="-18" y="128" width="36" height="22" rx="4" fill="${C.hoof}"/></g></g>`;
+ const body = 'M-170,-250 C-180,-310 -100,-300 0,-300 C110,-300 170,-300 175,-240 C178,-170 140,-130 60,-128 L-120,-128 C-170,-130 -176,-190 -170,-250 Z';
+ const eye = '<ellipse cx="238" cy="-308" rx="17" ry="20"';
+ g.innerHTML = `<ellipse data-p="shadow" cx="40" cy="-2" rx="250" ry="20" fill="url(#spShadow)"/><g data-p="all">${leg('B2', '#ddd8ce')}${leg('F2', '#ddd8ce')}
+ <g data-p="torso">
+ <g data-p="tail"><g filter="url(#paper)"><path d="M0,0 Q-24,60 -14,138" fill="none" stroke="${C.coat}" stroke-width="9" stroke-linecap="round"/><path d="M-26,126 Q-14,116 -2,128 Q4,158 -12,170 Q-30,158 -26,126 Z" fill="${C.spot}"/></g></g>
+ <g filter="url(#paper)"><path d="${body}" fill="${C.coat}"/></g>
+ <clipPath id="${id}b"><path d="${body}"/></clipPath>
+ <g clip-path="url(#${id}b)"><g filter="url(#paper)"><path d="M-120,-310 C-60,-300 -40,-240 -90,-200 C-130,-170 -170,-200 -180,-260 Z" fill="${C.spot}"/>
+ <path d="M30,-305 C80,-290 70,-230 30,-220 C-10,-212 -20,-270 30,-305 Z" fill="${C.spot}"/><path d="M110,-180 C150,-190 180,-160 170,-130 L90,-128 C80,-150 90,-172 110,-180 Z" fill="${C.spot}"/></g></g>
+ <g filter="url(#paper)"><path d="M-70,-132 Q-40,-96 -10,-132 Z" fill="${C.pink}"/><circle cx="-56" cy="-112" r="5" fill="${C.pink}"/><circle cx="-24" cy="-112" r="5" fill="${C.pink}"/></g>
+ <g data-p="rod"><g filter="url(#paper)"><path d="M-60,-288 L${COW_ROD.tip[0]},${COW_ROD.tip[1]}" stroke="#3a2a1a" stroke-width="7" stroke-linecap="round"/>
+ <path d="M-74,-304 Q-60,-210 -76,-130 M-50,-304 Q-36,-210 -52,-130" stroke="#b08a50" stroke-width="7" fill="none"/><circle cx="-40" cy="-300" r="12" fill="#9aa0a8"/></g></g>
+ <g data-p="head">
+ <g filter="url(#paper)"><path d="M150,-290 C190,-330 230,-300 250,-280 L230,-190 C200,-180 160,-200 150,-230 Z" fill="${C.coat}"/>
+ <path d="M210,-360 Q196,-386 206,-396 Q212,-372 228,-354 Z" fill="${C.horn}"/>
+ <path d="M210,-350 C230,-372 268,-370 280,-340 L292,-250 C290,-226 240,-224 220,-250 Z" fill="${C.coat}"/>
+ <path d="M228,-352 C246,-366 264,-360 270,-344 C262,-326 238,-326 228,-352 Z" fill="${C.spot}"/></g>
+ <g data-p="jaw"><g filter="url(#paper)"><path d="M232,-226 Q262,-214 300,-222 Q296,-198 264,-196 Q238,-200 232,-226 Z" fill="${C.pink}"/></g>
+ <path d="M248,-212 Q268,-206 288,-212" stroke="#c87070" stroke-width="3" fill="none"/></g>
+ <g filter="url(#paper)"><ellipse cx="282" cy="-244" rx="40" ry="30" fill="${C.pink}"/></g>
+ <ellipse cx="300" cy="-250" rx="5" ry="7" fill="#9a4a4a"/>
+ <clipPath id="${id}">${eye}/></clipPath>
+ <g data-p="whites" filter="url(#paper)">${eye} fill="#fff"/></g>
+ <circle data-p="pupil" cx="238" cy="-308" r="7" fill="${SP_INK}"/>
+ <g clip-path="url(#${id})"><g data-p="lids"><rect x="216" y="-360" width="44" height="32" fill="${C.coat}"/><path d="M216,-328 H260" stroke="${SP_INK}" stroke-width="3"/></g></g>
+ ${eye} fill="none" stroke="${SP_INK}" stroke-width="2.4"/>
+ <path data-p="brow" d="M220,-340 L256,-330" stroke="${SP_INK}" stroke-width="4.5" stroke-linecap="round"/>
+ <g data-p="ear"><g filter="url(#paper)"><path d="M0,0 C-30,-6 -60,4 -64,20 C-40,26 -14,18 0,8 Z" fill="${C.coat}"/><path d="M-8,4 C-30,2 -48,10 -52,18 C-34,20 -18,14 -8,8 Z" fill="${C.pink}"/></g></g>
+ </g></g>${leg('B1', C.coat)}${leg('F1', C.coat)}
+ <g data-p="line"><path d="M0,0 V${COW_ROD.line}" stroke="#3a3430" stroke-width="2"/><g transform="translate(0,${COW_ROD.line})">${haySVG}</g></g></g>`;
+ bakeAll(g);
+ const P = pieces(g);
+ return { g, pose(o, f) {
+ o = { ...REST_COW, ...o };
+ const j = k => .35 * jit(f >> 1, k), k2 = Math.floor(f / 2) % 2 ? 1 : -1, L = Math.max(0, Math.min(1, o.lie));
+ tf(g, `translate(${(o.x + j(1) * .8).toFixed(1)},${(o.y + j(2) * .6).toFixed(1)}) scale(${(o.s * o.dir).toFixed(3)},${o.s})`);
+ // lying: the legs fold under (shorter, splayed a little), the body sinks onto the ground, the chin goes down
+ tf(P.all, `translate(0,${(o.bob + 118 * L).toFixed(1)})`);
+ vis(P.shadow, true);
+ const sw = o.walk ? 14 * k2 : 0, fold = 1 - .82 * L;
+ const legT = (x, a) => `translate(${x},-150) rotate(${(a + j(4 + x % 7) * .5).toFixed(2)}) scale(1,${fold.toFixed(3)})`;
+ tf(P.legB1, legT(-120, sw + o.splay)); tf(P.legB2, legT(-96, -sw + o.splay * .6));
+ tf(P.legF1, legT(120, -sw - o.splay)); tf(P.legF2, legT(144, sw - o.splay * .6));
+ tf(P.torso, `rotate(${(j(3) * .3).toFixed(2)},0,-200)`);
+ tf(P.tail, `translate(-166,-262) rotate(${(o.tail + j(8)).toFixed(2)})`);
+ tf(P.head, `rotate(${(-o.headR + 16 * L + j(9) * .6).toFixed(2)},160,-250)`);
+ tf(P.jaw, `rotate(${(o.jaw * 26).toFixed(1)},236,-224)`);
+ tf(P.ear, `translate(214,-322) rotate(${(o.ear + j(10) * 2).toFixed(2)})`);
+ tf(P.pupil, `translate(${(o.eyeX * 7).toFixed(1)},${(o.eyeY * 7).toFixed(1)})`);
+ tf(P.lids, `translate(0,${((o.shut ? 1 : o.lids) * 32).toFixed(1)})`);
+ vis(P.brow, o.brow !== 0); tf(P.brow, `rotate(${(14 * o.brow).toFixed(1)},238,-335)`);
+ vis(P.rod, o.rod); vis(P.line, o.rod);
+ // the hay hangs from the rod's tip and swings; it rides the torso's sink when the cow lies down
+ tf(P.line, `translate(${COW_ROD.tip[0]},${COW_ROD.tip[1]}) rotate(${(-o.swing + j(11)).toFixed(2)})`);
+ } };
+}
+
+/* ---------- the country road (scenes 1–3) and further along it (scene 4) ----------
+ Everyone stands on y 800. On the road the cow stands mid-road facing right (x 1040, s .92: tail at ~865, nose at
+ ~1320); the three men stand left of it facing us: the American at 300, the Chinese man at 500, the Indian man at 700. */
+const FARM = { ground: 800, s: .9, am: 300, cn: 500, ind: 700, cow: { x: 1040, y: 790, s: .92 } };
+// the locked wide: all four
+const FARM_WIDE = { x: 800, y: 520, z: 1.05 };
+// close-ups on each face (z 2.4) and on the cow's head
+const FCU = { am: { x: 300, y: 470, z: 2.4 }, cn: { x: 500, y: 470, z: 2.4 }, ind: { x: 700, y: 470, z: 2.4 }, cow: { x: 1200, y: 560, z: 2.4 } };
+// roadSet(p, set) → { cam, cow, am, cn, ind, lash }: the cow first (the men pass in front of it), the lash last.
+function roadSet(p, set = 'road', { amHolds = {}, cnHolds = {} } = {}) {
+ const cam = paperCam(p, set);
+ const cow = cowPuppet(cam.stage);
+ const am = americanPuppet(cam.stage, { holds: { coil: whipCoilSVG, whip: whipHandleSVG, ...amHolds } });
+ const cn = chinesePuppet(cam.stage, { holds: { rod: rodHeldSVG, hay: haySVG, ...cnHolds } });
+ const ind = indianPuppet(cam.stage);
+ const lash = whipLash(cam.stage);
+ return { cam, cow, am, cn, ind, lash };
+}
+
+// The title card at the end: black, a torn paper strip with the title, the series line under it.
+function titleCard(p) {
+ const card = mk('g', {}, p);
+ card.innerHTML = `<rect width="1600" height="900" fill="#0d0b0a"/>
+ <g filter="url(#paper)"><path d="M180,330 L260,318 L420,334 L600,316 L800,332 L1000,317 L1200,333 L1380,318 L1430,330 L1420,430 L1370,444 L1180,428 L1000,444 L800,430 L600,446 L400,430 L240,446 L176,432 Z" fill="#f3ead6"/></g>
+ <text x="800" y="418" font-family="Chalkboard SE, Avenir Next Heavy, sans-serif" font-size="92" font-weight="800" text-anchor="middle" fill="#1d1a1a">How to Move a Cow</text>
+ <text x="800" y="510" font-family="Avenir Next, sans-serif" font-size="38" letter-spacing="4" text-anchor="middle" fill="#cfc6b4">Joke Collection · Episode 3</text>`;
+ bakeAll(card);
+ return card;
+}
diff --git a/site/joke-collection/ch03/index.html b/site/joke-collection/ch03/index.html
new file mode 100644
index 0000000..f45e928
--- /dev/null
+++ b/site/joke-collection/ch03/index.html
@@ -0,0 +1,72 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>How to Move a Cow</title>
+<link rel="stylesheet" href="../lib/engine.css">
+<link rel="expect" href="#bar" blocking="render">
+</head>
+<body>
+<script src="../lib/engine.js"></script>
+<script src="../img/sets/sets.js"></script>
+<script src="../img/puppets/baked.js" onerror="0"></script>
+<script src="../lib/paper.js"></script>
+<script>window.SP_SHUT = .9; // a shut eye keeps its lid line (long bows read as empty eyes otherwise)</script>
+<script src="../lib/cast.js"></script>
+<script src="audio/en/timings.js"></script>
+<script src="audio/en/mouths.js"></script>
+<script src="audio/en/shots.js"></script>
+<script src="../lib/shared.js"></script>
+<script src="farm.js"></script>
+<script src="scene1.js"></script>
+<script src="scene2.js"></script>
+<script src="scene3.js"></script>
+<script src="scene4.js"></script>
+<script>
+'use strict';
+const CHAPTER = { number: 3, title: 'How to Move a Cow', minutes: 2, language: 'en' };
+// captions on the first time: half the film is Chinese and Hindi
+try { if (localStorage.getItem('captions') === null) setCaptions(true); } catch {}
+
+/* ---------- beats: one per scene ---------- */
+const BEATS = [
+ ['scene1', "The cow won't move", (m, D) => scene1(panel(0), D), { lead: false, pre: PRE1 }],
+ ['scene2', 'Violence and superstition', (m, D) => scene2(panel(0), D), { lead: false, pre: PRE2 }],
+ ['scene3', 'Of its own free will', (m, D) => scene3(panel(0), D), { lead: false, pre: PRE3 }],
+ ['scene4', 'Lying flat', (m, D) => scene4(panel(0), D), { lead: false, pre: PRE4 }],
+].map(([id, title, run, extra]) => ({ id, title, run, ...extra }));
+
+/* ---------- background music ----------
+ The Three Little Pigs' score (Lyria), reused from episode 2's folder: one track per listed scene, its position the
+ time since the track's first scene began, so pausing and seeking keep it in step; 0.8 s crossfades; lower under
+ speech. Scene 2 is silent (the whip, the prayer, the crickets); the march stops when the cow lies down. */
+const BGM = [['m1-home', ['scene1'], .3], ['m3-chimney', ['scene3', 'scene4'], .22]]
+ .map(([n, beats, gain]) => ({ n, beats, gain, a: Object.assign(new Audio(`../ch02/audio/bgm/${n}.mp3`), { preload: 'auto', loop: true, volume: 0 }), v: 0 }));
+window.MUSIC_OFF = { scene4: t => t > (window.S4_STOP ?? 1e9) };
+const beatLen = id => { const b = BEATS.find(x => x.id === id); return (b.pre || 0) + TIMINGS[id].dur + .6; };
+let lastTick = performance.now();
+function bgmTick(now) {
+ const dt = Math.min(.1, (now - lastTick) / 1000); lastTick = now;
+ const id = BEATS[P.i]?.id, on = P.started && P.playing && !P.waiting && !P.done;
+ const speaking = P.audio && !P.audio.paused && !P.audio.ended;
+ const vol = +(document.getElementById('volume')?.value ?? 1) * (speaking ? .3 : .7); // the music ducks well under the voices
+ for (const m of BGM) {
+ const k = m.beats.indexOf(id), current = on && k >= 0 && !(window.MUSIC_OFF?.[id]?.(P.t));
+ m.v = Math.max(0, Math.min(1, m.v + (current ? 1 : -1) * dt / .8));
+ m.a.volume = m.v * m.gain * vol;
+ if (current) {
+ const want = (m.beats.slice(0, k).reduce((s, b) => s + beatLen(b), 0) + P.t) % (m.a.duration || 1e9);
+ if (Math.abs(m.a.currentTime - want) > .5) m.a.currentTime = want;
+ if (m.a.paused) m.a.play().catch(() => {});
+ } else if (m.v === 0 && !m.a.paused) m.a.pause();
+ }
+ if (!on && !P.done) for (const m of BGM) m.a.pause();
+ requestAnimationFrame(bgmTick);
+}
+requestAnimationFrame(bgmTick);
+paperWarm(g => { americanPuppet(g, { holds: { coil: whipCoilSVG, whip: whipHandleSVG } }); chinesePuppet(g, { holds: { rod: rodHeldSVG, hay: haySVG } }); indianPuppet(g); cowPuppet(g); });
+boot();
+</script>
+</body>
+</html>
diff --git a/site/joke-collection/ch03/scene1.js b/site/joke-collection/ch03/scene1.js
new file mode 100644
index 0000000..9a33ad2
--- /dev/null
+++ b/site/joke-collection/ch03/scene1.js
@@ -0,0 +1,72 @@
+/* scene1.js — "The cow won't move". Road wide (cow chewing, men glance as named), cow close-up ("Moo."), wide again
+ (they argue in mime), the American's close-up ("Easy." — he draws the whip — "Watch this."). Ends on his smirk. */
+'use strict';
+const PRE1 = 1.0, PREN1 = PRE1;
+const N1 = { cowCU: 9.45, wide2: 12.7, amCU: 19.45, hole: clipAt('scene1', PREN1, 's04', 1.2) };
+sfx('scene1', 9.85, 'whoosh', .25);
+
+// a man shrugs (both arms out, a little bounce) or scratches his head (screen-right arm up, small scrubbing)
+const s1shrug = (q, t0) => { const u = span(q, t0, t0 + .25) * (1 - span(q, t0 + .7, t0 + 1)); return { armL: 55 * u, armR: 55 * u, headR: 5 * u, bob: -3 * u }; };
+const s1scratch = (q, t0) => { const u = span(q, t0, t0 + .3) * (1 - span(q, t0 + 1.1, t0 + 1.4)); return { armR: 150 * u + 6 * u * onTwos(q), headR: -3 * u }; };
+
+function scene1(p, D) {
+ const R = roadSet(p, 'road');
+ const cam = R.cam;
+ // 1.1 wide 1.2 cow close-up 1.3 wide 1.4 American close-up
+ cam.cut(FARM_WIDE, 0).cut(FCU.cow, N1.cowCU).soft(N1.cowCU, true).cut(FARM_WIDE, N1.wide2).soft(N1.wide2, false)
+ .cut({ x: 320, y: 540, z: 2.3 }, N1.amCU).soft(N1.amCU, true);
+ const b = (q, ...t) => blinking(q, t);
+ stopClock(D, (q, f) => {
+ cam.apply(q, f);
+ const cuCow = q >= N1.cowCU && q < N1.wide2, cuAm = q >= N1.amCU;
+ const sp = lips(q, 'scene1', PREN1, 's02');
+
+ /* --- the cow: chews, flicks its tail and ear; turns its eye to the men, "Moo.", looks away, chews on --- */
+ const look = tween(q, 8.2, .8, 0, 1) - tween(q, 10.9, .6, 0, 1) * 0; // 0 = forward
+ const turn = span(q, 8.3, 9.3) * (1 - span(q, 11.2, 12)); // eye + head swing toward the men
+ const moo = sp !== 'X' && sp !== undefined;
+ const mouthy = q > 9.9 && q < 11.5 ? (sp !== 'X' ? .9 : 0) : (Math.floor(q * 6) % 2 ? .22 : .04) * (turn > .5 && q < 11.2 ? 0 : 1);
+ R.cow.pose({ ...FARM.cow, jaw: mouthy, eyeX: 1 - 2 * turn, headR: -3 + 5 * turn, ear: 8 * Math.sin(q * 3.1) * (q % 4 < 1 ? 1 : .2),
+ tail: 14 * Math.sin(q * 2.4) + 8 * Math.sin(q * 5.3), shut: b(q, 2.2, 5.6, 7.7, 12.4, 15.5, 20.1), lids: turn * .25 }, f);
+
+ /* --- the men: in a row, looking at the cow; a nod as each is named; mime argument from 12.9 --- */
+ const nod = t0 => { const u = span(q, t0, t0 + .15) * (1 - span(q, t0 + .3, t0 + .5)); return { headR: -5 * u, bob: 3 * u }; };
+ const base = { y: FARM.ground, s: FARM.s, eyeX: 1, mouth: 'flat' };
+ const am = { ...base, x: FARM.am, look: .55, shut: b(q, 3.4, 8.8, 14.6, 17.4), ...nod(clipAt('scene1', PREN1, 's01', 2.52)) };
+ const cn = { ...base, x: FARM.cn, look: .55, shut: b(q, 2.1, 7.1, 13.3, 16.2), ...nod(clipAt('scene1', PREN1, 's01', .23)) };
+ const ind = { ...base, x: FARM.ind, look: .55, shut: b(q, 4.6, 6.4, 11.9, 17.9), ...nod(clipAt('scene1', PREN1, 's01', 1.5)) };
+ if (q > 3.6 && q < 8.0) { cn.eyeX = 1; if (q > 5.6) { ind.brow = .3; } }
+ // 1.2: they turn to look at the cow's eye, a flinch when it moos
+ if (q >= 8.6 && q < 12.7) { cn.brow = .4; ind.brow = .4; am.brow = .3; if (q > 9.9 && q < 11) { cn.headR = -3; am.headR = -3; ind.headR = -3; } }
+ // 1.3: they look at one another, shrug, scratch; the heads turn toward whoever "speaks"
+ const A = q - 13.0;
+ if (q >= 12.9 && q < N1.amCU) {
+ const seq = Math.floor(Math.max(0, A) / 1.5) % 3; // who is "talking" now: 0 Chinese, 1 Indian, 2 American
+ const sw = Math.floor(Math.max(0, A) / 1.5);
+ Object.assign(cn, { look: seq === 1 ? .8 : seq === 2 ? -.8 : -.2, eyeX: seq === 1 ? 1 : -1, brow: seq === 0 ? -.5 : 0 });
+ Object.assign(ind, { look: seq === 0 ? -.8 : seq === 2 ? .8 : .2, eyeX: seq === 0 ? -1 : seq === 2 ? 1 : 0, brow: seq === 1 ? -.4 : 0 });
+ Object.assign(am, { look: seq === 0 ? .8 : seq === 1 ? .6 : .3, eyeX: 1, brow: seq === 2 ? -.5 : 0 });
+ if (seq === 0 && A < 4.5) Object.assign(cn, { armR: 80 + 8 * onTwos(q), armL: 30 }, { headR: 2 * onTwos(q) }); // the Chinese man gestures
+ if (A > 0 && A < 1.5) Object.assign(ind, s1shrug(q, 13.2));
+ if (A >= 1.5 && A < 3.0) Object.assign(ind, { armL: 60 + 10 * onTwos(q), armR: 60 - 10 * onTwos(q), headR: 3 * onTwos(q) });
+ if (A >= 3.0 && A < 4.5) Object.assign(am, s1shrug(q, 16.2));
+ if (A >= 3.0 && A < 4.3) Object.assign(cn, s1scratch(q, 16.1));
+ if (A >= 4.5 && A < 6.4) { Object.assign(am, { look: .2, eyeX: .5 }); Object.assign(ind, s1scratch(q, 17.6)); }
+ if (sw >= 4) Object.assign(am, { mouth: 'smile', brow: 0 }); // the American is thinking of something
+ }
+
+ /* --- 1.4 the American: a grin, "Easy.", draws the whip in the hole, "Watch this." --- */
+ const t = q - N1.amCU, draw = span(q, N1.hole - .05, N1.hole + .75);
+ const easy = lips(q, 'scene1', PREN1, 's04');
+ const aCU = { ...am, look: 0, eyeX: 0, shut: b(q, N1.amCU + 1.3, N1.hole + 1.6), brow: 0, lids: .1,
+ mouth: q < N1.hole - .1 ? (easy !== 'X' ? easy : 'grin') : (q > N1.hole + 1 && easy === 'X' ? 'grin' : easy !== 'X' ? easy : 'smile'),
+ armR: 10 + 22 * draw, headR: 2 * Math.sin(Math.min(1, t) * 3) * (1 - draw), hold: draw < .55 ? 'coil' : 'whip' };
+ const wasAm = cuAm ? aCU : am;
+ if (cuAm) wasAm.eyeX = q < N1.hole ? 1 : 0.6;
+ R.am.pose(q < N1.amCU ? { ...am, hold: 'coil', armR: am.armR ?? 6 } : wasAm, f);
+ R.cn.pose(cn, f); R.ind.pose(ind, f);
+ const pose = q < N1.amCU ? { ...am, hold: 'coil', armR: am.armR ?? 6 } : wasAm;
+ const [hx, hy] = handAt(R.am, pose, 'R');
+ R.lash.pose({ hx, hy: hy - 46 * FARM.s, phase: -1, on: pose.hold === 'whip' });
+ });
+}
diff --git a/site/joke-collection/ch03/scene2.js b/site/joke-collection/ch03/scene2.js
new file mode 100644
index 0000000..1e742c4
--- /dev/null
+++ b/site/joke-collection/ch03/scene2.js
@@ -0,0 +1,121 @@
+/* scene2.js — "Violence and superstition". Wide: the American walks to the cow's rear and lashes it (crack, shake);
+ cow close-up: eyes wide, all four hooves leave the ground, MOOO!, lands, doesn't move, glares back; the Chinese man's
+ close-up ("That's violence!"); the American's close-up, shrinking; wide: the Indian man walks round to the cow's
+ front and prays, the cow sniffs him and chews; held silence (crickets), he peeks in close-up; the Chinese man's
+ close-up ("That's superstition!") and a beat. Ends on that close-up; scene 3 opens on the wide. */
+'use strict';
+const PRE2 = 0.5; // picture first: the American is already striding at the cow
+
+// moments (scene time)
+const T2 = {
+ crack: 2.9, // the lash lands on the rump (the snap is 0.16 s into the sample)
+ cowCU: 3.1, // cut to the cow mid-jump
+ cnCU: clipAt('scene2', PRE2, 's06') - .05, // the Chinese man's close-up, just before his line
+ amCU: clipAt('scene2', PRE2, 's06', 2.4), // after the line: the American shrinks
+ wide: clipAt('scene2', PRE2, 's07') + .2, // wide: back to the road (the Indian man is mid-walk, the American heads back)
+ pray: clipAt('scene2', PRE2, 's07', 3.0), // the Hindi starts here; his palms are together a moment before
+ peek: clipAt('scene2', PRE2, 's07', 7.2), // silence: close-up on the Indian man, he opens an eye
+ cn2: clipAt('scene2', PRE2, 's08') + 3.0, // the Chinese man's close-up, just before "That's superstition!"
+};
+sfx('scene2', T2.crack - .16, 'crack');
+sfx('scene2', T2.crack + .35, 'thud', .6); // the cow lands
+sfx('scene2', clipAt('scene2', PRE2, 's08', .1), 'crickets'); // the silence after the prayer
+
+function scene2(p, D) {
+ const R = roadSet(p, 'road'), cam = R.cam;
+ // cow CU keeps the rump in; the American's CU is centred on where he stands at the cow's rear
+ const cuAm = { x: 620, y: 470, z: 2.4 }, cuCn = { x: 520, y: 470, z: 2.5 }, cuCow = { x: 1150, y: 520, z: 2.4 }, cuInd = { x: 1290, y: 500, z: 2.6 };
+ cam.cut(FARM_WIDE, 0).cut(cuCow, T2.cowCU).soft(T2.cowCU, true).shake(T2.crack, .3, 6)
+ .cut(cuCn, T2.cnCU).cut(cuAm, T2.amCU).cut(FARM_WIDE, T2.wide).soft(T2.wide, false)
+ .cut(cuInd, T2.peek).soft(T2.peek, true).cut(cuCn, T2.cn2);
+ cam.stage.insertBefore(R.cn.g, R.am.g); cam.stage.insertBefore(R.ind.g, R.am.g); // the American walks in front of the others
+
+ const s2hit = prop(cam.stage, '<g filter="url(#paper)" stroke-linecap="round"><path d="M-8,-62 L-4,-30 M30,-52 L14,-24 M52,-10 L22,-4 M-50,-44 L-26,-22 M44,30 L20,16" stroke="#fff6c8" stroke-width="9"/><path d="M0,-48 L0,-26 M26,-34 L14,-18 M-34,-30 L-18,-16" stroke="#f2c230" stroke-width="6"/></g>');
+ const amX = q => q < 1.9 ? tween(q, 0, 1.9, FARM.am, 620) : q < T2.wide ? 620 : tween(q, T2.wide, 3.0, 620, FARM.am);
+ const indX = q => tween(q, T2.wide, 2.3, 1000, 1460); // already rounding the cow's flank when the wide returns
+
+ stopClock(D, (q, f) => {
+ cam.apply(q, f);
+ const wk = spWalk(q), at = (a, b) => q >= a && q < b;
+
+ /* --- the cow: stands chewing; jumps at the crack; lands, stares back; later sniffs the Indian man --- */
+ const jump = at(T2.crack, T2.crack + .6) ? Math.sin(Math.PI * (q - T2.crack) / .6) : 0; // up and down, 0.6 s
+ const cow = { ...FARM.cow, x: FARM.cow.x + (at(T2.crack, T2.crack + .17) ? 16 : 0), y: FARM.cow.y - 70 * jump, splay: 22 * jump, jaw: .12 * onTwos(q) * (q < T2.crack ? 1 : 0), tail: 6 * onTwos(q), eyeX: 1,
+ shut: blinking(q, [1.2, 7.4, 11.7, 17.5]) };
+ if (q >= T2.crack) { Object.assign(cow, { lids: 0, shut: false, ear: 18, tail: 40, brow: q > T2.crack + 1 ? 1 : 0, eyeX: q > T2.crack + .8 ? -1 : 0, headR: tween(q, T2.crack, .3, 0, 12) });
+ if (q > T2.crack + .6) cow.headR = tween(q, T2.crack + .6, .5, 12, 0); }
+ if (q >= T2.crack && q < T2.wide) {
+ const m = lips(q, 'scene2', PRE2, 's05');
+ cow.jaw = m !== 'X' ? .9 : 0;
+ if (q > T2.crack + 1.2 && m === 'X') cow.jaw = .1 * onTwos(q);
+ if (q > T2.crack + 1.4) { cow.tail = 10 + 22 * (onTwos(q) > 0 ? 1 : 0); cow.ear = 6 * onTwos(q); }
+ }
+ if (q >= T2.wide) { // the Indian man arrives at 12.0: the cow lowers its head, sniffs, blinks, chews
+ const arr = T2.wide + 2.3, d = span(q, arr, arr + .8);
+ Object.assign(cow, { brow: 0, eyeX: tween(q, T2.wide, .6, -1, 1), ear: 0, tail: 5 * onTwos(q), headR: -24 * d + (q > arr + .8 && q < arr + 2 ? -3 * onTwos(q) : 0) });
+ cow.eyeY = q > arr + .8 && q < arr + 2 ? 1 : 0;
+ if (q > arr + 2.2) { cow.jaw = .14 * onTwos(q); cow.headR = -24 * (1 - span(q, arr + 3, arr + 3.8) * .5); }
+ cow.shut = blinking(q, [arr + 2, arr + 5.1, 19.0, 20.6]);
+ }
+ R.cow.pose(cow, f);
+
+ /* --- the American: strides to the rear, whirls and cracks; shrinks; walks back to 300 --- */
+ const phase = q < 1.9 ? -1 : q < T2.crack ? Math.min(.999, q < 2.45 ? .6 * (q - 1.9) / .55 : .6 + .4 * (q - 2.45) / (T2.crack - 2.45)) : q < T2.crack + .17 ? 1 : -1;
+ const walking = q < 2.0 || q >= T2.wide;
+ const sad = at(T2.crack + .5, T2.wide + .05);
+ const am = { x: amX(q), y: FARM.ground + 20 * (q < 1.9 ? span(q, 0, 1) : q < T2.wide ? 1 : 1 - span(q, T2.wide, T2.wide + 3)), s: FARM.s, hold: 'whip', look: .6, eyeX: 1, mouth: 'smile', shut: blinking(q, [1.7, 5.3, 9.0, 13.2, 15.7]),
+ armR: q < 2.0 ? 90 : 20 };
+ if (walking) Object.assign(am, { legL: wk.legL, legR: wk.legR, bob: wk.bob, armL: wk.armL });
+ if (walking && q < 2.0) am.armR = 90 + wk.armR; // the whip arm is cocked, half up, as he strides
+ if (q >= 1.9 && q < T2.crack + .17) am.armR = phase < .6 ? tween(phase, 0, .6, 90, 150) : tween(phase, .6, .4, 150, 60);
+ if (q >= T2.crack + .17 && q < T2.crack + .5) am.armR = tween(q, T2.crack + .17, .33, 60, 20);
+ if (q >= T2.crack) am.mouth = 'smile';
+ if (sad) Object.assign(am, { mouth: 'frown', brow: 1, squash: .1 * span(q, T2.crack + 1.5, T2.amCU + .5), headR: -4, look: q < T2.wide ? -.3 : .5, eyeX: -.6, lids: .3, armR: 8 });
+ if (q >= T2.cnCU && q < T2.wide) am.look = -.4; // watching the Chinese man
+ if (q >= T2.wide) Object.assign(am, { look: -.9, eyeX: -1, mouth: 'flat', brow: .6, squash: 0, headR: 0, armR: 4 + wk.armR });
+ if (q >= T2.wide + 3.0) Object.assign(am, { look: .5, eyeX: 1, ...(({ legL, legR, bob }) => ({ legL: 0, legR: 0, bob: 0, armL: 0, armR: 6 }))(wk) });
+ R.am.pose(am, f);
+ const [hx, hy] = handAt(R.am, am, 'R');
+ R.lash.pose({ hx, hy: hy - 46 * FARM.s, phase, on: q >= 1.9 && q < T2.wide + 3.1, tx: 900, ty: 560 });
+ // a paper impact mark on the rump for 3 frames from the crack
+ vis(s2hit, at(T2.crack, T2.crack + .25)); tf(s2hit, `translate(900,560) scale(${(1 + .2 * onTwos(q)).toFixed(2)})`);
+
+ /* --- the Chinese man: watches, points and says "violence"; later "superstition" --- */
+ const cn = { x: FARM.cn, y: FARM.ground, s: FARM.s, mouth: 'X', look: .6, eyeX: 1, brow: 0, shut: blinking(q, [1.0, 4.6, 8.0, 12.6, 15.0, 18.4]) };
+ if (q > 5.0 && q < T2.cnCU + .5) Object.assign(cn, { brow: -1, mouth: 'flat' });
+ if (at(T2.cnCU, T2.amCU)) Object.assign(cn, { look: .5, eyeX: 1, brow: -1, mouth: lips(q, 'scene2', PRE2, 's06') === 'X' ? 'frown' : lips(q, 'scene2', PRE2, 's06'),
+ armR: tween(q, T2.cnCU, .4, 0, 88) + 3 * onTwos(q), headR: -3 + 2 * onTwos(q) });
+ if (at(T2.amCU, T2.wide)) Object.assign(cn, { look: .5, brow: -.5, armR: 88, mouth: 'frown' });
+ if (q >= T2.wide) Object.assign(cn, { look: .7, eyeX: 1, armR: tween(q, T2.wide, .6, 88, 0), mouth: 'flat', brow: -.5 });
+ if (q >= T2.cn2 - .4) { // shaking his head, pointing across at the Indian man
+ const sh = q >= T2.cn2 ? Math.sin((q - T2.cn2) * 9) * 6 : 0;
+ Object.assign(cn, { look: .7 + .1 * Math.sin((q - T2.cn2) * 9), eyeX: 1, brow: -1, armR: tween(q, T2.cn2 - .3, .35, 0, 90), headR: sh,
+ mouth: lips(q, 'scene2', PRE2, 's08') === 'X' ? (q > clipAt('scene2', PRE2, 's08', 5.2) ? 'flat' : 'frown') : lips(q, 'scene2', PRE2, 's08') });
+ if (q >= clipAt('scene2', PRE2, 's08', 5.3)) Object.assign(cn, { headR: 0, look: .7, brow: -.6 }); // the beat: arm still out, jaw set
+ }
+ R.cn.pose(cn, f);
+
+ /* --- the Indian man: listens; rounds the cow; prays; opens an eye --- */
+ const ind = { x: FARM.ind, y: FARM.ground, s: FARM.s, look: -.5, eyeX: -1, mouth: 'flat', shut: blinking(q, [1.5, 5.8, 8.6]) };
+ if (q >= T2.wide) {
+ const arr = T2.wide + 2.3, walk = q < arr;
+ // round the cow's front: from behind-the-flank (y 620) down toward us and back up to the ground line
+ const yy = FARM.ground + 40 * Math.sin(Math.PI * Math.min(1, (q - T2.wide) / 2.3));
+ Object.assign(ind, { x: indX(q), y: yy, look: walk ? 1 : -.8, eyeX: walk ? 1 : -1, ...(walk ? wk : { legL: 0, legR: 0, bob: 0 }) });
+ if (walk) { ind.armR = wk.armR; ind.armL = wk.armL; }
+ else {
+ const turn = span(q, arr, arr + .5), palms = span(q, arr + .3, arr + .8);
+ ind.look = -.8 * turn; ind.armL = ind.armR = -115 * palms;
+ ind.shut = q > arr + .7; ind.mouth = q >= T2.pray - .1 ? ((lips(q, 'scene2', PRE2, 's07') === 'X') ? 'flat' : lips(q, 'scene2', PRE2, 's07')) : 'flat';
+ ind.brow = .3; ind.headR = q > T2.pray ? 3 * Math.sin(q * 2) : 0;
+ // the silence: a peek with one eye (shut -> lids .6 looking at the cow), then a full look
+ if (q >= T2.peek + .5) { ind.shut = false; ind.lids = q < T2.peek + 1.5 ? .6 : 0; ind.eyeX = -1; }
+ if (q >= T2.peek + 1.7) { ind.shut = false; ind.lids = 0; ind.eyeX = -1; ind.mouth = 'flat'; ind.brow = -.2; ind.eyeY = -.2; }
+ if (q >= T2.peek + 2.3) { ind.armL = ind.armR = -115 * (1 - span(q, T2.peek + 2.3, T2.peek + 2.8)); ind.brow = -.4; }
+ }
+ }
+ R.ind.pose(ind, f);
+
+ // who is on screen: the camera root is the same set throughout; the cow close-up leaves the rest in the frame edges
+ });
+}
diff --git a/site/joke-collection/ch03/scene3.js b/site/joke-collection/ch03/scene3.js
new file mode 100644
index 0000000..6ed4e60
--- /dev/null
+++ b/site/joke-collection/ch03/scene3.js
@@ -0,0 +1,177 @@
+/* scene3.js — Of its own free will. The Chinese man walks off left (the other two glance at each other) and comes back
+ with a rod and a bundle of hay; an INSERT close-up (hook, hay, two mittens knotting) for "tied the hay to the hook";
+ a medium shot where he lashes the rod to the cow's back; the cow close-up (eyes cross the hay, two lunges, steps);
+ then the wide follow: the cow trudges right, he struts beside it and says his line, the others trail behind, and
+ all walk out right in the hush. Walks are slower than the series' 150 px/s so the wide can hold the whole speech. */
+'use strict';
+const PRE3 = 0.5;
+const s3v = (clip, t = 0) => clipAt('scene3', PRE3, clip, t);
+// word time w of s10 → beat time (silent holes: 0.4 s after 0.05, 1.6 s after 1.6)
+const s3w = w => s3v('s10', w + (w >= .05 ? .4 : 0) + (w >= 1.6 ? 1.6 : 0));
+
+/* ---------- timeline (beat time, s) ---------- */
+const T3 = {
+ fix: .6, away: 1.5, off: 5.1, back: 6.5, // he straightens his shirt, walks off left (gone at 5.1), returns from 6.5
+ indGo: 8.3, // the Indian man wanders left to watch
+ insIn: s3w(.05) - .1, insOut: s3w(1.85) - .04, // INSERT close-up: from "He tied" to just before "and the rod"
+ knot0: s3w(1.0), knot1: s3w(1.6) + 1.5, pull: 14.0, // wraps on "to the hook", tightens in the hole
+ med: s3w(1.85) - .04, lift: s3w(1.85) + .05, rodOn: s3w(2.9), medOut: 16.85,
+ cu: 16.85, seeHay: 17.45, lunge1: 17.95, lunge2: 18.75, step1: 19.2, step2: 19.9, go: 20.3, wide: 20.5,
+ talk: s3v('s11') + 5.1, // the line starts here (after its 5 s hole)
+ hush: s3v('hush2'),
+};
+sfx('scene3', T3.step1 - .1, 'clop'); for (let t = T3.step1 - .1 + 2; t < 31; t += 2) sfx('scene3', t, 'clop', .8);
+
+/* ---------- helpers ---------- */
+const s3k = (q, pts) => { // eased piecewise keyframes [[t, v], …]
+ if (q <= pts[0][0]) return pts[0][1];
+ for (let i = 0; i < pts.length - 1; i++) if (q < pts[i + 1][0]) return pts[i][1] + (pts[i + 1][1] - pts[i][1]) * ease((q - pts[i][0]) / (pts[i + 1][0] - pts[i][0]));
+ return pts[pts.length - 1][1];
+};
+const s3lin = (q, pts) => { // linear piecewise
+ if (q <= pts[0][0]) return pts[0][1];
+ for (let i = 0; i < pts.length - 1; i++) if (q < pts[i + 1][0]) return pts[i][1] + (pts[i + 1][1] - pts[i][1]) * (q - pts[i][0]) / (pts[i + 1][0] - pts[i][0]);
+ return pts[pts.length - 1][1];
+};
+const s3flick = (q, k, amp = .12) => amp * jit(Math.floor(q * 2.5), k);
+// the cow's x: still, two small steps, then a trudge that gains pace (velocity keyframes integrated once)
+const S3_V = [[0, 0], [T3.step1, 0], [T3.step1 + .2, 100], [T3.step1 + .4, 0], [T3.step2, 0], [T3.step2 + .2, 100], [T3.step2 + .4, 0],
+ [T3.go, 0], [T3.go + .3, 125], [40, 125]];
+const S3_X = (() => { const a = [FARM.cow.x]; for (let i = 1; i <= 32 * 120; i++) a.push(i / 120 >= T3.cu && (i - 1) / 120 < T3.cu ? 760 : a[i - 1] + s3lin(i / 120, S3_V) / 120); return a; })(); // the cow is re-placed (760) at the cut to its close-up
+const s3cowX = q => S3_X[Math.max(0, Math.min(S3_X.length - 1, Math.round(q * 120)))];
+const s3moving = (fn, q) => Math.abs(fn(q) - fn(q - .12)) > 3 && Math.abs(fn(q) - fn(q - .12)) < 40;
+// a figure that walks 150 px/s along a path from t0, never past its target
+const s3follow = (x0, t0, target) => q => Math.min(x0 + 150 * Math.max(0, q - t0), target(q));
+const s3walk = q => spWalk(q * .5); // slower cadence (swap every 4 frames) for the slow marchers
+
+/* ---------- the insert: hook, hay and two mittens on a blurred road ---------- */
+function s3insert(p) {
+ const g0 = mk('g', {}, p), g = mk('g', { transform: 'translate(880,200) scale(1.7) translate(-880,-200)' }, g0), HX = 880, TIE = 340;
+ g.innerHTML = '<rect width="1600" height="900" fill="#1d1a1a" opacity=".18"/>';
+ const line = mk('path', { d: `M${HX},-20 V${TIE - 70}`, stroke: '#3a3430', 'stroke-width': 5, fill: 'none' }, g);
+ const hook = prop(g, `<g filter="url(#paper)"><circle cy="0" r="13" fill="none" stroke="#5a5f66" stroke-width="7"/><path d="M0,13 V120 Q0,190 -60,176 Q-96,166 -90,128 L-70,150" fill="none" stroke="#5a5f66" stroke-width="20" stroke-linecap="round" stroke-linejoin="round"/>
+ <path d="M0,13 V120 Q0,190 -60,176 Q-96,166 -90,128 L-70,150" fill="none" stroke="#c4cad2" stroke-width="11" stroke-linecap="round" stroke-linejoin="round"/></g>`);
+ const hay = prop(g, `<g transform="scale(1.45)">${haySVG}</g>`);
+ const wrap = mk('g', {}, g);
+ for (let i = 0; i < 3; i++) mk('path', { d: `M${HX - 26},${TIE + 8 + i * 12} q26,12 52,0`, stroke: '#b08a50', 'stroke-width': 7, fill: 'none', 'stroke-linecap': 'round' }, wrap);
+ const knot = prop(g, `<g filter="url(#paper)"><circle r="14" fill="#b08a50"/><path d="M-4,8 q-10,26 -22,34 M4,8 q10,26 22,30" stroke="#b08a50" stroke-width="6" fill="none" stroke-linecap="round"/></g>`);
+ const hand = side => {
+ const m = mk('g', {}, g), sleeve = mk('path', { stroke: '#b9d0e6', 'stroke-width': 64, 'stroke-linecap': 'round', fill: 'none' }, m);
+ const mit = prop(m, `<g filter="url(#paper)"><circle r="36" fill="#f2efe6"/><ellipse cx="${side * -28}" cy="-12" rx="14" ry="20" fill="#f2efe6"/></g>`);
+ return { m, sleeve, mit };
+ };
+ const L = hand(1), R = hand(-1);
+ return { g, pose(q) {
+ vis(g0, q >= T3.insIn && q < T3.insOut); if (q < T3.insIn || q >= T3.insOut) return;
+ const hayIn = span(q, T3.insIn, T3.insIn + .55), wr = span(q, T3.knot0, T3.knot1), pull = span(q, T3.pull, T3.pull + .35), away = span(q, T3.pull + .35, T3.pull + 1.0);
+ // the hook sways a little as it is handled
+ const sway = 2.5 * Math.sin((q - T3.insIn) * 5) * (1 - span(q, T3.pull + .5, T3.pull + 2.2));
+ tf(hook, `translate(${HX},${TIE - 70}) rotate(${sway.toFixed(2)})`);
+ // the left mitten pinches the hook's shank; the right carries the hay in, circles round the shank, then pulls
+ const a = wr * Math.PI * 6 + 1.2;
+ let rx = 1580 + (HX + 58 - 1580) * hayIn, ry = 560 + (TIE + 30 - 560) * hayIn;
+ if (wr > 0) { rx = HX + 52 * Math.cos(a) * (1 - pull * .5); ry = TIE + 12 + 20 * Math.sin(a); }
+ const dig = onTwos(q) * 4 * (wr > 0 && wr < 1 ? 1 : 0);
+ let lx = -80 + (HX - 52 + 80) * span(q, T3.insIn - .1, T3.insIn + .4), ly = TIE - 18 + dig;
+ ry += 22 * pull; lx -= 70 * away; rx += 110 * away; ry += 60 * away; ly -= 60 * away;
+ // the hay hangs from the knot, swings once released
+ const swing = 11 * Math.exp(-3 * Math.max(0, q - T3.pull - .4)) * Math.cos(Math.max(0, q - T3.pull - .4) * 9) * span(q, T3.pull + .3, T3.pull + .45);
+ const hayLoopY = TIE + 44 + 18 * pull;
+ const hx = hayIn < 1 ? rx - 35 : HX, hy = hayIn < 1 ? ry + 14 : hayLoopY;
+ tf(hay, `translate(${hx.toFixed(1)},${hy.toFixed(1)}) rotate(${swing.toFixed(2)})`);
+ vis(wrap, wr > .05); tf(wrap, `translate(0,${(8 * pull).toFixed(1)})`);
+ for (let i = 0; i < 3; i++) vis(wrap.children[i], wr > .25 + i * .22);
+ vis(knot, wr >= 1); tf(knot, `translate(${HX},${TIE + 26 + 8 * pull})`);
+ // mittens with sleeves running off the screen edges
+ tf(L.mit, `translate(${lx.toFixed(1)},${ly.toFixed(1)})`); L.sleeve.setAttribute('d', `M${lx - 80},760 L${lx - 6},${ly + 28}`);
+ tf(R.mit, `translate(${rx.toFixed(1)},${ry.toFixed(1)})`); R.sleeve.setAttribute('d', `M${rx + 80},760 L${rx + 6},${ry + 28}`);
+ } };
+}
+
+function scene3(p, D) {
+ const R = roadSet(p, 'road'), cam = R.cam, ins = s3insert(p), who = [R.cow, R.am, R.cn, R.ind];
+ const MED = { x: 1060, y: 560, z: 1.5 }, INS = { x: 880, y: 450, z: 1 };
+ // 3.1 wide: he leaves, the others glance, he returns INSERT: the knot 3.2 medium: the rod 3.3 cow close-up 3.4 wide follow
+ cam.cut(FARM_WIDE, 0)
+ .cut(INS, T3.insIn).soft(T3.insIn, 'all')
+ .cut(MED, T3.med).soft(T3.med, false)
+ .cut({ x: t => s3cowX(t) + 215, y: 545, z: 2.8 }, T3.cu).soft(T3.cu, true)
+ .cut({ x: t => Math.min(1020, Math.max(650, s3cowX(t) - 150)), y: 520, z: 1.25 }, T3.wide).soft(T3.wide, false); // follows the cow, then locks
+
+ // where everyone is (functions of time)
+ const cnX = q => q < T3.away ? 500 : q < T3.back ? Math.max(-120, 500 - 150 * (q - T3.away)) : q < T3.cu ? Math.min(985, -40 + 150 * (q - T3.back)) : s3cowX(q) - 300;
+ const indX = q => q < T3.indGo ? 1460 : q < T3.cu ? Math.max(480, 1460 - 150 * (q - T3.indGo)) : s3cowX(q) - 450;
+ const amX = q => q < T3.cu ? 300 : s3cowX(q) - 600;
+ const speaking = q => q >= T3.talk - .05 && q < s3v('s11', 5.45);
+ const talkOver = s3v('s11', 5.45);
+
+ stopClock(D, (q, f) => {
+ cam.apply(q, f);
+ const inIns = q >= T3.insIn && q < T3.insOut;
+ ins.pose(q); for (const w of who) vis(w.g, !inIns);
+ vis(R.cn.g, !inIns && !(q >= T3.cu && q < T3.wide));
+ const wf = f - f % 4; // the cow's walk swaps every 4 frames
+
+ /* ---------- the cow ---------- */
+ const cx = s3cowX(q), cwalk = q > T3.step1 && s3moving(s3cowX, q) || q > T3.go;
+ const lunge = (t0, d, a) => between(q, t0, t0 + d) ? Math.sin(Math.PI * (q - t0) / d) * a : 0;
+ const reach = q >= T3.wide ? lunge(21.2 + 1.9 * Math.floor((q - 21.2) / 1.9), .6, 1) : 0;
+ const hay = Math.max(lunge(T3.lunge1, .5, 1), lunge(T3.lunge2, .6, 1), reach);
+ const sees = q >= T3.seeHay, rodOn = q >= T3.rodOn;
+ const chewing = !sees || q > T3.wide, flick = Math.floor(q * 3) % 2 ? 1 : 0;
+ const cowEye = q < T3.cu ? (q > 7.2 && q < 10.2 ? { eyeX: -1, eyeY: 0 } : { eyeX: 0, eyeY: 0 }) // watches the man walk by
+ : q < T3.seeHay ? { eyeX: 0, eyeY: 0 } : { eyeX: 1, eyeY: .4 * span(q, T3.seeHay, T3.seeHay + .25) };
+ const swing = rodOn ? (q > T3.cu ? 4 * Math.sin((q - T3.cu) * 3) * .3 : 0) + (hay ? -0 : 0)
+ + 16 * Math.exp(-2.5 * Math.max(0, q - T3.lunge1 - .25)) * (q > T3.lunge1 + .25 && q < T3.lunge2 ? 1 : 0)
+ + 20 * Math.exp(-2.5 * Math.max(0, q - T3.lunge2 - .3)) * (q > T3.lunge2 + .3 && q < T3.step1 ? 1 : 0)
+ + (q > T3.step1 ? 2.5 * Math.sin((q - T3.step1) * 5) * (cwalk ? 1 : 0) : 0) + (q > T3.wide ? 14 * hay + 6 * Math.sin((q - T3.wide) * 4) : 0) : 0;
+ R.cow.pose({ ...FARM.cow, x: cx, ...cowEye, rod: rodOn, walk: cwalk, bob: cwalk ? -3 * (Math.floor(q * 3) % 2) : 0,
+ jaw: hay > 0 ? .55 * hay + .1 : chewing ? (Math.floor(q * 3.5) % 2 ? .13 : 0) : (q > T3.lunge2 + .6 && q < T3.step1 ? .08 : 0),
+ headR: -7 * hay + (sees && !hay ? -1.5 : 0), brow: sees && q < T3.step2 + .4 ? .5 : 0,
+ tail: 12 * Math.sin(q * 1.7) + (cwalk ? 8 * Math.sin(q * 4) : 0), ear: flick && Math.floor(q) % 3 === 0 ? 14 : 0,
+ shut: blinking(q, [1.6, 4.4, 7.9, 12.1, 15.8, 18.2, 22.0, 26.3, 29.4]), lids: 0, swing }, cwalk ? wf : f);
+
+ /* ---------- the Chinese man ---------- */
+ const cn = cnX(q), cnWalk = s3moving(cnX, q), w = cnWalk ? s3walk(q) : {};
+ const tidy = between(q, T3.fix, T3.away), lifting = between(q, T3.lift, T3.rodOn), winding = between(q, T3.rodOn - .6, T3.medOut);
+ const rodHeld = q >= T3.back && q < T3.rodOn, hayHeld = q >= T3.back && q < T3.insIn;
+ const tug = tidy ? s3k(q, [[T3.fix, 0], [T3.fix + .25, -40], [T3.fix + .5, 10], [T3.fix + .75, -40], [T3.fix + 1.0, 0]]) : 0;
+ let aR = tug, aL = tidy ? tug : 0; // both hands smooth the shirt
+ if (q >= T3.back && q < T3.cu) { aR = 22; aL = 28; }
+ if (lifting) { aR = s3k(q, [[T3.lift, 22], [T3.lift + .5, 118], [T3.rodOn, 100]]); aL = s3k(q, [[T3.lift, 28], [T3.lift + .5, 100], [T3.rodOn, 88]]); }
+ if (q >= T3.rodOn - .01 && q < T3.medOut) { const ph = (q - T3.rodOn) * 7; aR = 85 + 28 * Math.sin(ph); aL = 85 + 28 * Math.sin(ph + Math.PI); }
+ let cnPose, cnLook;
+ if (q < T3.cu) cnLook = q < T3.away ? { look: .2, eyeX: .3 } : q < T3.back ? { look: -1, eyeX: -1 } : q < T3.med ? { look: .9, eyeX: 1 } : { look: .5, eyeX: 1, eyeY: .35 };
+ else if (q < T3.talk - .3) cnLook = { look: -.2, eyeX: 0 }; // proud, eyes front
+ else cnLook = { look: -.9 * span(q, T3.talk + 1.1, T3.talk + 1.4), eyeX: -1 * span(q, T3.talk + 1.1, T3.talk + 1.4) };
+ const strut = q >= T3.cu;
+ cnPose = { x: cn, y: FARM.ground + (strut ? 12 : 0), s: FARM.s, ...cnLook, ...w, armL: strut ? -20 : w.armL === undefined ? aL : aL, armR: strut ? -20 : aR,
+ hold: rodHeld ? 'rod' : null, holdL: hayHeld ? 'hay' : null, headR: strut ? 6 + (speaking(q) ? 3 * (Math.floor(q * 3) % 2) : 0) : 0, lids: strut ? .25 : 0, brow: strut ? 1 : 0,
+ mouth: speaking(q) ? lips(q, 'scene3', PRE3, 's11') : (strut ? 'smile' : 'flat'), shut: blinking(q, [2.4, 8.9, 12.4, 17.6, 21.3, 24.9, 29.1]) };
+ if (cnWalk && !strut) { cnPose.armR = aR + 3 * (w.k || 0); cnPose.armL = aL; }
+ if (q >= T3.back && q < T3.cu) { cnPose.armR = lifting || winding ? aR : 22; cnPose.armL = lifting || winding ? aL : 28; }
+ if (q >= T3.back && q < T3.rodOn - .6 && q >= T3.med) { cnPose.armR = lifting ? aR : 22; cnPose.armL = lifting ? aL : 28; }
+ R.cn.pose(cnPose, f);
+
+ /* ---------- the American ---------- */
+ const am = amX(q), amWalk = s3moving(amX, q), aw = amWalk ? s3walk(q) : {};
+ const toInd = between(q, 2.6, 4.6), tail = q >= T3.cu;
+ const amPose = { x: am, y: FARM.ground, s: FARM.s, hold: 'whip', ...aw, armR: amWalk ? 14 + 4 * (aw.k || 0) : 14, armL: amWalk ? aw.armL : 0, bob: aw.bob || 0,
+ look: toInd ? .9 : q < T3.back ? .4 : .5, eyeX: toInd ? 1 : q < 5.4 ? 0 : 1, eyeY: 0, shut: blinking(q, [3.3, 9.7, 13.1, 18.9, 23.6, 27.8]),
+ mouth: tail ? 'O' : 'flat', lids: tail ? 0 : .12, brow: tail ? .35 : 0, headR: tail ? 3 : 0 };
+ if (tail) { amPose.look = .7; amPose.eyeX = 1; amPose.eyeY = s3flick(q, 4, .1); }
+ R.am.pose(amPose, f);
+ const [hx, hy] = handAt(R.am, amPose, 'R');
+ R.lash.pose({ hx, hy: hy - 46 * FARM.s, phase: -1, on: true });
+
+ /* ---------- the Indian man ---------- */
+ const ind = indX(q), indWalk = s3moving(indX, q), iw = indWalk ? s3walk(q) : {};
+ const itail = q >= T3.cu, toAm = between(q, 2.6, 4.6);
+ const indPose = { x: ind, y: FARM.ground, s: FARM.s, ...iw, armL: indWalk ? iw.armL : 0, armR: indWalk ? iw.armR : 0,
+ look: toAm ? -.9 : indWalk && q < T3.cu ? -.8 : itail ? .6 : q < T3.back ? -.8 : -.5, eyeX: toAm ? -1 : indWalk && q < T3.cu ? -1 : itail ? 1 : -1,
+ eyeY: itail ? .0 : 0, shut: blinking(q, [1.9, 6.1, 10.8, 15.0, 20.4, 25.2, 29.9]),
+ mouth: itail ? 'O' : 'flat', brow: itail ? .4 : 0, lids: itail ? 0 : .1 };
+ if (!indWalk && !itail && q > T3.back) indPose.look = -.5;
+ R.ind.pose(indPose, f);
+ });
+}
diff --git a/site/joke-collection/ch03/scene4.js b/site/joke-collection/ch03/scene4.js
new file mode 100644
index 0000000..1ce4580
--- /dev/null
+++ b/site/joke-collection/ch03/scene4.js
@@ -0,0 +1,101 @@
+/* scene4.js — Lying flat. They walk in along road2 (cow first, rod on), the cow slows as it works it out, stops, looks at
+ the hay, at us, sighs and lies down (thud: the march music stops); everybody stares; the Chinese man twitches, turns,
+ storms over to the American and jabs a finger at him (camera shake); snap zoom to the American's "Me?"; title card. */
+'use strict';
+const PRE4 = 0.5;
+const s4v = (clip, t = 0) => clipAt('scene4', PRE4, clip, t);
+
+/* ---------- timeline (beat time, s) ---------- */
+const S4 = {
+ slow0: 6.3, stop: 10.5, // the cow slows during "However far it walked…" and stands
+ cowCU: 10.35, hay: 10.5, us: 11.9, blink: 12.6, sigh: 13.9, lie0: 14.65, lie1: 15.45, // 4.2
+ wide: 15.95, // 4.3 (s13 starts at s4v('s13'))
+ cnCU: 20.9, turn: 22.8, two: 23.4, storm0: 23.45, storm1: 24.6, // 4.4, 4.5
+ hands: 29.9, snap: 30.35, titleAt: 33.6, // 4.6, 4.7
+};
+S4.shake = s4v('s14', 1.107 + 3.5); // on 境外
+window.S4_STOP = S4.lie1;
+for (let t = .2; t < S4.stop - 1; t += 2) sfx('scene4', t, 'clop', t < 6 ? .8 : .5);
+sfx('scene4', S4.lie1, 'thud');
+sfx('scene4', S4.cnCU + .1, 'crickets');
+sfx('scene4', S4.snap, 'whoosh');
+sfx('scene4', S4.titleAt, 'sting');
+
+/* ---------- the march: cow x(q) (X0 → 1000), 130 px/s then slowing to a stop ---------- */
+const S4_V = 130, S4_SLOW = S4.stop - S4.slow0, S4_X0 = 1000 - S4_V * S4.slow0 - S4_V * S4_SLOW / 2;
+function s4cowX(q) {
+ if (q <= S4.slow0) return S4_X0 + S4_V * q;
+ const u = Math.min(1, (q - S4.slow0) / S4_SLOW);
+ return S4_X0 + S4_V * S4.slow0 + S4_V * S4_SLOW * (u / 2 + Math.sin(Math.PI * u) / (2 * Math.PI));
+}
+const s4moving = q => q < S4.stop - .25;
+// Piecewise eased keyframes [[t, v], …].
+const s4k = (q, pts) => {
+ if (q <= pts[0][0]) return pts[0][1];
+ for (let i = 0; i < pts.length - 1; i++) if (q < pts[i + 1][0]) return pts[i][1] + (pts[i + 1][1] - pts[i][1]) * ease((q - pts[i][0]) / (pts[i + 1][0] - pts[i][0]));
+ return pts[pts.length - 1][1];
+};
+const s4flick = (q, k, amp = .12) => amp * jit(Math.floor(q * 2.5), k); // tiny eye moves
+
+function scene4(p, D) {
+ const R = roadSet(p, 'road2'), cam = R.cam, card = titleCard(p);
+ const CX = 1000, CN_END = CX - 250, AM_X = CX - 560, IND_X = CX - 730, AM_FACE = AM_X + 120; // standing places after the stop (the Indian man clear of the signpost at x 190…356)
+ const CU_COW = { x: 1200, y: 560, z: 2.4 }, CU_CN = { x: CN_END, y: 470, z: 2.4 }, TWO = { x: 620, y: 500, z: 1.6 }, CU_AM = { x: AM_X, y: 470, z: 2.4 };
+ // 4.1 wide, they walk in 4.2 the cow's close-up 4.3 wide 4.4 the Chinese man 4.5 two-shot 4.6 snap zoom to the American
+ cam.cut(FARM_WIDE, 0).cut(CU_COW, S4.cowCU).soft(S4.cowCU, true).cut(FARM_WIDE, S4.wide).soft(S4.wide, false)
+ .cut(CU_CN, S4.cnCU).soft(S4.cnCU, true).cut(TWO, S4.two).soft(S4.two, false).shake(S4.shake, .8, 9)
+ .to(CU_AM, S4.snap, .3).soft(S4.snap + .3, true);
+
+ stopClock(D, (q, f) => {
+ const title = q >= S4.titleAt;
+ vis(cam.root, !title); vis(card, title);
+ if (title) return;
+ cam.apply(q, f);
+ const cx = s4cowX(q), mv = s4moving(q), w = mv ? spWalk(q) : {}, lieU = span(q, S4.lie0, S4.lie1);
+ R.lash.pose({ on: false });
+
+ /* ---------- the cow ---------- */
+ const reaching = q < S4.stop ? Math.min(1, (S4.stop - q) / 2) : 0; // the neck stretches while it still hopes
+ const sigh = between(q, S4.sigh, S4.lie0 + .1) ? Math.sin(Math.PI * span(q, S4.sigh, S4.lie0 + .1)) : 0;
+ const standing = q >= S4.stop && q < S4.lie0;
+ const eyeX = q < S4.us ? 1 : q < S4.lie0 ? 0 : 0;
+ R.cow.pose({ ...FARM.cow, x: cx, rod: true, walk: mv, bob: mv ? (w.bob || 0) * .7 : 8 * sigh, lie: lieU,
+ headR: 10 * reaching - 5 * sigh, jaw: mv && q < 8 ? .12 * (onTwos(q) > 0 ? 1 : 0) : .25 * sigh,
+ eyeX: standing || q < S4.stop ? eyeX : 0, eyeY: lieU > 0 ? .2 : 0, swing: mv ? 7 + 3 * onTwos(q) * reaching : 0,
+ shut: blinking(q, [3.1, 7.6, 19.0, 26.5]) || between(q, S4.blink, S4.blink + .8),
+ lids: sigh ? .5 : lieU > 0 ? .45 : q >= S4.us ? .15 : 0, brow: q >= S4.us && q < S4.lie0 ? -.4 * 0 : 0,
+ ear: q > S4.stop ? 14 * (onTwos(q) > 0 && between(q % 5, 0, .3) ? 1 : 0) : 0, tail: q > S4.lie1 && between((q - S4.lie1) % 4, 0, .5) ? 25 * onTwos(q) : 0 }, f);
+
+ /* ---------- the men: follow the cow, then stand and stare ---------- */
+ const k = mv ? w : {};
+ const stare = { look: .7, eyeX: 1 };
+ // Chinese man: strutting beside the cow's tail (hands behind his back), then staring, then turning on the American
+ const turn = span(q, S4.turn, S4.turn + .7), storm = span(q, S4.storm0, S4.storm1);
+ const cnX = (mv ? cx - 250 : CN_END) + (q >= S4.storm0 ? (AM_FACE - CN_END + 100) * storm : 0);
+ const stormWalk = q >= S4.storm0 && q < S4.storm1 + .1 ? spWalk(q) : {};
+ const sp = q >= s4v('s14') && q < s4v('s14', 9.4);
+ // stressed words: 境外势力 and 躺平; he leans in, squashes a little and jabs on twos at the American's face
+ const stress = [[1.107, 1.9], [4.18, 5.0]].some(([a, b]) => between(q, s4v('s14', a + 3.5), s4v('s14', b + 3.5)));
+ const jab = q >= S4.storm1 - .3 ? 108 + (stress ? 10 * onTwos(q) : 3 * onTwos(q)) : 30 * span(q, S4.storm0, S4.storm1);
+ const drop = span(q, S4.hands - .3, S4.hands); // the finger comes down as the American's hands go up (they'd meet like a fist bump)
+ const angry = q >= S4.turn + .4;
+ const twitch = between(q, S4.cnCU + .6, S4.cnCU + 1.5) ? (onTwos(q) > 0 ? .55 : 0) : between(q, S4.cnCU + 1.9, S4.cnCU + 2.3) && onTwos(q) > 0 ? .4 : 0;
+ R.cn.pose({ x: cnX, y: FARM.ground, s: FARM.s, ...k, ...stormWalk, look: .7 - 1.5 * turn, eyeX: 1 - 2 * turn, eyeY: 0,
+ armR: mv ? -20 : 0, armL: mv ? -20 : q >= S4.storm0 ? jab * (1 - drop) : 0,
+ lids: twitch, squash: sp && stress ? .05 : 0, shut: blinking(q, [2.4, 6.9, 18.2]), brow: angry ? -1.2 : mv ? -.1 : .3,
+ mouth: sp ? (lips(q, 'scene4', PRE4, 's14') === 'X' ? 'frown' : lips(q, 'scene4', PRE4, 's14')) : mv ? 'smile' : angry ? 'frown' : 'flat',
+ headR: angry ? (sp ? -9 - (stress ? 4 : 0) : -5) : 0 }, f);
+ // American: agape, then hands up for "Me?"
+ const hands = span(q, S4.hands, S4.hands + .35);
+ const amLook = q >= S4.storm0 - .2 ? { look: .9, eyeX: 1, eyeY: .1 } : stare;
+ R.am.pose({ x: mv ? cx - 560 : AM_X + (q >= S4.storm0 + .5 ? -22 * span(q, S4.storm0 + .5, S4.storm1 + .3) : 0), y: FARM.ground, s: FARM.s, ...k, ...amLook, eyeY: (amLook.eyeY || 0) + s4flick(q, 3),
+ hold: null, armL: 110 * hands, armR: 110 * hands + (k.armR || 0) * (1 - hands), shut: blinking(q, [1.9, 5.4, 9.1, 13.8, 18.7, 24.1, 28.3, 32.0]),
+ mouth: q >= s4v('s15') ? lips(q, 'scene4', PRE4, 's15') === 'X' ? 'O' : lips(q, 'scene4', PRE4, 's15') : 'O',
+ brow: 1.2 * span(q, S4.storm0 + .5, S4.storm0 + 1.2) + .3, lids: 0, squash: 0, bob: k.bob || 0, headR: q > S4.storm1 && hands === 0 ? -7 : hands > 0 ? 5 * onTwos(q) * (hands < 1 ? 1 : 0) : 0 }, f);
+ // Indian man: agape, then a shrug behind the two-shot
+ const shrug = s4k(q, [[26.4, 0], [26.8, 60], [28.2, 60], [28.6, 0]]);
+ R.ind.pose({ x: mv ? cx - 730 : IND_X, y: FARM.ground, s: FARM.s, ...k, look: q >= S4.storm0 ? .5 : .6, eyeX: 1, eyeY: s4flick(q, 5),
+ armL: shrug || (k.armL || 0), armR: shrug || (k.armR || 0), headR: shrug > 30 ? 8 : 0,
+ shut: blinking(q, [3.6, 8.3, 15.1, 21.5, 26.2, 31.0]), mouth: shrug > 30 ? 'flat' : 'O', brow: .7 }, f);
+ });
+}
diff --git a/site/joke-collection/img/props/hay.webp b/site/joke-collection/img/props/hay.webp
new file mode 100644
index 0000000..7f066f4
Binary files /dev/null and b/site/joke-collection/img/props/hay.webp differ
diff --git a/site/joke-collection/img/puppets/0b325be5.webp b/site/joke-collection/img/puppets/0b325be5.webp
new file mode 100644
index 0000000..8c5f26a
Binary files /dev/null and b/site/joke-collection/img/puppets/0b325be5.webp differ
diff --git a/site/joke-collection/img/puppets/0be490bd.webp b/site/joke-collection/img/puppets/0be490bd.webp
new file mode 100644
index 0000000..772addc
Binary files /dev/null and b/site/joke-collection/img/puppets/0be490bd.webp differ
diff --git a/site/joke-collection/img/puppets/0d075977.webp b/site/joke-collection/img/puppets/0d075977.webp
new file mode 100644
index 0000000..e001765
Binary files /dev/null and b/site/joke-collection/img/puppets/0d075977.webp differ
diff --git a/site/joke-collection/img/puppets/2a8fcb2f.webp b/site/joke-collection/img/puppets/2a8fcb2f.webp
new file mode 100644
index 0000000..edd17f4
Binary files /dev/null and b/site/joke-collection/img/puppets/2a8fcb2f.webp differ
diff --git a/site/joke-collection/img/puppets/2b65ee19.webp b/site/joke-collection/img/puppets/2b65ee19.webp
new file mode 100644
index 0000000..f3e0bdb
Binary files /dev/null and b/site/joke-collection/img/puppets/2b65ee19.webp differ
diff --git a/site/joke-collection/img/puppets/35f370ad.webp b/site/joke-collection/img/puppets/35f370ad.webp
new file mode 100644
index 0000000..16a5269
Binary files /dev/null and b/site/joke-collection/img/puppets/35f370ad.webp differ
diff --git a/site/joke-collection/img/puppets/3b87b70c.webp b/site/joke-collection/img/puppets/3b87b70c.webp
new file mode 100644
index 0000000..ea0fc15
Binary files /dev/null and b/site/joke-collection/img/puppets/3b87b70c.webp differ
diff --git a/site/joke-collection/img/puppets/457bac26.webp b/site/joke-collection/img/puppets/457bac26.webp
new file mode 100644
index 0000000..e307545
Binary files /dev/null and b/site/joke-collection/img/puppets/457bac26.webp differ
diff --git a/site/joke-collection/img/puppets/4a50ee8c.webp b/site/joke-collection/img/puppets/4a50ee8c.webp
new file mode 100644
index 0000000..dac4f00
Binary files /dev/null and b/site/joke-collection/img/puppets/4a50ee8c.webp differ
diff --git a/site/joke-collection/img/puppets/4b18dc04.webp b/site/joke-collection/img/puppets/4b18dc04.webp
new file mode 100644
index 0000000..63fcf8e
Binary files /dev/null and b/site/joke-collection/img/puppets/4b18dc04.webp differ
diff --git a/site/joke-collection/img/puppets/517198da.webp b/site/joke-collection/img/puppets/517198da.webp
new file mode 100644
index 0000000..dc00cd5
Binary files /dev/null and b/site/joke-collection/img/puppets/517198da.webp differ
diff --git a/site/joke-collection/img/puppets/5ac6e9b8.webp b/site/joke-collection/img/puppets/5ac6e9b8.webp
new file mode 100644
index 0000000..dfa1cfd
Binary files /dev/null and b/site/joke-collection/img/puppets/5ac6e9b8.webp differ
diff --git a/site/joke-collection/img/puppets/61f7188a.webp b/site/joke-collection/img/puppets/61f7188a.webp
new file mode 100644
index 0000000..e662c31
Binary files /dev/null and b/site/joke-collection/img/puppets/61f7188a.webp differ
diff --git a/site/joke-collection/img/puppets/6342691e.webp b/site/joke-collection/img/puppets/6342691e.webp
new file mode 100644
index 0000000..df84a00
Binary files /dev/null and b/site/joke-collection/img/puppets/6342691e.webp differ
diff --git a/site/joke-collection/img/puppets/6863b6d6.webp b/site/joke-collection/img/puppets/6863b6d6.webp
new file mode 100644
index 0000000..2119fc7
Binary files /dev/null and b/site/joke-collection/img/puppets/6863b6d6.webp differ
diff --git a/site/joke-collection/img/puppets/76afd053.webp b/site/joke-collection/img/puppets/76afd053.webp
new file mode 100644
index 0000000..9e81154
Binary files /dev/null and b/site/joke-collection/img/puppets/76afd053.webp differ
diff --git a/site/joke-collection/img/puppets/7b636f93.webp b/site/joke-collection/img/puppets/7b636f93.webp
new file mode 100644
index 0000000..3cd59d5
Binary files /dev/null and b/site/joke-collection/img/puppets/7b636f93.webp differ
diff --git a/site/joke-collection/img/puppets/83d8688f.webp b/site/joke-collection/img/puppets/83d8688f.webp
new file mode 100644
index 0000000..fe9375d
Binary files /dev/null and b/site/joke-collection/img/puppets/83d8688f.webp differ
diff --git a/site/joke-collection/img/puppets/8619dfee.webp b/site/joke-collection/img/puppets/8619dfee.webp
new file mode 100644
index 0000000..2e43c72
Binary files /dev/null and b/site/joke-collection/img/puppets/8619dfee.webp differ
diff --git a/site/joke-collection/img/puppets/86dfe479.webp b/site/joke-collection/img/puppets/86dfe479.webp
new file mode 100644
index 0000000..63182f2
Binary files /dev/null and b/site/joke-collection/img/puppets/86dfe479.webp differ
diff --git a/site/joke-collection/img/puppets/8700eb94.webp b/site/joke-collection/img/puppets/8700eb94.webp
new file mode 100644
index 0000000..527fc72
Binary files /dev/null and b/site/joke-collection/img/puppets/8700eb94.webp differ
diff --git a/site/joke-collection/img/puppets/8ac27d82.webp b/site/joke-collection/img/puppets/8ac27d82.webp
new file mode 100644
index 0000000..f1a6e9a
Binary files /dev/null and b/site/joke-collection/img/puppets/8ac27d82.webp differ
diff --git a/site/joke-collection/img/puppets/8e119cca.webp b/site/joke-collection/img/puppets/8e119cca.webp
new file mode 100644
index 0000000..40dc32c
Binary files /dev/null and b/site/joke-collection/img/puppets/8e119cca.webp differ
diff --git a/site/joke-collection/img/puppets/8e1d92b1.webp b/site/joke-collection/img/puppets/8e1d92b1.webp
new file mode 100644
index 0000000..926000e
Binary files /dev/null and b/site/joke-collection/img/puppets/8e1d92b1.webp differ
diff --git a/site/joke-collection/img/puppets/96c9c2e5.webp b/site/joke-collection/img/puppets/96c9c2e5.webp
new file mode 100644
index 0000000..0df0b42
Binary files /dev/null and b/site/joke-collection/img/puppets/96c9c2e5.webp differ
diff --git a/site/joke-collection/img/puppets/a46a1837.webp b/site/joke-collection/img/puppets/a46a1837.webp
new file mode 100644
index 0000000..366fc5b
Binary files /dev/null and b/site/joke-collection/img/puppets/a46a1837.webp differ
diff --git a/site/joke-collection/img/puppets/a5b509dd.webp b/site/joke-collection/img/puppets/a5b509dd.webp
new file mode 100644
index 0000000..6a8528f
Binary files /dev/null and b/site/joke-collection/img/puppets/a5b509dd.webp differ
diff --git a/site/joke-collection/img/puppets/b970efff.webp b/site/joke-collection/img/puppets/b970efff.webp
new file mode 100644
index 0000000..49dbf2a
Binary files /dev/null and b/site/joke-collection/img/puppets/b970efff.webp differ
diff --git a/site/joke-collection/img/puppets/b9eb5366.webp b/site/joke-collection/img/puppets/b9eb5366.webp
new file mode 100644
index 0000000..350b250
Binary files /dev/null and b/site/joke-collection/img/puppets/b9eb5366.webp differ
diff --git a/site/joke-collection/img/puppets/baked.js b/site/joke-collection/img/puppets/baked.js
index 25872ca..a9904b1 100644
--- a/site/joke-collection/img/puppets/baked.js
+++ b/site/joke-collection/img/puppets/baked.js
@@ -1 +1 @@
-window.BAKED = {"f0e2b031": "f0e2b031.webp", "124b5f31": "124b5f31.webp", "0d6134f9": "0d6134f9.webp", "a457f521": "a457f521.webp", "d28ec985": "d28ec985.webp", "03c68b5a": "03c68b5a.webp", "ebb471fa": "ebb471fa.webp", "6aa2c9f0": "6aa2c9f0.webp", "7727d770": "7727d770.webp", "b1bba1ca": "b1bba1ca.webp", "b15d03b3": "b15d03b3.webp", "46d33b12": "46d33b12.webp", "ebc38456": "ebc38456.webp", "69e4ff32": "69e4ff32.webp", "a45377e3": "a45377e3.webp", "a3e8b09b": "a3e8b09b.webp", "94308d71": "94308d71.webp", "6aa24676": "6aa24676.webp", "c26aa82e": "c26aa82e.webp", "5814fc79": "5814fc79.webp", "f692b475": "f692b475.webp", "b1676e6c": "b1676e6c.webp", "1a5c60bb": "1a5c60bb.webp", "b445b18f": "b445b18f.webp", "52999469": "52999469.webp", "42025885": "42025885.webp", "5d270884": "5d270884.webp", "abee4c66": "abee4c66.webp", "a3c3fd04": "a3c3fd04.webp", "e9388cee": "e9388cee.webp", "b8df4825": "b8df4825.webp", "5e6a1ad9": "5e6a1ad9.webp", "99012789": "99012789.webp", "13be1416": "13be1416.webp", "0350b307": "0350b307.webp", "1acc237c": "1acc237c.webp", "2dbe309c": "2dbe309c.webp", "b7a25c1a": "b7a25c1a.webp", "f039a696": "f039a696.webp", "0c1d51d0": "0c1d51d0.webp", "5a381261": "5a381261.webp", "5b8192de": "5b8192de.webp", "a8a1631f": "a8a1631f.webp", "c867c2bc": "c867c2bc.webp", "60dc68f7": "60dc68f7.webp", "419ba86b": "419ba86b.webp", "d2f420e7": "d2f420e7.webp", "e1f413c7": "e1f413c7.webp", "ab40532c": "ab40532c.webp", "fb885bbf": "fb885bbf.webp", "85c7ab4d": "85c7ab4d.webp", "c4c607a6": "c4c607a6.webp", "8aba41ce": "8aba41ce.webp", "2f966492": "2f966492.webp", "f0fa69c1": "f0fa69c1.webp", "57f5857f": "57f5857f.webp", "17f77aa8": "17f77aa8.webp", "fc38e90e": "fc38e90e.webp", "bbcbf5cf": "bbcbf5cf.webp", "4c7beb8d": "4c7beb8d.webp", "3efa3000": "3efa3000.webp", "2905b9e3": "2905b9e3.webp", "2f5d3cf3": "2f5d3cf3.webp", "0104ccb2": "0104ccb2.webp", "8fc29343": "8fc29343.webp", "9a4f7476": "9a4f7476.webp", "2c8bb592": "2c8bb592.webp", "d4fbb7e0": "d4fbb7e0.webp", "670aff5c": "670aff5c.webp", "31da6bc7": "31da6bc7.webp", "60d9342c": "60d9342c.webp", "1741e580": "1741e580.webp", "429b48d1": "429b48d1.webp", "96cfe19e": "96cfe19e.webp", "62b75d9c": "62b75d9c.webp", "666f08a0": "666f08a0.webp", "7ffe606e": "7ffe606e.webp", "5622e8b6": "5622e8b6.webp", "7a172edc": "7a172edc.webp", "523ca076": "523ca076.webp", "4d0ca735": "4d0ca735.webp", "d0c32627": "d0c32627.webp", "eacc874b": "eacc874b.webp", "98c1d29b": "98c1d29b.webp", "bdc7df1e": "bdc7df1e.webp", "d820935e": "d820935e.webp", "101c8d3e": "101c8d3e.webp", "4c43f571": "4c43f571.webp", "bd535b5d": "bd535b5d.webp", "ccad6309": "ccad6309.webp", "fe16e4fb": "fe16e4fb.webp", "21e90356": "21e90356.webp", "38ce736c": "38ce736c.webp", "ab2a4457": "ab2a4457.webp", "96b31089": "96b31089.webp", "a8faa710": "a8faa710.webp", "da33b9dd": "da33b9dd.webp", "f892d758": "f892d758.webp", "9b806969": "9b806969.webp"};
+window.BAKED = {"f0e2b031": "f0e2b031.webp", "124b5f31": "124b5f31.webp", "0d6134f9": "0d6134f9.webp", "a457f521": "a457f521.webp", "d28ec985": "d28ec985.webp", "03c68b5a": "03c68b5a.webp", "ebb471fa": "ebb471fa.webp", "6aa2c9f0": "6aa2c9f0.webp", "7727d770": "7727d770.webp", "b1bba1ca": "b1bba1ca.webp", "b15d03b3": "b15d03b3.webp", "46d33b12": "46d33b12.webp", "ebc38456": "ebc38456.webp", "69e4ff32": "69e4ff32.webp", "a45377e3": "a45377e3.webp", "a3e8b09b": "a3e8b09b.webp", "94308d71": "94308d71.webp", "6aa24676": "6aa24676.webp", "c26aa82e": "c26aa82e.webp", "5814fc79": "5814fc79.webp", "f692b475": "f692b475.webp", "b1676e6c": "b1676e6c.webp", "1a5c60bb": "1a5c60bb.webp", "b445b18f": "b445b18f.webp", "52999469": "52999469.webp", "42025885": "42025885.webp", "5d270884": "5d270884.webp", "abee4c66": "abee4c66.webp", "a3c3fd04": "a3c3fd04.webp", "e9388cee": "e9388cee.webp", "b8df4825": "b8df4825.webp", "5e6a1ad9": "5e6a1ad9.webp", "99012789": "99012789.webp", "13be1416": "13be1416.webp", "0350b307": "0350b307.webp", "1acc237c": "1acc237c.webp", "2dbe309c": "2dbe309c.webp", "b7a25c1a": "b7a25c1a.webp", "f039a696": "f039a696.webp", "0c1d51d0": "0c1d51d0.webp", "5a381261": "5a381261.webp", "5b8192de": "5b8192de.webp", "a8a1631f": "a8a1631f.webp", "c867c2bc": "c867c2bc.webp", "60dc68f7": "60dc68f7.webp", "419ba86b": "419ba86b.webp", "d2f420e7": "d2f420e7.webp", "e1f413c7": "e1f413c7.webp", "ab40532c": "ab40532c.webp", "fb885bbf": "fb885bbf.webp", "85c7ab4d": "85c7ab4d.webp", "c4c607a6": "c4c607a6.webp", "8aba41ce": "8aba41ce.webp", "2f966492": "2f966492.webp", "f0fa69c1": "f0fa69c1.webp", "57f5857f": "57f5857f.webp", "17f77aa8": "17f77aa8.webp", "fc38e90e": "fc38e90e.webp", "bbcbf5cf": "bbcbf5cf.webp", "4c7beb8d": "4c7beb8d.webp", "3efa3000": "3efa3000.webp", "2905b9e3": "2905b9e3.webp", "2f5d3cf3": "2f5d3cf3.webp", "0104ccb2": "0104ccb2.webp", "8fc29343": "8fc29343.webp", "9a4f7476": "9a4f7476.webp", "2c8bb592": "2c8bb592.webp", "d4fbb7e0": "d4fbb7e0.webp", "670aff5c": "670aff5c.webp", "31da6bc7": "31da6bc7.webp", "60d9342c": "60d9342c.webp", "1741e580": "1741e580.webp", "429b48d1": "429b48d1.webp", "96cfe19e": "96cfe19e.webp", "62b75d9c": "62b75d9c.webp", "666f08a0": "666f08a0.webp", "7ffe606e": "7ffe606e.webp", "5622e8b6": "5622e8b6.webp", "7a172edc": "7a172edc.webp", "523ca076": "523ca076.webp", "4d0ca735": "4d0ca735.webp", "d0c32627": "d0c32627.webp", "eacc874b": "eacc874b.webp", "98c1d29b": "98c1d29b.webp", "bdc7df1e": "bdc7df1e.webp", "d820935e": "d820935e.webp", "101c8d3e": "101c8d3e.webp", "4c43f571": "4c43f571.webp", "bd535b5d": "bd535b5d.webp", "ccad6309": "ccad6309.webp", "fe16e4fb": "fe16e4fb.webp", "21e90356": "21e90356.webp", "38ce736c": "38ce736c.webp", "ab2a4457": "ab2a4457.webp", "96b31089": "96b31089.webp", "a8faa710": "a8faa710.webp", "da33b9dd": "da33b9dd.webp", "f892d758": "f892d758.webp", "9b806969": "9b806969.webp", "c5b07bc1": "c5b07bc1.webp", "fed95569": "fed95569.webp", "dc192ce9": "dc192ce9.webp", "8619dfee": "8619dfee.webp", "517198da": "517198da.webp", "a46a1837": "a46a1837.webp", "8700eb94": "8700eb94.webp", "b970efff": "b970efff.webp", "4a50ee8c": "4a50ee8c.webp", "d2ce2072": "d2ce2072.webp", "83d8688f": "83d8688f.webp", "5ac6e9b8": "5ac6e9b8.webp", "61f7188a": "61f7188a.webp", "6342691e": "6342691e.webp", "8e1d92b1": "8e1d92b1.webp", "6863b6d6": "6863b6d6.webp", "8e119cca": "8e119cca.webp", "3b87b70c": "3b87b70c.webp", "76afd053": "76afd053.webp", "c1195262": "c1195262.webp", "4b18dc04": "4b18dc04.webp", "96c9c2e5": "96c9c2e5.webp", "faa47c6e": "faa47c6e.webp", "86dfe479": "86dfe479.webp", "457bac26": "457bac26.webp", "0be490bd": "0be490bd.webp", "2a8fcb2f": "2a8fcb2f.webp", "2b65ee19": "2b65ee19.webp", "8ac27d82": "8ac27d82.webp", "a5b509dd": "a5b509dd.webp", "c37bd40c": "c37bd40c.webp", "db8bd465": "db8bd465.webp", "0d075977": "0d075977.webp", "0b325be5": "0b325be5.webp", "d0358b33": "d0358b33.webp", "fad2fad4": "fad2fad4.webp", "b9eb5366": "b9eb5366.webp", "7b636f93": "7b636f93.webp", "35f370ad": "35f370ad.webp", "ef50fa69": "ef50fa69.webp"};
diff --git a/site/joke-collection/img/puppets/c1195262.webp b/site/joke-collection/img/puppets/c1195262.webp
new file mode 100644
index 0000000..2575efa
Binary files /dev/null and b/site/joke-collection/img/puppets/c1195262.webp differ
diff --git a/site/joke-collection/img/puppets/c37bd40c.webp b/site/joke-collection/img/puppets/c37bd40c.webp
new file mode 100644
index 0000000..4c146fe
Binary files /dev/null and b/site/joke-collection/img/puppets/c37bd40c.webp differ
diff --git a/site/joke-collection/img/puppets/c5b07bc1.webp b/site/joke-collection/img/puppets/c5b07bc1.webp
new file mode 100644
index 0000000..e754213
Binary files /dev/null and b/site/joke-collection/img/puppets/c5b07bc1.webp differ
diff --git a/site/joke-collection/img/puppets/d0358b33.webp b/site/joke-collection/img/puppets/d0358b33.webp
new file mode 100644
index 0000000..501aeea
Binary files /dev/null and b/site/joke-collection/img/puppets/d0358b33.webp differ
diff --git a/site/joke-collection/img/puppets/d2ce2072.webp b/site/joke-collection/img/puppets/d2ce2072.webp
new file mode 100644
index 0000000..6e27986
Binary files /dev/null and b/site/joke-collection/img/puppets/d2ce2072.webp differ
diff --git a/site/joke-collection/img/puppets/db8bd465.webp b/site/joke-collection/img/puppets/db8bd465.webp
new file mode 100644
index 0000000..5a36c62
Binary files /dev/null and b/site/joke-collection/img/puppets/db8bd465.webp differ
diff --git a/site/joke-collection/img/puppets/dc192ce9.webp b/site/joke-collection/img/puppets/dc192ce9.webp
new file mode 100644
index 0000000..21f6bef
Binary files /dev/null and b/site/joke-collection/img/puppets/dc192ce9.webp differ
diff --git a/site/joke-collection/img/puppets/ef50fa69.webp b/site/joke-collection/img/puppets/ef50fa69.webp
new file mode 100644
index 0000000..cd75ca9
Binary files /dev/null and b/site/joke-collection/img/puppets/ef50fa69.webp differ
diff --git a/site/joke-collection/img/puppets/faa47c6e.webp b/site/joke-collection/img/puppets/faa47c6e.webp
new file mode 100644
index 0000000..39cc406
Binary files /dev/null and b/site/joke-collection/img/puppets/faa47c6e.webp differ
diff --git a/site/joke-collection/img/puppets/fad2fad4.webp b/site/joke-collection/img/puppets/fad2fad4.webp
new file mode 100644
index 0000000..9af74fd
Binary files /dev/null and b/site/joke-collection/img/puppets/fad2fad4.webp differ
diff --git a/site/joke-collection/img/puppets/fed95569.webp b/site/joke-collection/img/puppets/fed95569.webp
new file mode 100644
index 0000000..ac42444
Binary files /dev/null and b/site/joke-collection/img/puppets/fed95569.webp differ
diff --git a/site/joke-collection/img/sets/road/bg-soft.webp b/site/joke-collection/img/sets/road/bg-soft.webp
new file mode 100644
index 0000000..cf12026
Binary files /dev/null and b/site/joke-collection/img/sets/road/bg-soft.webp differ
diff --git a/site/joke-collection/img/sets/road/bg.webp b/site/joke-collection/img/sets/road/bg.webp
new file mode 100644
index 0000000..6d4a9ca
Binary files /dev/null and b/site/joke-collection/img/sets/road/bg.webp differ
diff --git a/site/joke-collection/img/sets/road2/bg-soft.webp b/site/joke-collection/img/sets/road2/bg-soft.webp
new file mode 100644
index 0000000..3b58a51
Binary files /dev/null and b/site/joke-collection/img/sets/road2/bg-soft.webp differ
diff --git a/site/joke-collection/img/sets/road2/bg.webp b/site/joke-collection/img/sets/road2/bg.webp
new file mode 100644
index 0000000..b39ea09
Binary files /dev/null and b/site/joke-collection/img/sets/road2/bg.webp differ
diff --git a/site/joke-collection/img/sets/sets.js b/site/joke-collection/img/sets/sets.js
index f90c758..f111a35 100644
--- a/site/joke-collection/img/sets/sets.js
+++ b/site/joke-collection/img/sets/sets.js
@@ -1 +1 @@
-window.SETS = {"town": [{"name": "ground", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "stall": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}, {"name": "rain", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}, {"name": "snow", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}, {"name": "cart", "k": 1, "box": [1010, 386, 470, 414], "soft": true}], "classBack": [{"name": "wall", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "classFront": [{"name": "wall", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}, {"name": "desk", "k": 1, "box": [1020, 568, 400, 337], "soft": true}], "loo": [{"name": "wall", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "street": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "shop": [{"name": "wall", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}, {"name": "counter", "k": 1, "box": [750, 406, 820, 394], "soft": true}]};
+window.SETS = {"town": [{"name": "ground", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "stall": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}, {"name": "rain", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}, {"name": "snow", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}, {"name": "cart", "k": 1, "box": [1010, 386, 470, 414], "soft": true}], "classBack": [{"name": "wall", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "classFront": [{"name": "wall", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}, {"name": "desk", "k": 1, "box": [1020, 568, 400, 337], "soft": true}], "loo": [{"name": "wall", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "street": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "shop": [{"name": "wall", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}, {"name": "counter", "k": 1, "box": [750, 406, 820, 394], "soft": true}], "road": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "road2": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}]};
diff --git a/site/joke-collection/index.html b/site/joke-collection/index.html
index 9caedb0..a48157a 100644
--- a/site/joke-collection/index.html
+++ b/site/joke-collection/index.html
@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Joke Collection</title>
-<meta name="description" content="Short animated jokes: painted sets from an image model, paper puppets moved by code. Two episodes so far, and how they were made.">
+<meta name="description" content="Short animated jokes: painted sets from an image model, paper puppets moved by code. Three episodes so far, and how they were made.">
<style>
:root { --ink: #2f2418; --soft: #6b5a46; --paper: #fbf5e8; --card: #fffaf0; --line: #e4d6bb; --accent: #2f5aa8; --ui: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif; --serif: "Iowan Old Style", Palatino, Georgia, serif; color-scheme: light; }
* { box-sizing: border-box; }
@@ -57,6 +57,7 @@
<p class="lede">Little jokes, a couple of minutes each. The third way we've tried to make picture books, and the one we're keeping: an image model paints every set and everything that stays still, and paper puppets drawn in code do all the moving.</p>
<a class="watch" href="ch01/">▶ Episode 1 <small>Breakfast in the Bathroom · 2 minutes</small></a>
<a class="watch" href="ch02/">▶ Episode 2 <small>Do You Need a Bag? · 2 minutes</small></a>
+ <a class="watch" href="ch03/">▶ Episode 3 <small>How to Move a Cow · 2 minutes</small></a>
</div>
</header>
@@ -65,6 +66,7 @@
<ul class="episodes">
<li><a href="ch01/"><b>1 · Breakfast in the Bathroom</b><span>Seventh grade. My deskmate had two questions for me, and one morning he asked them both at once. A true story.</span></a></li>
<li><a href="ch02/"><b>2 · Do You Need a Bag?</b><span>A convenience store in Fukuoka. A clerk who speaks no English, a customer who speaks no Japanese, and me in line behind them with a hundred-yen coffee. Also true.</span></a></li>
+ <li><a href="ch03/"><b>3 · How to Move a Cow</b><span>A Chinese man, an Indian man and an American are stuck behind a cow that won't budge. Each has his own way to make it walk. An old joke, with a newer ending.</span></a></li>
<li class="soon">More jokes coming.</li>
</ul>
@@ -78,6 +80,9 @@
<img src="making/ep2-street.webp" width="800" height="450" alt="Episode 2: walking into the Happy Mart at dusk." loading="lazy">
<img src="making/ep2-veggie.webp" width="800" height="450" alt="Episode 2: the customer hears 'reji' as 'veggie'." loading="lazy">
<img src="making/ep2-exchange.webp" width="800" height="450" alt="Episode 2: the clerk wonders if she wants to change dollars into yen." loading="lazy">
+ <img src="making/ep3-road.webp" width="800" height="450" alt="Episode 3: three men and a cow that won't move, on a country road." loading="lazy">
+ <img src="making/ep3-hay.webp" width="800" height="450" alt="Episode 3: the cow walks after hay hung from a fishing rod tied to its own back." loading="lazy">
+ <img src="making/ep3-flat.webp" width="800" height="450" alt="Episode 3: the cow gives up and lies flat in the road." loading="lazy">
</div>
<h2>Two ways, then a third</h2>
@@ -106,12 +111,15 @@
<h3>Episode 2, made in one night</h3>
<p>For the second joke, the user told the story at bedtime and handed over: a fresh session read this method, wrote the script, painted two sets (the store outside and in), a counter to stand behind and three props, built three new puppets and four scenes, and checked them, all before morning. The clerk's Japanese is spoken in Japanese with English subtitles, so the audience understands both sides while neither character does. Its painting cost $0.13.</p>
+ <h3>Episode 3, made with the Skill</h3>
+ <p>The third joke was the test of the Papermorph Skill itself. A new session started from nothing but the Skill and the joke, asked a few questions (which language each man speaks, whether English viewers need "lying flat" explained), wrote the script, painted two country roads and a bundle of hay, built a cow and three new puppets, and checked its own work. Each man speaks his own language, Mandarin, Hindi and English, with English subtitles. Its painting cost $0.07.</p>
+
<h2>The numbers</h2>
<div class="numbers">
- <div><b>2</b><span>episodes, about 2 minutes each</span></div>
- <div><b>~27</b><span>painted pictures</span></div>
- <div><b>$0.53</b><span>for all the painting</span></div>
- <div><b>7</b><span>painted sets</span></div>
+ <div><b>3</b><span>episodes, about 2 minutes each</span></div>
+ <div><b>~30</b><span>painted pictures</span></div>
+ <div><b>$0.60</b><span>for all the painting</span></div>
+ <div><b>9</b><span>painted sets</span></div>
</div>
<div class="verdict">
<p><b>Why we're keeping this one.</b> The paintings carry the look, the puppets carry the acting, and neither has to do the other's job. The sets and props carry over to the next joke. This is the method we're building the Papermorph Skill's picture books on.</p>
diff --git a/site/joke-collection/making/ep3-flat.webp b/site/joke-collection/making/ep3-flat.webp
new file mode 100644
index 0000000..98e95fb
Binary files /dev/null and b/site/joke-collection/making/ep3-flat.webp differ
diff --git a/site/joke-collection/making/ep3-hay.webp b/site/joke-collection/making/ep3-hay.webp
new file mode 100644
index 0000000..7f960ac
Binary files /dev/null and b/site/joke-collection/making/ep3-hay.webp differ
diff --git a/site/joke-collection/making/ep3-road.webp b/site/joke-collection/making/ep3-road.webp
new file mode 100644
index 0000000..c112a9f
Binary files /dev/null and b/site/joke-collection/making/ep3-road.webp differ