An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
feat(site): Joke Collection episode 6, Four Dogs
yzrca47a72a73ab
diff --git a/site/index.html b/site/index.htmlindex 6432c22..02d4510 100644--- a/site/index.html+++ b/site/index.html@@ -38,7 +38,7 @@<a class="book-hotspot red-book" data-book="little-red-riding-hood" href="little-red-riding-hood/" aria-label="Open Little Red Riding Hood, a paper-cutout stop-motion picture book and how it was made"><span class="book-caption"><strong>Little Red Riding Hood <span aria-hidden="true">↗</span></strong><small>Paper-cutout stop motion · how it was made</small></span></a>- <a class="book-hotspot joke-book" data-book="joke-collection" href="joke-collection/" aria-label="Open Joke Collection, short animated jokes, five episodes">+ <a class="book-hotspot joke-book" data-book="joke-collection" href="joke-collection/" aria-label="Open Joke Collection, short animated jokes, six episodes"><span class="book-caption"><strong>Joke Collection <span aria-hidden="true">↗</span></strong><small>4 episodes · how they were made</small></span></a></section>diff --git a/site/joke-collection/ch05/index.html b/site/joke-collection/ch05/index.htmlindex 71a8dc4..740de92 100644--- a/site/joke-collection/ch05/index.html+++ b/site/joke-collection/ch05/index.html@@ -25,7 +25,7 @@<script src="scene4.js"></script><script>'use strict';-const CHAPTER = { number: 5, title: 'The Penguin and the Zoo', minutes: 2, language: 'en' };+const CHAPTER = { number: 5, title: 'The Penguin and the Zoo', minutes: 2, language: 'en', next: '../ch06/' };try { if (localStorage.getItem('captions') === null) setCaptions(true); } catch {}/* ---------- beats: one per scene ---------- */diff --git a/site/joke-collection/ch06/audio/en/hush1.mp3 b/site/joke-collection/ch06/audio/en/hush1.mp3new file mode 100644index 0000000..aed8f22Binary files /dev/null and b/site/joke-collection/ch06/audio/en/hush1.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/hush2.mp3 b/site/joke-collection/ch06/audio/en/hush2.mp3new file mode 100644index 0000000..69c1780Binary files /dev/null and b/site/joke-collection/ch06/audio/en/hush2.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/hush3.mp3 b/site/joke-collection/ch06/audio/en/hush3.mp3new file mode 100644index 0000000..dab3463Binary files /dev/null and b/site/joke-collection/ch06/audio/en/hush3.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/hush4.mp3 b/site/joke-collection/ch06/audio/en/hush4.mp3new file mode 100644index 0000000..f9a2dacBinary files /dev/null and b/site/joke-collection/ch06/audio/en/hush4.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/mouths.js b/site/joke-collection/ch06/audio/en/mouths.jsnew file mode 100644index 0000000..5281e61--- /dev/null+++ b/site/joke-collection/ch06/audio/en/mouths.js@@ -0,0 +1 @@+window.MOUTHS = {"s01":[[0.222,"E"],[0.313,"B"],[0.404,"C"],[0.496,"C"],[0.587,"G"],[0.679,"C"],[0.771,"B"],[0.862,"C"],[0.954,"B"],[1.046,"X"],[1.173,"B"],[1.316,"C"],[1.459,"B"],[1.602,"E"],[1.746,"B"],[1.889,"B"],[1.967,"E"],[2.045,"B"],[2.123,"B"],[2.188,"E"],[2.253,"B"],[2.318,"C"],[2.384,"B"],[2.449,"C"],[2.514,"B"],[2.579,"B"],[2.631,"E"],[2.683,"B"],[2.764,"D"],[2.846,"H"],[2.927,"B"],[3.009,"D"],[3.07,"A"],[3.132,"F"],[3.194,"B"],[3.256,"D"],[3.334,"B"],[3.477,"E"],[3.621,"B"],[3.764,"H"],[3.901,"C"],[4.039,"G"],[4.139,"X"]],"s02":[[0.222,"D"],[0.3,"B"],[0.378,"D"],[0.447,"A"],[0.515,"C"],[0.583,"B"],[0.652,"C"],[0.72,"B"],[0.788,"D"],[0.857,"B"],[0.925,"B"],[1.109,"E"],[1.292,"B"],[1.347,"X"]],"s03":[[0.222,"D"],[0.365,"A"],[0.464,"E"],[0.563,"H"],[0.662,"C"],[0.761,"B"],[0.86,"B"],[1.043,"E"],[1.227,"B"],[1.28,"X"]],"s04":[[0.222,"D"],[0.352,"B"],[0.462,"E"],[0.572,"G"],[0.682,"C"],[0.792,"B"],[0.938,"B"],[1.122,"E"],[1.305,"B"],[1.378,"X"]],"s05":[[0.222,"D"],[0.32,"B"],[0.417,"D"],[0.482,"B"],[0.574,"C"],[0.666,"B"],[0.757,"C"],[0.849,"B"],[0.941,"C"],[1.042,"B"],[1.226,"E"],[1.409,"B"],[1.458,"X"]],"s06":[[0.222,"G"],[0.318,"F"],[0.413,"B"],[0.509,"B"],[0.692,"E"],[0.875,"B"],[1.059,"X"]],"s07":[[0.217,"A"],[0.312,"D"],[0.406,"B"],[0.5,"B"],[0.597,"E"],[0.695,"A"],[0.792,"C"],[0.889,"C"],[0.948,"G"],[1.007,"C"],[1.078,"F"],[1.149,"A"],[1.318,"D"],[1.487,"B"],[1.656,"D"],[1.715,"B"],[1.774,"B"],[1.841,"C"],[1.907,"A"],[1.974,"A"],[2.084,"D"],[2.194,"B"],[2.304,"C"],[2.414,"B"],[2.552,"B"],[2.625,"F"],[2.698,"B"],[2.771,"C"],[2.845,"B"],[2.918,"E"],[2.977,"B"],[3.036,"H"],[3.13,"D"],[3.224,"B"],[3.319,"C"],[3.413,"B"],[3.507,"B"],[3.554,"E"],[3.602,"A"],[3.649,"C"],[3.696,"A"],[3.743,"E"],[3.79,"B"],[3.837,"C"],[3.885,"B"],[3.971,"C"],[4.058,"B"],[4.144,"C"],[4.309,"F"],[4.474,"D"],[4.545,"B"],[4.616,"B"],[4.658,"C"],[4.701,"G"],[4.743,"C"],[4.786,"B"],[4.828,"C"],[4.881,"F"],[4.934,"A"],[5.117,"C"],[5.203,"X"]],"s08":[[0.217,"B"],[0.327,"F"],[0.437,"B"],[0.547,"C"],[0.657,"B"],[0.795,"E"],[0.883,"B"],[0.972,"H"],[1.082,"D"],[1.192,"B"],[1.302,"C"],[1.317,"X"]],"s09":[[0.226,"F"],[0.253,"B"],[0.28,"D"],[0.306,"B"],[0.333,"C"],[0.386,"B"],[0.439,"A"],[0.622,"C"],[0.745,"X"]],"s10":[[0.23,"F"],[0.293,"B"],[0.356,"D"],[0.419,"B"],[0.482,"C"],[0.572,"B"],[0.661,"A"],[0.771,"D"],[0.881,"B"],[0.991,"C"],[1.101,"B"],[1.211,"X"]],"s11":[[0.217,"A"],[0.327,"D"],[0.437,"B"],[0.547,"C"],[0.657,"B"],[0.767,"X"],[1.582,"C"],[1.718,"F"],[1.854,"B"],[2.129,"F"],[2.233,"X"]],"s12":[[0.228,"B"],[0.778,"X"]],"s13":[[0.228,"B"],[0.34,"E"],[0.451,"B"],[0.562,"A"],[0.746,"D"],[0.929,"B"],[1.217,"E"],[1.304,"B"],[1.391,"C"],[1.478,"F"],[1.565,"D"],[1.623,"B"],[1.682,"C"],[1.74,"B"],[1.798,"C"],[1.856,"A"],[2.039,"C"],[2.223,"B"],[2.241,"X"]]};diff --git a/site/joke-collection/ch06/audio/en/s01.mp3 b/site/joke-collection/ch06/audio/en/s01.mp3new file mode 100644index 0000000..b1d94adBinary files /dev/null and b/site/joke-collection/ch06/audio/en/s01.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/s02.mp3 b/site/joke-collection/ch06/audio/en/s02.mp3new file mode 100644index 0000000..36545d4Binary files /dev/null and b/site/joke-collection/ch06/audio/en/s02.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/s03.mp3 b/site/joke-collection/ch06/audio/en/s03.mp3new file mode 100644index 0000000..244ca32Binary files /dev/null and b/site/joke-collection/ch06/audio/en/s03.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/s04.mp3 b/site/joke-collection/ch06/audio/en/s04.mp3new file mode 100644index 0000000..df9669cBinary files /dev/null and b/site/joke-collection/ch06/audio/en/s04.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/s05.mp3 b/site/joke-collection/ch06/audio/en/s05.mp3new file mode 100644index 0000000..bda040bBinary files /dev/null and b/site/joke-collection/ch06/audio/en/s05.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/s06.mp3 b/site/joke-collection/ch06/audio/en/s06.mp3new file mode 100644index 0000000..bdca135Binary files /dev/null and b/site/joke-collection/ch06/audio/en/s06.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/s07.mp3 b/site/joke-collection/ch06/audio/en/s07.mp3new file mode 100644index 0000000..6b8900bBinary files /dev/null and b/site/joke-collection/ch06/audio/en/s07.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/s08.mp3 b/site/joke-collection/ch06/audio/en/s08.mp3new file mode 100644index 0000000..8363061Binary files /dev/null and b/site/joke-collection/ch06/audio/en/s08.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/s09.mp3 b/site/joke-collection/ch06/audio/en/s09.mp3new file mode 100644index 0000000..73321c6Binary files /dev/null and b/site/joke-collection/ch06/audio/en/s09.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/s10.mp3 b/site/joke-collection/ch06/audio/en/s10.mp3new file mode 100644index 0000000..234eed9Binary files /dev/null and b/site/joke-collection/ch06/audio/en/s10.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/s11.mp3 b/site/joke-collection/ch06/audio/en/s11.mp3new file mode 100644index 0000000..5dc64f2Binary files /dev/null and b/site/joke-collection/ch06/audio/en/s11.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/s12.mp3 b/site/joke-collection/ch06/audio/en/s12.mp3new file mode 100644index 0000000..d908e76Binary files /dev/null and b/site/joke-collection/ch06/audio/en/s12.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/s13.mp3 b/site/joke-collection/ch06/audio/en/s13.mp3new file mode 100644index 0000000..8cdbbafBinary files /dev/null and b/site/joke-collection/ch06/audio/en/s13.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/scene1.mp3 b/site/joke-collection/ch06/audio/en/scene1.mp3new file mode 100644index 0000000..01900fcBinary files /dev/null and b/site/joke-collection/ch06/audio/en/scene1.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/scene2.mp3 b/site/joke-collection/ch06/audio/en/scene2.mp3new file mode 100644index 0000000..d790b37Binary files /dev/null and b/site/joke-collection/ch06/audio/en/scene2.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/scene3.mp3 b/site/joke-collection/ch06/audio/en/scene3.mp3new file mode 100644index 0000000..58658b4Binary files /dev/null and b/site/joke-collection/ch06/audio/en/scene3.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/scene4.mp3 b/site/joke-collection/ch06/audio/en/scene4.mp3new file mode 100644index 0000000..b7075a7Binary files /dev/null and b/site/joke-collection/ch06/audio/en/scene4.mp3 differdiff --git a/site/joke-collection/ch06/audio/en/shots.js b/site/joke-collection/ch06/audio/en/shots.jsnew file mode 100644index 0000000..5139058--- /dev/null+++ b/site/joke-collection/ch06/audio/en/shots.js@@ -0,0 +1,11 @@+TIMINGS.scene1 = {"dur": 25.492, "marks": {}, "cues": [[0.222, "One evening, three dogs got together to talk about a dog's life.", 4.388], [5.588, "An American dog,", 6.962], [8.146, "a Polish dog,", 9.453], [10.608, "a Soviet dog,", 12.013], [14.366, "and a Chinese dog.", 15.851], [19.42, "Four dogs.", 20.556]], "parts": {"s01": 0, "s02": 5.366, "s03": 7.924, "s04": 10.386, "s05": 12.944, "s06": 16.798, "hush1": 21.492}};+TIMINGS.scene2 = {"dur": 25.012, "marks": {}, "cues": [[0.217, "Back home, if you bark,", 1.75], [2.656, "and keep barking,", 3.68], [5.752, "sooner or later,", 6.83], [7.507, "somebody hears you,", 8.6], [9.074, "and gives you meat!", 10.052], [20.746, "Sooner or later.", 22.092]], "parts": {"s07": 0, "s08": 13.526, "hush2": 23.012}};+TIMINGS.scene3 = {"dur": 20.876, "marks": {}, "cues": [[0.226, "What is meat?", 0.994], [10.452, "What is barking?", 11.803]], "parts": {"s09": 0, "s10": 2.222, "hush3": 12.876}};+TIMINGS.scene4 = {"dur": 31.438, "marks": {}, "cues": [[0.22, "Barking!", 0.966], [1.582, "You know...", 2.482], [5.178, "Shh.", 7.85], [9.6, "Don't bark, or you are the meat.", 12.6]], "parts": {"s11": 0, "s12": 4.95, "s13": 9.372, "hush4": 12.938}};+MOUTHS.s05 = [[0.049, "X"], [1.422, "D"], [1.52, "B"], [1.617, "D"], [1.682, "B"], [1.774, "C"], [1.866, "B"], [1.957, "C"], [2.049, "B"], [2.141, "C"], [2.242, "B"], [2.426, "E"], [2.609, "B"], [2.658, "X"]];+MOUTHS.s06 = [[0.049, "X"], [2.622, "G"], [2.718, "F"], [2.813, "B"], [2.909, "B"], [3.092, "E"], [3.275, "B"], [3.459, "X"]];+MOUTHS.s07 = [[0.217, "A"], [0.312, "D"], [0.406, "B"], [0.5, "B"], [0.597, "E"], [0.695, "A"], [0.792, "C"], [0.889, "C"], [0.948, "G"], [1.007, "C"], [1.078, "F"], [1.149, "A"], [1.318, "D"], [1.449, "X"], [2.487, "B"], [2.656, "D"], [2.715, "B"], [2.774, "B"], [2.841, "C"], [2.907, "A"], [2.974, "A"], [3.084, "D"], [3.194, "B"], [3.304, "C"], [3.379, "X"], [5.614, "B"], [5.752, "B"], [5.825, "F"], [5.898, "B"], [5.971, "C"], [6.045, "B"], [6.118, "E"], [6.177, "B"], [6.236, "H"], [6.33, "D"], [6.424, "B"], [6.519, "C"], [6.529, "X"], [7.413, "B"], [7.507, "B"], [7.554, "E"], [7.602, "A"], [7.649, "C"], [7.696, "A"], [7.743, "E"], [7.79, "B"], [7.837, "C"], [7.885, "B"], [7.971, "C"], [8.058, "B"], [8.144, "C"], [8.299, "X"], [8.909, "F"], [9.074, "D"], [9.145, "B"], [9.216, "B"], [9.258, "C"], [9.301, "G"], [9.343, "C"], [9.386, "B"], [9.428, "C"], [9.481, "F"], [9.534, "A"], [9.717, "C"], [9.803, "X"], [9.949, "X"]];+MOUTHS.s08 = [[0.049, "X"], [7.217, "B"], [7.327, "F"], [7.437, "B"], [7.547, "C"], [7.657, "B"], [7.795, "E"], [7.883, "B"], [7.972, "H"], [8.082, "D"], [8.192, "B"], [8.302, "C"], [8.317, "X"]];+MOUTHS.s10 = [[0.049, "X"], [8.23, "F"], [8.293, "B"], [8.356, "D"], [8.419, "B"], [8.482, "C"], [8.572, "B"], [8.661, "A"], [8.771, "D"], [8.881, "B"], [8.991, "C"], [9.101, "B"], [9.211, "X"]];+MOUTHS.s11 = [[0.217, "A"], [0.327, "D"], [0.437, "B"], [0.547, "C"], [0.657, "B"], [0.767, "X"], [1.582, "C"], [1.718, "F"], [1.854, "B"], [2.129, "F"], [2.233, "X"], [2.299, "X"]];+MOUTHS.s12 = [[0.228, "B"], [0.778, "X"], [0.999, "X"]];diff --git a/site/joke-collection/ch06/audio/en/timings.js b/site/joke-collection/ch06/audio/en/timings.jsnew file mode 100644index 0000000..d8065ce--- /dev/null+++ b/site/joke-collection/ch06/audio/en/timings.js@@ -0,0 +1,156 @@+window.TIMINGS = {+ "s01": {+ "dur": 5.016,+ "marks": {},+ "cues": [+ [+ 0.102,+ "One evening, three dogs got together to talk about a dog's life."+ ]+ ]+ },+ "s02": {+ "dur": 2.208,+ "marks": {},+ "cues": [+ [+ 0.102,+ "An American dog,"+ ]+ ]+ },+ "s03": {+ "dur": 2.112,+ "marks": {},+ "cues": [+ [+ 0.102,+ "a Polish dog,"+ ]+ ]+ },+ "s04": {+ "dur": 2.208,+ "marks": {},+ "cues": [+ [+ 0.102,+ "a Soviet dog,"+ ]+ ]+ },+ "s05": {+ "dur": 2.304,+ "marks": {},+ "cues": [+ [+ 0.102,+ "and a Chinese dog."+ ]+ ]+ },+ "s06": {+ "dur": 1.944,+ "marks": {},+ "cues": [+ [+ 0.102,+ "Four dogs."+ ]+ ]+ },+ "s07": {+ "dur": 5.976,+ "marks": {},+ "cues": [+ [+ 0.097,+ "Back home, if you bark, and keep barking, sooner or later, somebody hears you, and gives you meat!"+ ]+ ]+ },+ "s08": {+ "dur": 2.136,+ "marks": {},+ "cues": [+ [+ 0.097,+ "Sooner or later."+ ]+ ]+ },+ "s09": {+ "dur": 1.872,+ "marks": {},+ "cues": [+ [+ 0.106,+ "What is meat?"+ ]+ ]+ },+ "s10": {+ "dur": 2.304,+ "marks": {},+ "cues": [+ [+ 0.11,+ "What is barking?"+ ]+ ]+ },+ "s11": {+ "dur": 3.0,+ "marks": {},+ "cues": [+ [+ 0.097,+ "Barking!"+ ],+ [+ 1.462,+ "You know..."+ ]+ ]+ },+ "s12": {+ "dur": 1.872,+ "marks": {},+ "cues": [+ [+ 0.108,+ "Shh."+ ]+ ]+ },+ "s13": {+ "dur": 3.216,+ "marks": {},+ "cues": [+ [+ 0.108,+ "Don't bark, or you are the meat."+ ]+ ]+ },+ "hush1": {+ "dur": 4.0,+ "marks": {},+ "cues": []+ },+ "hush2": {+ "dur": 2.0,+ "marks": {},+ "cues": []+ },+ "hush3": {+ "dur": 8.0,+ "marks": {},+ "cues": []+ },+ "hush4": {+ "dur": 18.5,+ "marks": {},+ "cues": []+ }+};diff --git a/site/joke-collection/ch06/audio/sfx/bark-big.mp3 b/site/joke-collection/ch06/audio/sfx/bark-big.mp3new file mode 100644index 0000000..248fe5bBinary files /dev/null and b/site/joke-collection/ch06/audio/sfx/bark-big.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/bark-big2.mp3 b/site/joke-collection/ch06/audio/sfx/bark-big2.mp3new file mode 100644index 0000000..7a43793Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/bark-big2.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/bark-big3.mp3 b/site/joke-collection/ch06/audio/sfx/bark-big3.mp3new file mode 100644index 0000000..51e6030Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/bark-big3.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/bark.mp3 b/site/joke-collection/ch06/audio/sfx/bark.mp3new file mode 100644index 0000000..1851082Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/bark.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/chop.mp3 b/site/joke-collection/ch06/audio/sfx/chop.mp3new file mode 100644index 0000000..3dc45f7Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/chop.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/clang.mp3 b/site/joke-collection/ch06/audio/sfx/clang.mp3new file mode 100644index 0000000..d043397Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/clang.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/creak.mp3 b/site/joke-collection/ch06/audio/sfx/creak.mp3new file mode 100644index 0000000..8cf518cBinary files /dev/null and b/site/joke-collection/ch06/audio/sfx/creak.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/crickets.mp3 b/site/joke-collection/ch06/audio/sfx/crickets.mp3new file mode 100644index 0000000..bcf7ebbBinary files /dev/null and b/site/joke-collection/ch06/audio/sfx/crickets.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/flap.mp3 b/site/joke-collection/ch06/audio/sfx/flap.mp3new file mode 100644index 0000000..2b5b959Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/flap.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/growl.mp3 b/site/joke-collection/ch06/audio/sfx/growl.mp3new file mode 100644index 0000000..9426861Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/growl.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/gulp.mp3 b/site/joke-collection/ch06/audio/sfx/gulp.mp3new file mode 100644index 0000000..34bd838Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/gulp.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/inhale-short.mp3 b/site/joke-collection/ch06/audio/sfx/inhale-short.mp3new file mode 100644index 0000000..e3814d8Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/inhale-short.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/inhale.mp3 b/site/joke-collection/ch06/audio/sfx/inhale.mp3new file mode 100644index 0000000..e8a86f6Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/inhale.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/latch.mp3 b/site/joke-collection/ch06/audio/sfx/latch.mp3new file mode 100644index 0000000..ff988baBinary files /dev/null and b/site/joke-collection/ch06/audio/sfx/latch.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/patter1.mp3 b/site/joke-collection/ch06/audio/sfx/patter1.mp3new file mode 100644index 0000000..36c68ccBinary files /dev/null and b/site/joke-collection/ch06/audio/sfx/patter1.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/plop.mp3 b/site/joke-collection/ch06/audio/sfx/plop.mp3new file mode 100644index 0000000..9993ea5Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/plop.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/room.mp3 b/site/joke-collection/ch06/audio/sfx/room.mp3new file mode 100644index 0000000..4fe79e4Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/room.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/sash.mp3 b/site/joke-collection/ch06/audio/sfx/sash.mp3new file mode 100644index 0000000..7ec26ecBinary files /dev/null and b/site/joke-collection/ch06/audio/sfx/sash.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/scrape.mp3 b/site/joke-collection/ch06/audio/sfx/scrape.mp3new file mode 100644index 0000000..dfd0e10Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/scrape.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/shutter.mp3 b/site/joke-collection/ch06/audio/sfx/shutter.mp3new file mode 100644index 0000000..eef5a98Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/shutter.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/sniff.mp3 b/site/joke-collection/ch06/audio/sfx/sniff.mp3new file mode 100644index 0000000..87ce71eBinary files /dev/null and b/site/joke-collection/ch06/audio/sfx/sniff.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/step1.mp3 b/site/joke-collection/ch06/audio/sfx/step1.mp3new file mode 100644index 0000000..45737c4Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/step1.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/sting.mp3 b/site/joke-collection/ch06/audio/sfx/sting.mp3new file mode 100644index 0000000..af1219cBinary files /dev/null and b/site/joke-collection/ch06/audio/sfx/sting.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/thud.mp3 b/site/joke-collection/ch06/audio/sfx/thud.mp3new file mode 100644index 0000000..58ecb11Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/thud.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/tick.mp3 b/site/joke-collection/ch06/audio/sfx/tick.mp3new file mode 100644index 0000000..473ca36Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/tick.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/whoosh.mp3 b/site/joke-collection/ch06/audio/sfx/whoosh.mp3new file mode 100644index 0000000..06bef1dBinary files /dev/null and b/site/joke-collection/ch06/audio/sfx/whoosh.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/wind-pl.mp3 b/site/joke-collection/ch06/audio/sfx/wind-pl.mp3new file mode 100644index 0000000..9d776f0Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/wind-pl.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/wind-su.mp3 b/site/joke-collection/ch06/audio/sfx/wind-su.mp3new file mode 100644index 0000000..100cd8cBinary files /dev/null and b/site/joke-collection/ch06/audio/sfx/wind-su.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/wind.mp3 b/site/joke-collection/ch06/audio/sfx/wind.mp3new file mode 100644index 0000000..f314b47Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/wind.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/woof-mf.mp3 b/site/joke-collection/ch06/audio/sfx/woof-mf.mp3new file mode 100644index 0000000..9af8ed3Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/woof-mf.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/woof.mp3 b/site/joke-collection/ch06/audio/sfx/woof.mp3new file mode 100644index 0000000..76c4c54Binary files /dev/null and b/site/joke-collection/ch06/audio/sfx/woof.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/yip-cut.mp3 b/site/joke-collection/ch06/audio/sfx/yip-cut.mp3new file mode 100644index 0000000..40721baBinary files /dev/null and b/site/joke-collection/ch06/audio/sfx/yip-cut.mp3 differdiff --git a/site/joke-collection/ch06/audio/sfx/yip.mp3 b/site/joke-collection/ch06/audio/sfx/yip.mp3new file mode 100644index 0000000..c39223bBinary files /dev/null and b/site/joke-collection/ch06/audio/sfx/yip.mp3 differdiff --git a/site/joke-collection/ch06/dogs.js b/site/joke-collection/ch06/dogs.jsnew file mode 100644index 0000000..9a6ffc8--- /dev/null+++ b/site/joke-collection/ch06/dogs.js@@ -0,0 +1,407 @@+/* dogs.js — episode 6's kit ("Four Dogs"): the four dogs (side-on, on lib/cast.js's dogPuppet: the American, the+ Polish, the Soviet and the Chinese dog), the cardboard box the Chinese dog hides in, the kitchen back door with the+ cook's shadow chopping behind its frosted window, the steak and the bowl, the thought bubble; the alley and the three+ "back home" cutaways (USA, Poland, USSR), each built by one function so every shot of a place stages it the same way;+ the title card. The series helpers are in ../lib/shared.js, the puppets' base in ../lib/cast.js. */+'use strict';++/* ---------- the four dogs ----------+ dogPuppet pose keys (cast.js): x, y, s, dir (1 faces screen-right, -1 left), headR (+ up), jaw (0…1), tail, wag, ear+ (degrees; the pricked ears lie flat at EAR_FLAT, -100), shut, lids, eyeX (-1 back … 1 forward), sit (0…1), lie, walk, bob,+ tongue, sniff, hold ('bowl'), paw (near front paw raised, degrees), swell (0…1, a big breath in).+ Build them with these; give each its own size: US.s, PL.s, SU.s, CN.s. */+const PAPER = b => `<g filter="url(#paper)">${b}</g>`;+// The American dog: a big, well-fed golden retriever in a Stars-and-Stripes bandana, a gold tag on a navy collar.+const US_BREED = { coat: '#dc9548', far: '#bd7a36', dark: '#a8622a', muzzle: '#f0c890', collar: '#2f4a8a', torso: [90, 46], spot: '',+ neck: '<path d="M50,-110 L92,-100 L74,-62 Z" fill="#c8323a"/><path d="M60,-103 L86,-97 M64,-92 L82,-88 M68,-80 L78,-77" stroke="#fbfbf6" stroke-width="4"/>' ++ '<path d="M50,-110 L70,-106 L62,-90 Z" fill="#2f4a8a"/><circle cx="58" cy="-102" r="2" fill="#fff"/><circle cx="64" cy="-98" r="1.6" fill="#fff"/>' ++ '<circle cx="84" cy="-92" r="7" fill="#efc84a" stroke="#a8802a" stroke-width="2"/>',+ // the inside of his mouth: a barking mouth shows a mouth (turns half as far as the jaw)+ mouthIn: '<path d="M100,-102 L148,-114 Q158,-104 149,-92 Z" fill="#5a1418"/><ellipse cx="134" cy="-100" rx="10" ry="4" fill="#d9606a"/>' };+// The Polish dog: a skinny grey mutt, ribs showing, folded ear tips, a thin tail; carries his empty bowl in his mouth.+const PL_BREED = { coat: '#a8a090', far: '#8c8476', dark: '#6f675a', muzzle: '#cdc6b6', collar: 'none', torso: [72, 29],+ spot: '<ellipse cx="-46" cy="-92" rx="18" ry="11" fill="#7d7568"/>',+ body: '<path d="M-4,-108 q9,14 3,30 M12,-110 q9,14 3,30 M28,-109 q9,14 3,29" stroke="#7d7568" stroke-width="3.2" fill="none" stroke-linecap="round"/>',+ ear: 'M-16,6 C-16,-16 -6,-36 6,-44 C18,-46 26,-36 30,-24 C22,-30 16,-28 16,-20 C16,-8 18,0 16,6 Z',+ tail: 'M0,0 Q-30,-10 -44,-50 Q-37,-52 -31,-36 Q-20,-13 6,-6 Z' };+// The Soviet dog: a big dark shaggy shepherd in an ushanka with a red star, a leather basket muzzle (he has never+// barked: keep his jaw at most .2), the hat's brim low over his eye (stern).+const SU_BREED = { coat: '#5f5b58', far: '#47433f', dark: '#3b3734', muzzle: '#7d7873', collar: 'none', torso: [88, 44], spot: '', ear: 'M0,0 Z',+ body: '<path d="M-74,-116 l9,-14 l8,12 l10,-16 l8,14 l10,-14 l8,14 l10,-14 l8,14 l10,-12 l8,14 l10,-10" fill="none" stroke="#4a4643" stroke-width="6" stroke-linejoin="round"/>',+ hat: PAPER('<path d="M58,-150 Q50,-122 60,-102 L76,-106 Q70,-126 74,-148 Z" fill="#7c6650"/><path d="M56,-156 C54,-208 134,-208 132,-156 Z" fill="#6b5640"/>' ++ '<path d="M50,-158 Q94,-174 138,-158 L136,-147 Q94,-161 52,-147 Z" fill="#8f7a5c"/><path transform="translate(126,-168) scale(.62)" d="M0,-12 l3.5,8 l9,1 l-7,6 l2,9 l-7.5,-5 l-7.5,5 l2,-9 l-7,-6 l9,-1 Z" fill="#d83a2f"/>') ++ '<g fill="none" stroke="#5a3a20" stroke-width="4"><rect x="104" y="-134" width="56" height="42" rx="15"/><path d="M118,-134 v42 M133,-134 v42 M147,-132 v38" stroke-width="3"/><path d="M104,-122 L66,-140"/></g>' };+// The Chinese dog: a small cream-white village dog with dark tan ears and a tan saddle (nothing like the American's gold),+// pricked ears (flat when scared: ear EAR_FLAT), a worried brow (always: he knows), a curled tail. hold 'shh': a paw+// raised in front of his nose ("Shh.").+const CN_COL = { coat: '#f1e8d6', far: '#d6cab2', dark: '#b8783c', muzzle: '#fbf6ea' };+const CN_BREED = { ...CN_COL, collar: 'none', torso: [70, 34], ear: DOG_EARS.prick,+ spot: '<path d="M-58,-112 Q-20,-128 22,-116 Q8,-100 -24,-100 Q-48,-100 -58,-112 Z" fill="#c98f4e"/>',+ tail: 'M0,0 Q-30,-6 -40,-34 Q-46,-58 -26,-62 Q-10,-62 -14,-46 Q-26,-46 -24,-34 Q-18,-14 8,-8 Z',+ hat: '<path d="M88,-166 Q100,-164 116,-173" fill="none" stroke="#2a2220" stroke-width="4.5" stroke-linecap="round"/><path d="M122,-104 Q110,-103 100,-95" fill="none" stroke="#2a2220" stroke-width="3" stroke-linecap="round"/>' }; // a worried brow; the mouth's corner turned down+const EAR_FLAT = -100;+// The floppy ears (the American, the queue): + swings the ear back (EAR_BACK, for a bark or a fright); a negative ear+// swings it forward over the eye — don't.+const EAR_BACK = 40;+const shhPaw = PAPER(`<path d="M-4,70 C-6,30 2,-8 10,-26 Q18,-40 30,-31 Q35,-22 27,-8 C20,20 16,46 16,70 Z" fill="#e6dac2" stroke="#8a7656" stroke-width="2.5"/><path d="M15,-32 q5,7 2,14 M23,-33 q5,7 2,14" stroke="#8a7656" stroke-width="2.5" fill="none"/><ellipse cx="19" cy="-12" rx="6" ry="4" fill="#c98f8a"/>`);+// a bowl carried by its rim in the mouth (hold: 'bowl'); the steak (prop pieces)+const bowlHeld = artSVG('bowl', -34, -27, 68, 38), steakSVG = artSVG('steak', -70, -48, 140, 95), bowlSVG = artSVG('bowl', -45, -26, 90, 50);+// A shut eye reads as closed: a lash curve across it (a lid alone left an empty ring). Every dog of this episode.+function dogLash(pup) {+ const head = pup.g.querySelector('[data-p="head"]'), lash = mk('path', { d: 'M86,-143 Q100,-133 114,-143', fill: 'none', stroke: SP_INK, 'stroke-width': 4, 'stroke-linecap': 'round' }, head);+ const base = pup.pose; pup.pose = (o, f) => { base(o, f); vis(lash, !!o.shut); };+ return pup;+}+// the steak riding on the American's head (hold: 'steak'): it dips and bounces with his head+const steakOnHead = `<g transform="translate(-44,-80) rotate(-6)">${artSVG('steak', -62, -40, 124, 84)}</g>`;+const usDog = p => dogLash(dogPuppet(p, { breed: US_BREED, holds: { steak: steakOnHead } })), plDog = p => dogLash(dogPuppet(p, { breed: PL_BREED, holds: { bowl: bowlHeld } }));+const suDog = p => dogLash(dogPuppet(p, { breed: SU_BREED })), cnDog = p => dogLash(dogPuppet(p, { breed: CN_BREED, holds: { shh: shhPaw } }));+// The Polish dog licking his empty bowl on the ground (scene 3's opening): lying down, head bent into it, tongue out.+// Put the bowl at BOWL_AT (his ALLEY.pl). Lick strokes: jaw .25 ↔ .4 and headR −32 ↔ −26 on twos, with 'scrape'.+const PL_LICK = { lie: 'awake', headR: -30, tongue: true, jaw: .3 };+// The bowl on the ground in front of any dog's front paws (a pose): [x, y] for the queue's bowls.+const bowlAhead = o => [(o.x || 0) + (o.dir ?? 1) * (o.s ?? 1) * 150, o.y || 0];+const US = { s: 1.15 }, PL = { s: 1 }, SU = { s: 1.3 }, CN = { s: .8 };++// A dog's mouth from a lip-sync shape (lips(...) of shared.js gives the shape): how far the jaw opens.+const DOG_JAW = { X: 0, A: 0, B: .25, C: .45, D: .7, E: .55, F: .3, G: .2, H: .35 };+// k scales it: the Chinese dog murmurs (k .4), the Soviet dog speaks through his muzzle (k .25).+const dogJaw = (m, k = 1) => k * (DOG_JAW[m] ?? .3);+// A bark's jaw: wide open 0.07 s before each bark's sound starts (the sound comes out of an open mouth), held `hold` s,+// shutting over 0.1 s. barkJaw(q, [t1, t2, …]) → 0…1; add headR/bob/ear yourself.+const barkJaw = (q, times, hold = .22) => Math.max(0, ...times.map(t => q < t - .07 || q > t + hold + .1 ? 0 : q < t ? span(q, t - .07, t) : q < t + hold ? 1 : 1 - span(q, t + hold, t + hold + .1)));+// Where a dog's head (the eye) is in the world for a pose: framings follow it.+function dogHead(o) {+ const s = o.s ?? 1, dir = o.dir ?? 1, S = o.sit === true ? 1 : +o.sit || 0, L = o.lie === true || o.lie === 'awake' ? 1 : +o.lie || 0;+ const r = -16 * S * Math.PI / 180, dx = 100 + 50, dy = -142 + 56;+ const lx = -50 + dx * Math.cos(r) - dy * Math.sin(r), ly = -56 + dx * Math.sin(r) + dy * Math.cos(r) + (o.bob || 0) + 50 * L;+ return [(o.x || 0) + dir * s * lx, (o.y || 0) + s * ly];+}+// A close-up on a dog's head (z 3.6 by default), the head a little above the centre, a little room in front of the snout.+const DOG_CU = (o, z = 3.6) => { const [x, y] = dogHead(o); return { x: x + (o.dir ?? 1) * 24 * (o.s ?? 1), y: y + 14 * (o.s ?? 1), z }; };++/* ---------- the cardboard box ----------+ boxProp(p) → { back, front, eyes, clip, pose }. Draw order: back, the dog inside (clipped by `clip`: nothing of him+ shows below the box or through its side, only above the rim or behind the front), front, (the alley's shadow), eyes —+ the alley builds it so. pose(o, f): x, y (front face's bottom middle), s, flaps (0 a loose V … 1 pushed wide open),+ eyes (0 none, 1 the Chinese dog's pair in the hand-hole, 4 all four dogs: US, PL, SU, CN from left to right), eyeX+ (-1…1), lids ([…] per pair, or one number), shut ([…] per pair, or one bool), stuffed (the ushanka pokes out of the+ top, a golden tail out of the side; tail: its angle), bulge (0…1, 1.2 at most), shake (0…1, it trembles), mouth+ (0…1: the American's mouth opens wide in the hole, teeth and tongue), clamp (0…1: three paws — grey, dark, cream —+ reach in from inside the hole and shut it; the mouth is squashed and his eyes squeeze), legs (true: sixteen legs+ under it in four dogs' colours, the box lifted), walk (with legs: q; they step on twos, alternately), sink (0…1: the+ eyes sink below the hole's lower edge and are gone; 1 = gone; also per pair as an array), light (0…1: the light+ from the door crack lies across the box's front, brightest on the right), hatDy (px: the ushanka bounces — negative+ up). shake 1 = a hard tremble (±5 px on twos). */+const BOX_EYES = { 1: [[0, -84, 7.5]], 4: [[-40, -86, 9], [-10, -80, 7], [20, -88, 8], [46, -82, 6]] };+const BOX_SLOT = { x: -66, y: -98, w: 132, h: 28 };+function boxProp(p) {+ const back = mk('g', {}, p), front = mk('g', {}, p), eyes = mk('g', {}, p);+ const card = '#c0915a', side = '#9a6c3c', dark = '#21160c', id = 'bxc' + (++spClip);+ back.innerHTML = `<g data-p="bk">${PAPER(`<path d="M90,0 L118,-18 L118,-148 L90,-130 Z" fill="${side}"/><path d="M-90,-130 L90,-130 L118,-148 L-62,-148 Z" fill="${dark}"/>+ <path d="M-62,-148 L118,-148 L110,-196 L-56,-190 Z" fill="#b08250"/>`)}+ <g data-p="tail">${PAPER(`<path d="M0,0 Q30,-10 46,-46 Q38,-50 32,-34 Q22,-14 0,-10 Z" fill="${US_BREED.coat}"/>`)}</g>+ <g data-p="hat">${PAPER('<path d="M-12,-130 C-14,-178 66,-178 64,-130 Z" fill="#6b5640"/><path d="M-18,-138 Q26,-150 70,-138 L68,-128 Q26,-140 -16,-128 Z" fill="#8f7a5c"/><path transform="translate(26,-158) scale(.7)" d="M0,-12 l3.5,8 l9,1 l-7,6 l2,9 l-7.5,-5 l-7.5,5 l2,-9 l-7,-6 l9,-1 Z" fill="#d83a2f"/>')}</g></g>`;+ const legCols = [US_BREED.coat, PL_BREED.coat, SU_BREED.coat, CN_COL.coat];+ front.innerHTML = `<g data-p="legs">${Array.from({ length: 16 }, (_, i) => `<g data-p="l${i}">${PAPER(`<rect x="-5" y="-4" width="10" height="38" rx="4" fill="${legCols[i >> 2]}"/><ellipse cx="2" cy="33" rx="7" ry="4" fill="#3a2a1c"/>`)}</g>`).join('')}</g>+ <g data-p="fr">${PAPER(`<rect x="-90" y="-130" width="180" height="130" fill="${card}"/><path d="M-90,-110 H90" stroke="#d8b47a" stroke-width="10" opacity=".7"/>+ <path d="M-60,-98 H60 Q66,-98 66,-90 V-78 Q66,-70 60,-70 H-60 Q-66,-70 -66,-78 V-90 Q-66,-98 -60,-98 Z" fill="${dark}"/>`)}+ <g data-p="flapL">${PAPER(`<path d="M0,0 L-72,-46 L-62,-60 L10,-8 Z" fill="#cc9c64"/>`)}</g>+ <g data-p="flapR">${PAPER(`<path d="M0,0 L72,-50 L80,-36 L-6,8 Z" fill="#b8884e"/>`)}</g></g>`;+ // the clip for the dog inside, in world coordinates (updated with the box): above the rim, or behind the front face+ const clip = mk('clipPath', { id, clipPathUnits: 'userSpaceOnUse' }, p), cr = [0, 1, 2].map(() => mk('rect', {}, clip));+ const sid0 = id + 'e', ec = mk('clipPath', { id: sid0 }, eyes); mk('rect', { x: BOX_SLOT.x, y: BOX_SLOT.y, width: BOX_SLOT.w, height: BOX_SLOT.h, rx: 7 }, ec);+ const eyeG = mk('g', { 'clip-path': `url(#${sid0})` }, eyes), litG = mk('g', {}, front);+ litG.innerHTML = `<defs><linearGradient id="${id}l"><stop offset="0" stop-color="#ffe08a" stop-opacity=".1"/><stop offset=".5" stop-color="#ffe08a" stop-opacity=".6"/><stop offset="1" stop-color="#fff4c4" stop-opacity=".95"/></linearGradient></defs>+ <path d="M-90,-130 H90 V0 H-90 Z M90,-130 L118,-148 V-18 L90,0 Z" fill="url(#${id}l)" style="mix-blend-mode:screen"/>`;+ const pairs = BOX_EYES[4].map(() => { const g = mk('g', {}, eyeG); g.innerHTML = [-1, 1].map(k => `<g><ellipse rx="1" ry="1" fill="#fbf8ee" class="w"/><circle r="1" fill="#141010" class="pu"/>+ <clipPath><ellipse rx="1" ry="1"/></clipPath><rect class="lid" x="-20" y="-40" width="40" height="40" fill="#2e2014"/></g>`).join(''); return g; });+ // the American's mouth and the three paws, inside the hand-hole (clipped to it: they come from within)+ const sid = id + 's', gag = mk('g', { 'clip-path': `url(#${sid})` }, eyes);+ const sc = mk('clipPath', { id: sid }, eyes); mk('rect', { x: BOX_SLOT.x, y: BOX_SLOT.y, width: BOX_SLOT.w, height: BOX_SLOT.h, rx: 7 }, sc);+ const mouth = mk('g', {}, gag);+ mouth.innerHTML = '<ellipse rx="15" ry="11" fill="#5a1418"/><path d="M-12,-7 Q0,-11 12,-7 L11,-3 Q0,-6 -11,-3 Z" fill="#fbf8ee"/><ellipse cy="6" rx="9" ry="5" fill="#d9606a"/>';+ const paws = [PL_BREED.coat, SU_BREED.coat, CN_COL.coat].map(c => prop(gag, PAPER(`<rect x="-15" y="-11" width="30" height="22" rx="11" fill="${c}"/>`)));+ bakeAll(back); bakeAll(front);+ const P = { ...pieces(back), ...pieces(front) };+ const per = (v, i) => Array.isArray(v) ? v[i] : v;+ return { back, front, eyes, clip: id, pose(o, f) {+ const s = o.s ?? 1, lift = o.legs ? 34 : 0, sh = (o.shake || 0) * 5 * jit(f >> 1, 41), b = o.bulge || 0, x = (o.x || 0) + sh, y = (o.y || 0) + (o.shake || 0) * 2 * jit(f >> 1, 42);+ const sx = s * (1 + .08 * b), sy = s * (1 + .05 * b);+ const T = `translate(${x.toFixed(1)},${y.toFixed(1)}) scale(${sx.toFixed(3)},${sy.toFixed(3)})`;+ tf(back, T); tf(front, T); tf(eyes, T);+ [[-300, -600, 390, 470], [90, -600, 300, 450], [-90, -130, 180, 130]].forEach(([rx, ry, w, h], i) => {+ cr[i].setAttribute('x', (x + sx * rx).toFixed(1)); cr[i].setAttribute('y', (y + sy * (ry - lift)).toFixed(1));+ cr[i].setAttribute('width', (sx * w).toFixed(1)); cr[i].setAttribute('height', (sy * h).toFixed(1)); });+ tf(P.bk, `translate(0,${-lift})`); tf(P.fr, `translate(0,${-lift})`);+ vis(P.legs, !!o.legs);+ const k = onTwos(o.walk || 0);+ for (let i = 0; i < 16; i++) tf(P['l' + i], `translate(${(-82 + i * 11).toFixed(0)},${-lift}) rotate(${o.legs && o.walk != null ? (i % 2 ? 16 : -16) * k : 0})`);+ const fl = o.flaps ?? 0;+ tf(P.flapL, `translate(-90,-130) rotate(${(-10 - 40 * fl + jit(f >> 1, 43) * 1.5).toFixed(1)})`);+ tf(P.flapR, `translate(90,-130) rotate(${(8 + 40 * fl + jit(f >> 1, 44) * 1.5).toFixed(1)})`);+ vis(P.hat, !!o.stuffed); vis(P.tail, !!o.stuffed); tf(P.hat, `translate(0,${(o.hatDy || 0).toFixed(1)})`);+ vis(litG, (o.light || 0) > .01); litG.setAttribute('opacity', (o.light || 0).toFixed(2)); tf(litG, `translate(0,${-lift})`);+ tf(P.tail, `translate(116,-60) rotate(${(o.tail || 0).toFixed(1)})`);+ const n = o.eyes || 0, E = BOX_EYES[n] || [], m = n === 4 ? (o.mouth || 0) : 0, c = n === 4 ? (o.clamp || 0) : 0;+ pairs.forEach((g, i) => {+ vis(g, i < E.length); if (i >= E.length) return;+ const [ex, ey, r] = E[i], shut = per(o.shut, i);+ let lids = shut ? 1 : (per(o.lids, i) || 0); if (i === 0) lids = Math.max(lids, .55 * c); // squeezed shut by the paws+ tf(g, `translate(${ex},${(ey - lift - (i === 0 ? 4 * m : 0) + 24 * (per(o.sink, i) || 0)).toFixed(1)})`);+ g.querySelectorAll(':scope > g').forEach((e, k) => { tf(e, `translate(${((2 * k - 1) * r * 1.02).toFixed(1)},0)`);+ e.querySelectorAll('ellipse').forEach(el => { el.setAttribute('rx', r * .8); el.setAttribute('ry', r); });+ const pu = e.querySelector('.pu'); pu.setAttribute('r', r * .42); pu.setAttribute('cx', ((o.eyeX || 0) * r * .4).toFixed(1));+ const l = e.querySelector('.lid'); l.setAttribute('y', (-r - 2 * r + 2 * r * lids).toFixed(1)); l.setAttribute('height', 2 * r);+ if (!e._c) { const cid = 'bxe' + (++spClip); e.querySelector('clipPath').id = cid; l.setAttribute('clip-path', `url(#${cid})`); e._c = 1; }+ });+ });+ tf(gag, `translate(0,${-lift})`);+ { const cl = ec.firstChild; cl.setAttribute('y', BOX_SLOT.y - lift); }+ vis(mouth, m > .02); tf(mouth, `translate(-40,${(-76 + 2 * c).toFixed(1)}) scale(${(.6 + .4 * m).toFixed(3)},${Math.max(.08, m * (1 - .9 * c)).toFixed(3)})`);+ // the paws: grey from the right, dark from below, cream from the left, one after the other, meeting on the mouth+ [[60, 6], [0, 26], [-40, 4]].forEach(([dx, dy], i) => { const u = span(c, i * .2, .4 + i * .2); vis(paws[i], c > .02);+ tf(paws[i], `translate(${(-40 + (i - 1) * 16 + dx * (1 - u)).toFixed(1)},${(-77 + (i === 1 ? 6 : 0) + dy * (1 - u)).toFixed(1)}) rotate(${(i - 1) * 20})`); });+ } };+}++/* ---------- the kitchen: chopping, the cook's shadow, the door ----------+ Chop runs on a scene's clock: [[from, to, every = .36], …]. At the top level of a scene file call+ chopSfx('sceneN', RUNS, { mute, quiet }) (one 'chop' per hit, loud and soft alternately, a little uneven like a real+ cook; mute: [[a, b], …] spans with no chopping heard — the cutaways, which are somewhere else; quiet: [[a, b, vol]]+ spans played softer; hits in the last 0.15 s of the scene are dropped, so two scenes never double a chop at the+ join). In the scene, pose the cook with cleaverAt(q, RUNS) — the same runs — so the cleaver lands on every hit and+ rests raised (or at `rest`) between runs. */+const chopHits = runs => runs.flatMap(([a, b, e = .36]) => { const o = []; let k = 0; for (let t = a; t < b - 1e-6; t += e, k++) o.push(+(t + (k ? .025 * jit(k + Math.round(a * 10), 77) : 0)).toFixed(3)); return o; });+function chopSfx(beat, runs, { mute = [], quiet = [], vol = .5 } = {}) {+ const n = beat.replace('scene', ''), pre = Function(`return typeof PRE${n} === 'undefined' ? 0 : PRE${n}`)();+ const end = pre + (TIMINGS[beat]?.dur ?? 1e9) - .15;+ chopHits(runs).forEach((t, i) => {+ if (t >= end || mute.some(([a, b]) => t >= a && t < b)) return;+ const qv = quiet.find(([a, b]) => t >= a && t < b);+ sfx(beat, t, 'chop', (qv ? qv[2] : vol) * (i % 2 ? .8 : 1));+ });+}+// the cleaver 0 (down on the board) … 1 (raised); `rest` between runs (1: held up, frozen mid-chop)+function cleaverAt(q, runs, rest = 1) {+ for (const run of runs) {+ if (q < run[0] - .25 || q >= run[1] + .3) continue;+ const h = chopHits([run]), i = h.findIndex(t => t > q);+ if (i === 0) return 1; // about to start+ const t = q - h[(i < 0 ? h.length : i) - 1];+ if (i < 0) return t < .07 ? 0 : span(t, .07, .2); // the last stroke lifts and stays up+ return t < .07 ? 0 : t < .2 ? span(t, .07, .2) : 1 - span(q, h[i] - .1, h[i]);+ }+ return rest;+}+// The frosted window of the kitchen door, in world px.+const WIN = { x: 1282, y: 405, w: 98, h: 140 };+function kitchen(p) {+ const g = mk('g', {}, p), id = 'kwin' + (++spClip);+ g.innerHTML = `<clipPath id="${id}"><rect x="${WIN.x}" y="${WIN.y}" width="${WIN.w}" height="${WIN.h}"/></clipPath>+ <g clip-path="url(#${id})" opacity=".66" style="mix-blend-mode:multiply"><g data-p="cook" fill="#4a2c12">+ <path d="M1290,560 Q1292,512 1330,506 Q1372,508 1378,560 Z"/><rect x="1328" y="486" width="18" height="24"/>+ <path d="M1316,446 Q1306,414 1324,410 Q1332,392 1348,404 Q1368,404 1362,446 Z"/>+ <circle cx="1338" cy="466" r="22"/><g data-p="nose"><path d="M1318,460 L1306,470 L1318,476 Z"/><path d="M1322,482 h8" stroke="#4a2c12" stroke-width="3"/></g>+ <g data-p="arm"><path d="M0,-9 L-46,-6 L-46,6 L0,9 Z"/><circle cx="-48" cy="0" r="9"/><g transform="translate(-50,0)"><path d="M-4,-4 V-20 M4,-4 V-20" stroke="#4a2c12" stroke-width="5"/><path d="M-20,-52 H12 V-20 H-20 Z"/></g></g>+ <g data-p="armF"><path d="M1352,530 L1370,486 L1384,492 L1368,534 Z"/><circle cx="1378" cy="484" r="9"/><rect x="1374" y="454" width="9" height="28" rx="2"/>+ <path d="M1364,412 H1400 V456 H1364 Z M1371,419 a4,4 0 1 0 8,0 a4,4 0 1 0 -8,0 Z" fill-rule="evenodd"/></g>+ </g></g>+ <g data-p="crack"><path data-p="slit" fill="#ffe7a0"/><path data-p="wedge" fill="#ffe08a" opacity=".38" style="mix-blend-mode:screen"/></g>`;+ const P = pieces(g);+ return { g,+ // cook(o): arm 0…1 (cleaverAt), turn 0…1 (0 in profile over the board, 1 facing the door, nearer and bigger),+ // show (false: the window is empty — he has left it)+ cook(o) {+ vis(P.cook, o.show !== false); const t = o.turn || 0;+ tf(P.cook, `translate(${(-16 * t).toFixed(1)},${(-4 * t).toFixed(1)})`); // turned: a step nearer the door; the broad blade fits the window+ vis(P.nose, t < .5); vis(P.arm, t < .7); vis(P.armF, t >= .7); // turned to the door, the cleaver is held up beside his head+ tf(P.arm, `translate(1318,520) rotate(${(-30 + 75 * (o.arm ?? 1)).toFixed(1)})`);+ },+ // crack(u): the door opens a crack (0 shut … .6 a door handle's width … 1): a bright slit at its handle edge and a+ // wedge of light across the cobbles that creeps toward the box and reaches it from u .9 (then light the box itself+ // with the box's `light`)+ crack(u) {+ vis(P.crack, u > .01); if (u <= .01) return;+ const w = 6 + 44 * u; // at .6 about a door handle's width+ P.slit.setAttribute('d', `M${1424 - w},357 H1424 V756 H${1424 - w} Z`);+ // the wedge of light lies across the cobbles toward the dark corner; at u ≥ .9 it reaches the box (x 220)+ const far = 1300 - 1150 * u;+ P.wedge.setAttribute('d', `M${1424 - w},758 L1424,762 L${(far + 260 * u).toFixed(0)},905 L${far.toFixed(0)},905 L${(far - 40).toFixed(0)},${(840 - 20 * u).toFixed(0)} Z`);+ P.wedge.setAttribute('opacity', (.5 * Math.min(1, u * 2)).toFixed(2));+ } };+}++/* ---------- the alley (scenes 1–4) ----------+ Evening, a brick back wall. Left: the dark corner with the dustbins and the box (ALLEY.box), where the Chinese dog+ hides; middle: the lamp; right: the kitchen door (x 1238…1424, window WIN), the vent with steam above it, crates. The+ three talk in the lamplight: the American at ALLEY.us facing right (dir 1), the Polish dog at ALLEY.pl and the Soviet+ dog at ALLEY.su facing left (dir -1), sitting. alleySet(p) → { cam, us, pl, su, cn, box, bowl, kit, steam, shade }.+ Call steam(q) every frame; shade(k) sets the dark corner (1 as built … 0 none; lower it in close-ups of the box).+ bowl: the Polish dog's empty bowl, on the ground in front of him in every alley shot (he guards it; he never+ carries it): vis it and a.placeBowl() — at BOWL_AT; after he knocks it in scene 3 it lies at BOWL_KNOCKED+ (a.placeBowl(0, BOWL_KNOCKED.rot, BOWL_KNOCKED.dx)) for the rest of scene 3 and all of scene 4.+ The Chinese dog in the box: while only his eyes show (box eyes: 1) keep the puppet hidden (vis(cn.g, false)); to look+ out he sits up behind the box's front at ALLEY.cnUp (sit 1, dir 1): rise from cnUp.y + 130 to cnUp.y over ~0.4 s+ with flaps going ~.6 (the box clips him: nothing shows below it or through its side). "Shh.": hold 'shh' (his paw+ up in front of his nose). Scared: ear EAR_FLAT, lids .25, his jaw small (dogJaw(m, .4)).+ Framings: AL_WIDE, AL_TRIO, AL_BOX (only the box and the bins — no other dog), AL_BOX_WIDE (the box left of centre,+ room on the right for dogs diving in), AL_SLOT (the hand-hole), AL_GAG (the American's mouth in the hole, the paws),+ AL_WINDOW, AL_DOOR, AL_US_PL, AL_PL_SU, AL_BOWL (the bowl at the Polish dog's front feet), AL_TAG (low, the box+ walking off); DOG_CU(pose) for any dog. */+const ALLEY = { ground: 800, us: 600, pl: 990, su: 1150, suY: 772, box: 220, cnUp: { x: 214, y: 742 } };+const BOWL_AT = { x: ALLEY.pl - 138, y: ALLEY.ground - 18 }, BOWL_KNOCKED = { dx: -70, rot: -6 };+const AL_WIDE = { x: 800, y: 450, z: 1 }, AL_TRIO = { x: 880, y: 610, z: 1.7 }, AL_BOX = { x: 178, y: 700, z: 3.4 }, AL_BOX_WIDE = { x: 380, y: 640, z: 2.2 },+ AL_SLOT = { x: 220, y: 716, z: 6.5 }, AL_GAG = { x: 212, y: 722, z: 9 }, AL_WINDOW = { x: 1331, y: 478, z: 4.6 }, AL_DOOR = { x: 1260, y: 560, z: 2.15 },+ AL_US_PL = { x: 800, y: 620, z: 2.1 }, AL_PL_SU = { x: 1060, y: 600, z: 2.1 }, AL_BOWL = { x: BOWL_AT.x, y: BOWL_AT.y - 40, z: 4 }, AL_TAG = { x: 360, y: 650, z: 2.0 };+// the Polish dog licking his bowl (scene 3's opening; PL_LICK): his head and the bowl+const AL_LICK = { x: BOWL_AT.x + 60, y: 700, z: 3.2 };+// The alley's room tone (the kitchen's extractor hum, very low): roomSfx('sceneN', [[from, to], …]) lays it under+// those spans (3 s tiles every 2.6 s, overlapping). It never stops when the chopping does: then the silence is an event.+const roomSfx = (beat, spans, vol = .12) => spans.forEach(([a, b]) => { for (let t = a; t < b - .5; t += 2.6) sfx(beat, +t.toFixed(2), 'room', vol); });+function alleySet(p) {+ const cam = paperCam(p, 'alley'), st = cam.stage;+ const kit = kitchen(st), steam = smoke(st, 1508, 250, 4, 3.0);+ const box = boxProp(st), cn = cnDog(mk('g', { 'clip-path': `url(#${box.clip})` }, st));+ const sid = 'alsh' + (++spClip), grad = mk('linearGradient', { id: sid }, st);+ grad.innerHTML = '<stop offset="0" stop-color="#0c0814" stop-opacity=".55"/><stop offset=".55" stop-color="#0c0814" stop-opacity=".3"/><stop offset="1" stop-color="#0c0814" stop-opacity="0"/>';+ const shade = mk('rect', { x: -200, y: -100, width: 1100, height: 1100, fill: `url(#${sid})`, 'pointer-events': 'none' });+ st.append(box.back, cn.g.parentNode, box.front, shade, box.eyes); // the box's back, the dog inside, its front, the dark corner, the eyes+ const bowl = prop(st, bowlSVG); vis(bowl, false);+ const su = suDog(st), us = usDog(st), pl = plDog(st);+ // placeBowl(dy, rot, dx, spin): dy up, rot its tilt, dx along the ground, spin −1…1 (a turn on the spot: its width)+ const placeBowl = (dy = 0, rot = 0, dx = 0, spin = 1) => tf(bowl, `translate(${(BOWL_AT.x + dx).toFixed(1)},${(BOWL_AT.y - dy).toFixed(1)}) rotate(${rot.toFixed(1)}) scale(${spin.toFixed(3)},1)`);+ return { cam, us, pl, su, cn, box, bowl, placeBowl, kit, steam, shade: k => shade.setAttribute('opacity', k) };+}++/* ---------- a thought bubble (scene 4: the steak from "back home"; then the steak is him) ----------+ thought(p) → { g, pose({ x, y (bubble centre), tx, ty (where the little dots lead: his head), s, u (0…1: it pops+ up), me (the steak IS him: his big floppy ear, his eye and black nose on the meat's right end, his Stars-and-Stripes+ bandana tied round its "neck", his tail on the left end, wagging), q (the clock, for the wag), blink }) }. */+function thought(p) {+ const g = mk('g', {}, p), dots = [0, 1, 2].map(i => prop(g, PAPER(`<circle r="${8 + 5 * i}" fill="#fbf8ee"/>`))), body = mk('g', {}, g);+ // the steak fills about two-thirds of the bubble+ prop(body, PAPER('<path d="M-150,10 C-190,-20 -160,-90 -100,-80 C-90,-130 -10,-140 20,-100 C60,-140 140,-120 140,-70 C200,-60 200,30 140,40 C140,90 60,100 30,70 C0,110 -80,100 -100,60 C-160,80 -190,40 -150,10 Z" fill="#fbf8ee"/>') + steakSVG.replace('<image', '<image transform="translate(-4,-6) scale(1.85)"'));+ // him, as the steak: his tail on the left end; his floppy ear, his eye and his black nose on the meat's right (narrow)+ // end; tied under its "neck" (behind the ear) his Stars-and-Stripes bandana, knotted, with the gold tag+ const me = mk('g', { transform: 'translate(-4,-6) scale(1.42)' }, body), tail = mk('g', {}, me);+ prop(tail, PAPER(`<path d="M0,0 Q-24,-14 -30,-56 Q-18,-58 -16,-38 Q-10,-14 6,-6 Z" fill="${US_BREED.coat}"/>`));+ prop(me, PAPER('<path d="M0,44 Q22,38 46,44 L44,52 Q22,46 2,52 Z" fill="#c8323a"/>' ++ '<path d="M2,48 L44,46 L24,84 Z" fill="#c8323a"/><path d="M9,56 L38,55 M14,65 L33,64 M19,74 L28,73" stroke="#fbfbf6" stroke-width="4"/><path d="M2,48 L20,47 L13,62 Z" fill="#2f4a8a"/><circle cx="9" cy="52" r="1.8" fill="#fff"/>' ++ '<circle cx="34" cy="62" r="7" fill="#efc84a" stroke="#a8802a" stroke-width="2"/>') ++ PAPER(`<path d="M30,-62 C12,-58 10,-14 22,20 C34,12 44,-24 46,-58 Z" fill="${US_BREED.dark}"/>`) ++ PAPER('<ellipse cx="58" cy="-22" rx="11" ry="13" fill="#fff"/><ellipse cx="78" cy="2" rx="9" ry="7" fill="#141010"/>'));+ const pupil = mk('circle', { cx: 61, cy: -22, r: 5, fill: '#141010' }, me), lid = mk('path', { d: 'M47,-22 Q58,-12 69,-22', fill: 'none', stroke: '#141010', 'stroke-width': 3.5, 'stroke-linecap': 'round' }, me);+ const lidFill = mk('ellipse', { cx: 58, cy: -22, rx: 12, ry: 14, fill: '#b23a2e' }, me); me.insertBefore(lidFill, lid);+ return { g, pose(o) {+ const u = o.u ?? 1; vis(g, u > .01); if (u <= .01) return;+ const s = (o.s ?? 1) * (u < 1 ? .3 + .7 * ease(u) + .08 * Math.sin(Math.PI * u) : 1);+ tf(body, `translate(${o.x},${o.y}) scale(${s.toFixed(3)})`); vis(me, !!o.me);+ tf(tail, `translate(-62,4) rotate(${(-16 * onTwos(o.q || 0)).toFixed(0)})`);+ vis(lid, !!o.blink); vis(lidFill, !!o.blink); vis(pupil, !o.blink); // blink: true for two frames (blinking(q, [t]))+ dots.forEach((d, i) => { const k = (i + 1) / 4; tf(d, `translate(${(o.tx + (o.x - 120 - o.tx) * k).toFixed(1)},${(o.ty + (o.y + 60 - o.ty) * k).toFixed(1)})`); vis(d, u > .2 * i); });+ } };+}+// the bubble's size: the cloud spans about x −190…190, y −135…105 around (x, y) at s 1 — keep y − 135·s on screen++/* ---------- the "back home" cutaways ----------+ Each carries a torn-paper place tag in the top-left corner (placeTag, part of the camera, not zoomed): USA, POLAND,+ USSR; it is shown whenever that camera is (vis(set.tag, false) to drop it). */+function placeTag(p, text) {+ return prop(p, PAPER(`<path d="M40,40 L${100 + 34 * text.length},34 L${108 + 34 * text.length},96 L44,102 Z" fill="#f3ead6"/>`) ++ `<text x="${74 + 17 * text.length}" y="84" font-family="Rockwell, Georgia, serif" font-size="44" font-weight="700" text-anchor="middle" fill="#2a2420">${text}</text>`);+}+// USA (scene 2): a sunny front yard; the American dog sits on the lawn (YARD.us, dir 1) looking up at the window+// (YARD.win: x 952…1158, y 300…495). win(u): the lower sash slides up (0 shut … 1 open, dark inside). steak: a group+// for the flying steak (tf it: translate/rotate, vis it); toss(u, from, to, h) gives a point on a thrown arc.+const YARD = { us: 700, y: 820, s: 1.15, win: { x: 952, y: 300, w: 206, h: 195 }, from: [1055, 470] };+const YARD_WIDE = { x: 800, y: 450, z: 1 }, YARD_WIN = { x: 1060, y: 380, z: 3.0 }, YARD_TWO = { x: 900, y: 560, z: 1.5 };+const toss = (u, [x0, y0], [x1, y1], h = 160) => [x0 + (x1 - x0) * u, y0 + (y1 - y0) * u - h * 4 * u * (1 - u)];+function yardSet(p) {+ const cam = paperCam(p, 'yard'), st = cam.stage, W = YARD.win;+ const w = mk('g', {}, st);+ w.innerHTML = `<rect data-p="hole" x="${W.x}" y="${W.y + W.h / 2}" width="${W.w}" height="0" fill="#2a2a34"/>`;+ const sash = prop(w, PAPER(`<rect x="${W.x}" y="${W.y + W.h / 2}" width="${W.w}" height="${W.h / 2}" fill="#f4f1ea"/><rect x="${W.x + 12}" y="${W.y + W.h / 2 + 10}" width="${W.w / 2 - 18}" height="${W.h / 2 - 22}" fill="#9cc6de"/><rect x="${W.x + W.w / 2 + 6}" y="${W.y + W.h / 2 + 10}" width="${W.w / 2 - 18}" height="${W.h / 2 - 22}" fill="#9cc6de"/>`));+ const hole = w.querySelector('[data-p="hole"]');+ const us = usDog(st), steak = prop(st, steakSVG); vis(steak, false);+ const tag = placeTag(cam.root, 'USA');+ return { cam, us, steak, tag, win(u) { vis(w, u > .01); const hgt = (W.h / 2 - 6) * ease(u); hole.setAttribute('height', hgt.toFixed(1)); tf(sash, `translate(0,${(-hgt).toFixed(1)})`); } };+}+// POLAND (scene 3): a grey morning; a queue of dogs with empty bowls in their mouths stretches from the butcher's door+// (BUTCHER.queue: x of each dog, front first; all face right, dir 1, standing) to the Polish dog last at the left. The+// window shows a rail of empty hooks (BU_HOOKS). shutter(u): the shop's shutter rolls down over window and door (1 down).+const BUTCHER = { y: 800, s: .78, queue: [1270, 1105, 940, 775, 610], pl: 390 };+const BU_WIDE = { x: 800, y: 450, z: 1 }, BU_HOOKS = { x: 1124, y: 440, z: 3.2 }, BU_END = { x: 470, y: 640, z: 2.4 },+ BU_FRONT = { x: 1180, y: 630, z: 2.2 }, BU_DOOR = { x: 1260, y: 560, z: 2.0 }; // a pan along the queue: cam.to from BU_FRONT to BU_END+// (the queue dogs' bowls are on the ground now — `bowls` — not in their mouths)+const QUEUE_BREEDS = [{ coat: '#3a3634', far: '#2a2624', dark: '#1e1a18', muzzle: '#5a5450' }, { coat: '#c9b48e', far: '#ad9a76', dark: '#8a7656', muzzle: '#e4d6b8' },+ { coat: '#8a5a3a', far: '#6e462c', dark: '#4e301e', muzzle: '#b8865e', ear: DOG_EARS.prick }, { coat: '#ece5d6', far: '#cdc3b1', dark: '#6b5444', muzzle: '#fbf8f0' },+ { coat: '#7a7a80', far: '#606066', dark: '#46464c', muzzle: '#a0a0a6', torso: [70, 32], ear: DOG_EARS.prick }].map(b => ({ collar: 'none', ...b }));+function butcherSet(p) {+ const cam = paperCam(p, 'butcher'), st = cam.stage;+ const queue = QUEUE_BREEDS.map(b => dogLash(dogPuppet(st, { breed: b, holds: { bowl: bowlHeld } }))), pl = plDog(st);+ // every dog's empty bowl on the pavement in front of it (queue order, then the Polish dog's): place them each frame+ // with bowlAhead(that dog's pose): tf(bowls[i], `translate(x,y) scale(BUTCHER.s)`)+ const bowls = [...queue, pl].map(() => prop(st, bowlSVG));+ const sh = mk('g', {}, st), cl = 'bush' + (++spClip);+ sh.innerHTML = `<clipPath id="${cl}"><rect x="940" y="340" width="560" height="310"/></clipPath><g clip-path="url(#${cl})"><g data-p="roll">${+ Array.from({ length: 16 }, (_, i) => `<rect x="940" y="${340 + i * 20}" width="560" height="20" fill="${i % 2 ? '#8a8e94' : '#9ca0a6'}" stroke="#6a6e74" stroke-width="2"/>`).join('')}</g></g>`;+ const roll = sh.querySelector('[data-p="roll"]');+ const tag = placeTag(cam.root, 'POLAND');+ return { cam, queue, pl, bowls, tag, shutter(u) { vis(sh, u > .01); tf(roll, `translate(0,${(-310 * (1 - ease(u))).toFixed(1)})`); } };+}+// USSR (scene 3): the snowy square; a row of dogs in ushankas and muzzles sit in silence facing left (dir -1) at+// SNOW.row (the Soviet dog first, leftmost); a puppy at the right end (SNOW.pup, s .5, no hat). snow(q) every frame.+const SNOW = { y: 800, s: .82, row: [420, 630, 840, 1050, 1260], pup: 1460 };+const SN_WIDE = { x: 800, y: 450, z: 1 }, SN_ROW = { x: 950, y: 555, z: 1.2 }, SN_PUP = { x: 1400, y: 700, z: 3.2 };+function snowSet(p) {+ const cam = paperCam(p, 'snowsq'), st = cam.stage;+ const row = SNOW.row.map((x, i) => i ? dogLash(dogPuppet(st, { breed: { ...SU_BREED, coat: ['#5f5b58', '#6a5e52', '#55524e', '#706a64'][i % 4] } })) : suDog(st));+ const pup = dogLash(dogPuppet(st, { breed: { coat: '#8a7e72', far: '#6e645a', dark: '#5a5048', muzzle: '#b0a698', collar: 'none', spot: '', torso: [70, 38] } }));+ const flakes = Array.from({ length: 60 }, (_, i) => mk('circle', { r: 2 + (i % 3) * 1.6, fill: '#fbfbff', opacity: .85 }, st));+ const tag = placeTag(cam.root, 'USSR');+ return { cam, row, pup, tag, snow(q) { flakes.forEach((c, i) => { const sp = 40 + (i % 5) * 12, x = (i * 97.3) % 1700 - 50 + 20 * Math.sin(q * .9 + i), y = ((i * 61.7 + q * sp) % 1000) - 60;+ c.setAttribute('cx', x.toFixed(1)); c.setAttribute('cy', y.toFixed(1)); }); } };+}++/* ---------- the title card ----------+ titleCard(p) → card; card.at(q, t0) every frame: the strip springs up with "Three Dogs"; at t0 + .8 a red line+ strikes out "Three" and "Four" is scrawled above it (play 'tick' there); at t0 + 1.6 the Chinese dog peeks over the+ strip's right end, ears flat. */+function titleCard(p) {+ const card = mk('g', {}, p);+ card.innerHTML = `<rect width="1600" height="900" fill="#0d0b0a"/>`;+ const wrap = mk('g', {}, card), peek = mk('g', {}, wrap), clip = mk('clipPath', { id: 'titlePeek6' }, card);+ mk('rect', { x: 0, y: 0, width: 1440, height: 372 }, clip); wrap.setAttribute('clip-path', 'url(#titlePeek6)');+ // the Chinese dog peeking over the strip, Kilroy-fashion: his face to us, rounded tan ears up, worried brows, mouth+ // corners down, two cream paws on the strip's edge+ peek.innerHTML = PAPER(`<g data-p="earL"><ellipse cx="-34" cy="-40" rx="17" ry="26" fill="${CN_COL.dark}" transform="rotate(-18 -34 -40)"/></g>`) ++ PAPER(`<ellipse cx="34" cy="-40" rx="17" ry="26" fill="${CN_COL.dark}" transform="rotate(18 34 -40)"/><circle r="48" fill="${CN_COL.coat}"/><ellipse cx="0" cy="22" rx="26" ry="18" fill="${CN_COL.muzzle}"/>`) ++ `<ellipse cx="-16" cy="-6" rx="10" ry="12" fill="#fff" stroke="${SP_INK}" stroke-width="2"/><ellipse cx="16" cy="-6" rx="10" ry="12" fill="#fff" stroke="${SP_INK}" stroke-width="2"/>+ <circle data-p="pl" cx="-14" cy="-2" r="4.5" fill="${SP_INK}"/><circle data-p="pr" cx="18" cy="-2" r="4.5" fill="${SP_INK}"/>+ <g data-p="blink"><path d="M-26,-6 Q-16,2 -6,-6 M6,-6 Q16,2 26,-6" fill="none" stroke="${SP_INK}" stroke-width="3.5" stroke-linecap="round"/></g>+ <path d="M-28,-26 L-8,-22 M28,-26 L8,-22" stroke="${SP_INK}" stroke-width="4" stroke-linecap="round" transform="rotate(0)"/>+ <ellipse cx="0" cy="14" rx="8" ry="6" fill="${SP_INK}"/><path d="M-12,32 Q0,25 12,32" fill="none" stroke="${SP_INK}" stroke-width="3" stroke-linecap="round"/>` ++ PAPER(`<ellipse cx="-30" cy="46" rx="16" ry="11" fill="${CN_COL.coat}"/><ellipse cx="30" cy="46" rx="16" ry="11" fill="${CN_COL.coat}"/>`);+ const K = pieces(peek);+ const strip = mk('g', {}, card);+ strip.innerHTML = PAPER('<path d="M240,330 L360,318 L520,334 L700,316 L900,332 L1100,317 L1300,333 L1370,330 L1360,430 L1180,444 L1000,428 L800,444 L600,430 L400,446 L236,432 Z" fill="#f3ead6"/>') ++ `<text x="800" y="418" font-family="Chalkboard SE, Avenir Next Heavy, sans-serif" font-size="86" font-weight="800" text-anchor="middle" fill="#1d1a1a"><tspan data-p="three">Three</tspan> Dogs</text>+ <text x="800" y="530" font-family="Avenir Next, sans-serif" font-size="38" letter-spacing="4" text-anchor="middle" fill="#cfc6b4">Joke Collection · Episode 6</text>`;+ const fix = mk('g', {}, strip);+ fix.innerHTML = `<path data-p="strike" d="M548,386 L790,370" stroke="#d8322c" stroke-width="9" stroke-linecap="round" fill="none"/>+ <text data-p="four" x="670" y="318" font-family="Chalkboard SE, Comic Sans MS, sans-serif" font-size="64" font-weight="700" text-anchor="middle" fill="#d8322c" transform="rotate(-6 670 300)">Four</text>`;+ bakeAll(card);+ const F = pieces(fix);+ card.at = (q, t0) => {+ vis(card, q >= t0); if (q < t0) return;+ const u = span(q, t0, t0 + .35), o = Math.sin(Math.PI * Math.min(1, u * 1.4)) * 12 * (1 - u);+ tf(strip, `translate(0,${((1 - u) * 80 - o).toFixed(1)})`);+ const k = span(q, t0 + .8, t0 + 1.0); vis(F.strike, k > 0); F.strike.setAttribute('stroke-dasharray', `${(250 * k).toFixed(0)} 400`); vis(F.four, q >= t0 + 1.0);+ tf(peek, `translate(1290,${(300 + 140 * (1 - span(q, t0 + 1.6, t0 + 1.9))).toFixed(1)})`);+ tf(K.earL, between(q, t0 + 2.6, t0 + 2.75) ? 'rotate(-22 -34 -14)' : ''); // one ear twitch+ const sh = blinking(q, [t0 + 2.9]); vis(K.blink, sh); vis(K.pl, !sh); vis(K.pr, !sh);+ };+ return card;+}+Object.assign(SFX_BED, { wind: 8, 'wind-pl': 5.7, room: 3 }); // the cutaways' wind bed: a seek into it joins it part-waydiff --git a/site/joke-collection/ch06/index.html b/site/joke-collection/ch06/index.htmlnew file mode 100644index 0000000..f7787cb--- /dev/null+++ b/site/joke-collection/ch06/index.html@@ -0,0 +1,75 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width, initial-scale=1">+<title>Four Dogs</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 (as episode 3): a full lid left two blank skin ovals</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="dogs.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: 6, title: 'Four Dogs', minutes: 2, language: 'en' };+try { if (localStorage.getItem('captions') === null) setCaptions(true); } catch {}++/* ---------- beats: one per scene ---------- */+const BEATS = [+ ['scene1', 'Three dogs', (m, D) => scene1(panel(0), D), { lead: false, pre: PRE1 }],+ ['scene2', 'Back home', (m, D) => scene2(panel(0), D), { lead: false, pre: PRE2 }],+ ['scene3', 'What is meat?', (m, D) => scene3(panel(0), D), { lead: false, pre: PRE3 }],+ ['scene4', 'Shh', (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. The home theme under the introductions, fading when the narrator hesitates before the fourth dog (scene 1+ sets S1_STOP); the march under the American dog's boast and his "back home", fading as he barks for real in the+ alley (scene 2 sets S2_STOP). Scenes 3 and 4 have no music: the chopping and the silences carry them. */+const BGM = [['m1-home', ['scene1'], .3], ['m3-chimney', ['scene2'], .3]]+ .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 = { scene1: t => t > (window.S1_STOP ?? 1e9), scene2: t => t > (window.S2_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(), duck = .3;+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;+ // the music ducks well under the voices for the whole of a scene that has them (its silent opening and tail too, so+ // it does not swell between lines), easing over about half a second+ duck += Math.max(-dt, Math.min(dt, (P.audio ? .3 : .7) - duck));+ const vol = +(document.getElementById('volume')?.value ?? 1) * duck;+ 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 => { usDog(g); plDog(g); suDog(g); cnDog(g); boxProp(g); prop(g, steakSVG + bowlSVG); });+boot();+</script>+</body>+</html>diff --git a/site/joke-collection/ch06/scene1.js b/site/joke-collection/ch06/scene1.jsnew file mode 100644index 0000000..881564f--- /dev/null+++ b/site/joke-collection/ch06/scene1.js@@ -0,0 +1,90 @@+/* scene1.js — "Three dogs". Alley at dusk: the narrator counts three dogs (insets on the chopping shadow, the dog+ tag, the empty bowl and its growl, the Soviet blink), stumbles at "and a Chinese dog" -- the camera whips to a rubbish+ box, two eyes open in its hand-hole: "Four dogs." The American draws himself up to speak. Chopping all film. */+'use strict';+const PRE1 = 1.5;+const S1_RUNS = [[0.2, 30]];+window.S1_STOP = 14.6;+chopSfx('scene1', S1_RUNS);+roomSfx('scene1', [[0, 27]]);+sfx('scene1', 7.8, 'tick');+sfx('scene1', 10.6, 'growl', .5);+sfx('scene1', 16.1, 'whoosh');++// ramp a value from `a` to `b` over [t0, t1]+const s1ramp = (q, t0, t1, a, b) => a + (b - a) * span(q, t0, t1);+// a pulse 0 -> 1 -> 0 around [t0, t1]+const s1pulse = (q, t0, t1) => span(q, t0, (t0 + t1) / 2) * (1 - span(q, (t0 + t1) / 2, t1));++function scene1(p, D) {+ const a = alleySet(p), c = a.cam;+ // shots (beat clock)+ c.cut(AL_WIDE, 0);+ c.cut(AL_WINDOW, 2.2); // insert: the cook's shadow chopping+ c.cut(AL_WIDE, 3.0);+ c.cut(AL_TRIO, 3.6); // the three look at each other+ c.cut(DOG_CU({ x: ALLEY.us, y: ALLEY.ground, s: US.s, dir: 1 }), 6.9); // "An American dog,"+ { const v = DOG_CU({ x: ALLEY.pl, y: ALLEY.ground, s: PL.s, dir: -1, sit: 1 }, 3.0); c.cut({ ...v, x: v.x - 30, y: v.y + 95 }, 9.4); } // "a Polish dog,"+ c.cut(DOG_CU({ x: ALLEY.su, y: ALLEY.suY, s: SU.s, dir: -1, sit: 1 }), 11.9); // "a Soviet dog,"+ c.cut(AL_TRIO, 14.5); // the narrator hesitates; they count each other+ c.cut(AL_TRIO, 16.0); c.to(AL_BOX, 16.1, .35); // whip to the box on "Chinese"+ c.cut(AL_SLOT, 17.8); // hard cut onto the hole as the eyes open+ c.cut(AL_WIDE, 20.8); // "Four dogs." -- three talking, the box alone+ c.cut(AL_WINDOW, 22.0); // the shadow chops+ c.cut(AL_SLOT, 23.3); // the eyes slide to the door+ c.cut(AL_TRIO, 24.5); // the American clears his throat++ stopClock(D, (q, f) => {+ c.apply(q, f); a.steam(q); a.shade(1);+ vis(a.cn.g, false);++ // who looks at whom: US toward PL (forward), PL toward US (forward) or back at SU (-1), SU toward PL (forward)+ let usE = 1, plE = 1, suE = 1, usH = 0, plH = 0, suH = 0;+ if (between(q, 3.8, 5.4)) { usE = 1; plE = -1; suE = 1; plH = 6; } // PL turns to SU, SU to PL+ else if (between(q, 5.4, 6.2)) { usE = -.3; plE = 1; suE = -.4; usH = 6; suH = 4; } // US looks at the box, SU at the door side+ else if (between(q, 6.2, 6.9)) { usE = 1; plE = 1; suE = 1; plH = -5; }+ if (between(q, 5.4, 6.2)) plH = -9; // PL looks down at his bowl once+ if (between(q, 14.5, 16.1)) { // the count: the American nods at 14.7 (PL), 15.0 (SU), 15.3 (himself); the others' eyes follow+ usH = -9 * (s1pulse(q, 14.7, 14.9) + s1pulse(q, 15.0, 15.2) + s1pulse(q, 15.3, 15.5));+ usE = q < 15.0 ? 1 : q < 15.3 ? 1 : -.4; plE = q < 14.7 ? 1 : q < 15.0 ? 1 : -.6; suE = q < 15.0 ? 1 : 0;+ if (q >= 15.0 && q < 15.3) plH = 4;+ if (q >= 15.3) suH = 3 * s1pulse(q, 15.3, 15.8);+ }+ if (between(q, 20.8, 24.5)) { // chatting, glances shift every second or so+ usE = q % 2.2 < 1.2 ? 1 : .4; plE = q % 1.9 < 1 ? 1 : -.5; suE = q % 3 < 1.6 ? 1 : 0;+ usH = 3 * Math.sin(q * 1.7); plH = 2 * Math.sin(q * 1.3 + 1);+ }+ if (q >= 24.5) { usH = s1ramp(q, 24.5, 24.9, 0, 6) - 7 * s1pulse(q, 25.3, 26.2) + 3 * s1pulse(q, 25.6, 26.6); plE = 1; suE = 1; plH = 3; }++ // American: tongue and tail; chest out on his line; stands up straight and shakes his head before speaking+ const usP = { x: ALLEY.us, y: ALLEY.ground, s: US.s, dir: 1, wag: (q < 24.5 || q > 25.2) && !between(q, 16.0, 18.4), tongue: !between(q, 25.0, 26.3), headR: usH, eyeX: usE,+ shut: blinking(q, [1.9, 5.3, 8.4, 12.9, 17.5, 21.6, 25.9]), swell: Math.max(.5 * s1pulse(q, 6.9, 9.4) * 1.0, .35 * span(q, 24.5, 25.0)) };+ // Polish: bowl in his mouth, hungry eyes; belly growl at 10.6, ear twitch+ const plP = { x: ALLEY.pl, y: ALLEY.ground, s: PL.s, dir: -1, sit: 1, headR: plH, eyeX: plE,+ shut: blinking(q, [2.4, 6.2, 9.9, 13.6, 18.8, 22.7, 26.1]), ear: 22 * s1pulse(q, 10.5, 11.1) + 12 * s1pulse(q, 25.8, 26.3), bob: .4 * (s1pulse(q, 10.55, 10.85) + s1pulse(q, 1.7, 2.1)) };+ // Soviet: barely moves, half-lidded; one slow blink at 13.2+ const slow = Math.max(s1pulse(q, 13.2, 13.8), s1pulse(q, 1.0, 1.5));+ const suP = { x: ALLEY.su, y: ALLEY.suY, s: SU.s, dir: -1, sit: 1, headR: suH, eyeX: suE, lids: .35 + .65 * Math.min(1, slow * 1.6) };++ vis(a.bowl, true); a.placeBowl(); // his empty bowl on the ground+ if (between(q, 10.5, 11.3)) plP.headR = -14 * s1pulse(q, 10.5, 11.3); // looks down at it on the growl+ a.us.pose(usP, f); a.pl.pose(plP, f); a.su.pose(suP, f);++ // the box: rubbish until "Chinese" (16.1); the eyes open at 17.6 and glance at the three+ const eyes = q >= 17.8 ? 1 : 0;+ let eyeX = .6, lids = 0, shut = false;+ if (q >= 17.8) lids = 1 - span(q, 17.8, 17.95);+ if (q >= 17.8 && q < 18.4) eyeX = 0; // opens straight at us+ if (q >= 18.4 && q < 20.0) eyeX = 0; // holds: "yes, me"+ if (q >= 20.0 && q < 23.3) eyeX = s1ramp(q, 20.0, 20.3, 0, 1); // slides right to the three+ if (q >= 20.4 && q < 23.3) lids = .3; // watching them+ if (between(q, 19.3, 19.3 + 2 / FPS)) shut = true; // blink in the slot+ if (q >= 23.3 && q < 24.5) { eyeX = 1; lids = .3 + .1 * s1pulse(q, 23.8, 24.4); } // toward the door, worried+ if (between(q, 24.0, 24.0 + 2 / FPS)) shut = true;+ if (between(q, 21.6, 21.6 + 2 / FPS)) shut = true;+ a.box.pose({ x: ALLEY.box, y: ALLEY.ground, eyes, eyeX, lids, shut }, f);++ a.kit.cook({ arm: cleaverAt(q, S1_RUNS), turn: 0 });+ a.kit.crack(0);+ });+}diff --git a/site/joke-collection/ch06/scene2.js b/site/joke-collection/ch06/scene2.jsnew file mode 100644index 0000000..f7d7b74--- /dev/null+++ b/site/joke-collection/ch06/scene2.js@@ -0,0 +1,116 @@+/* scene2.js — "Back home" (round 2). The American boasts (a cutaway to his front yard: he barks at a house, each bark+ harder, until the window flies up and a steak lands on his head), then demonstrates in the alley: two WOOFs, the+ chopping stops, the cook's shadow turns to the door, the eyes in the box sink; the chopping resumes ("Sooner or+ later."). Beat clock throughout. Alley 0–1.6 and 13.5–end; yard 1.6–13.5. Ends on AL_TRIO. */+'use strict';+const PRE2 = 1.0;+window.S2_STOP = 15.0;+const S2_RUNS = [[0, 15.55], [19.95, 26.0]];+chopSfx('scene2', S2_RUNS, { mute: [[1.6, 13.5]] }); // no kitchen in the yard; the chopping returning at 13.5 says we are back+roomSfx('scene2', [[0, 1.6], [13.5, 26]]);+// the yard barks, escalating and varied (sound, time, volume); the head throws further with each+const S2_BARKS = [['bark-big', 2.5, .55], ['bark-big2', 4.45, .6], ['bark-big3', 4.95, .7], ['bark-big', 5.45, .8], ['bark-big2', 5.95, .9], ['bark-big3', 6.35, 1], ['bark-big', 7.6, 1]];+S2_BARKS.forEach(([n, t, v]) => sfx('scene2', t, n, v));+const S2_BT = S2_BARKS.map(b => b[1]);+sfx('scene2', 1.6, 'whoosh', .6);+sfx('scene2', 13.5, 'whoosh', .6);+sfx('scene2', 8.55, 'sash');+sfx('scene2', 11.2, 'plop');+sfx('scene2', 12.9, 'gulp', .6);+sfx('scene2', 17.8, 'flap', .5);+sfx('scene2', 14.6, 'inhale-short', .5);+sfx('scene2', 15.5, 'woof', 2); // the demonstration: the loudest sound of the film+sfx('scene2', 15.95, 'woof', 2);+[17.85, 17.95, 18.05].forEach(t => sfx('scene2', t, 'tick', .6)); // the box trembling++// the bark in progress at q: index and how far into its 0.25 s head throw (0…1 on and off), or null+function s2bark(q) {+ for (let i = 0; i < S2_BT.length; i++) { const d = q - S2_BT[i]; if (d >= -.03 && d < .3) return { i, k: Math.min(1, (d + .03) / .05) * (d < .22 ? 1 : 1 - (d - .22) / .08) }; }+ return null;+}+// a little cream curtain behind the shut glass: twitches once and is still (the second window insert)+const s2curtain = '<g filter="url(#paper)"><path d="M0,0 H92 V176 Q80,184 68,176 Q56,184 46,176 Q34,184 22,176 Q10,184 0,176 Z" fill="#e8dcc0"/>' ++ '<path d="M18,6 V172 M38,6 V172 M58,6 V172 M78,6 V172" stroke="#c9b98f" stroke-width="5" opacity=".8"/><rect width="92" height="8" fill="#b9a67a"/></g>';++function scene2(p, D) {+ const a = alleySet(p), ac = a.cam, y = yardSet(p), yc = y.cam;+ const curtain = prop(yc.stage, s2curtain);+ const usA = { x: ALLEY.us, y: ALLEY.ground, s: US.s, dir: 1 }, plP = { x: ALLEY.pl, y: ALLEY.ground, s: PL.s, dir: -1, sit: 1 },+ suP = { x: ALLEY.su, y: ALLEY.suY, s: SU.s, dir: -1, sit: 1 };+ const usY = { x: YARD.us, y: YARD.y, s: YARD.s, dir: 1, sit: 1 };+ const [hx, hy] = dogHead(usY), hat = [hx - 14, hy - 12]; // the steak sits on the head, between its top and the ear+ const cuA0 = DOG_CU(usA), cuA = { ...cuA0, x: cuA0.x - 125 }, cuY = DOG_CU(usY); // cuA: the American alone, the Polish dog out of frame++ const cuP = { ...DOG_CU(plP), x: DOG_CU(plP).x + 150, y: DOG_CU(plP).y - 40 }; // the Polish dog and the Soviet dog's whole head, the American out+ // alley cuts: TRIO, close-up, TRIO, the demonstration close-up (snap push at the first WOOF), window, slot, the American waiting,+ // TRIO, window, slot, "Sooner or later.", the Polish dog's close-up, TRIO to end+ ac.cut(AL_TRIO, 0); ac.cut(cuA0, 1.2); ac.cut(AL_TRIO, 13.5); ac.cut(cuA, 14.6); ac.to({ ...cuA, z: cuA.z + .5 }, 15.5, .1);+ ac.cut(cuP, 16.3); ac.cut(AL_WINDOW, 16.6); ac.cut(AL_SLOT, 17.6); ac.cut(cuA, 18.2); ac.cut(AL_TRIO, 18.9); ac.cut(AL_WINDOW, 19.6); ac.cut(AL_SLOT, 20.4);+ ac.cut(cuA, 21.6); ac.cut(cuP, 23.0); ac.cut(AL_TRIO, 25.2);+ ac.shake(15.5, .15, 8); ac.shake(15.95, .15, 8);+ // yard cuts: wide, WOOF close-up, two-shot, close-ups with window inserts for the barks, the sash, waiting, the steak+ yc.cut(YARD_WIDE, 1.6); yc.cut(cuY, 2.45); yc.cut(YARD_TWO, 3.45);+ yc.cut(cuY, 4.38); yc.cut(YARD_WIN, 5.15); yc.cut(cuY, 5.75); yc.cut(YARD_WIN, 6.05); yc.cut(cuY, 6.58);+ yc.cut(YARD_WIN, 8.33); yc.cut(cuY, 9.3); yc.cut(YARD_TWO, 9.9); yc.cut(YARD_WIN, 10.3); yc.cut(cuY, 10.9);++ stopClock(D, (q, f) => {+ const yard = q >= 1.6 && q < 13.5;+ vis(ac.root, !yard); vis(yc.root, yard);+ ac.apply(q, f); yc.apply(q, f);+ const said = dogJaw(lips(q, 'scene2', PRE2, 's07', 's08')); // the American's mouth for his words++ /* ----- alley ----- */+ if (!yard) {+ a.steam(q); a.shade(1); vis(a.bowl, true); a.placeBowl();+ const demo = span(q, 14.6, 15.45), woof = barkJaw(q, [15.5, 15.95], .2), thrown = woof > .5 || between(q, 15.5, 15.75) || between(q, 15.95, 16.2);+ const grin = q >= 13.5 && q < 14.6, wait = q >= 18.2 && q < 19.6, shrug = q >= 21.6 && q < 23;+ const swell = q < 13.5 ? span(q, .1, 1.2) : q < 14.6 ? .35 : q < 15.5 ? demo : 1 - span(q, 15.6, 16.4);+ a.us.pose({ ...usA, swell, wag: !(q >= 15.5 && q < 18.2), tongue: grin || wait || q >= 20.5,+ headR: q < 13.5 ? 0 : q < 14.6 ? 4 : q < 15.5 ? 30 * demo : thrown ? 35 : q < 16.6 ? 8 : shrug ? (q < 22.3 ? 10 : 0) : 0,+ bob: thrown ? -10 : shrug && q >= 22.2 && q < 22.55 ? -8 * Math.sin(Math.PI * (q - 22.2) / .35) : 0,+ ear: thrown ? EAR_BACK : wait ? 16 : 0, jaw: Math.max(woof, wait ? .35 : grin ? .25 : said),+ eyeX: wait ? 1 : q >= 21.6 && q < 22.3 ? 0 : 0, shut: blinking(q, [2.4, 11, 17.6, 19.5]) || between(q, 22.6, 22.85) }, f);+ // the Polish dog: eyes on him; he looks back at the door (it is behind him) at 18.2 and 24.0; an ear goes up once; he glances down at his bowl at 19.0 and 24.9+ const door = q >= 18.2 && q < 19.6, plLook = q < 23 ? (q < 18.2 ? 1 : q < 19.6 ? -1 : 1) : 1 - 2 * (span(q, 23.5, 23.9) - span(q, 24.5, 24.9));+ const flinch = between(q, 16.3, 16.6) ? 1 : 0;+ a.pl.pose({ ...plP, eyeX: plLook, ear: between(q, 19.1, 19.4) || between(q, 24.05, 24.45) ? 30 : door ? 10 : flinch ? EAR_BACK : 0, headR: between(q, 16.3, 16.38) ? 8 : between(q, 19.0, 19.5) || between(q, 24.9, 25.15) ? -12 : q >= 23.5 && q < 24.7 ? 4 : 0, ...(flinch ? { lids: 0 } : {}),+ shut: blinking(q, [3.1, 8.7, 14.2, 20.3, 25.2]) }, f);+ a.su.pose({ ...suP, lids: .35, eyeX: q < 23.2 ? 1 : q < 24.2 ? -1 : 1, shut: blinking(q, [4.6, 12.8, 19.3, 24.8]) }, f);+ vis(a.cn.g, false);+ // the box: eyes in the hole; at 17.6 they widen (1 frame), shut and are gone, the box shakes and a flap jumps; they rise again slowly from 20.4+ const sink = q < 17.7 ? 0 : q < 20.4 ? span(q, 17.7, 17.95) : 1 - .5 * span(q, 20.5, 21.0) - .3 * span(q, 21.0, 21.6);+ a.box.pose({ x: ALLEY.box, y: ALLEY.ground, eyes: 1, sink, eyeX: q < 17.6 ? .6 : 1,+ lids: q >= 20.4 ? .3 : 0,+ shut: q < 17.6 ? blinking(q, [3, 7.5, 12.2]) : q >= 22 ? blinking(q, [22.4]) : false,+ flaps: between(q, 17.7, 17.85) ? .5 : 0,+ shake: q >= 17.7 && q < 18.0 ? 1 : 0 }, f);+ // the cook: chopping with the sounds; the arm rests raised while it is silent; he turns to the door 16.9–17.4 and back 19.6–20.1+ a.kit.cook({ arm: cleaverAt(q, S2_RUNS, 1), turn: span(q, 16.9, 17.4) * (1 - span(q, 19.6, 19.9)) });+ a.kit.crack(0);+ }++ /* ----- yard ----- */+ if (yard) {+ const b = s2bark(q), waiting = between(q, 9.3, 9.9), flight = q >= 10.3 && q < 11.2, landed = q >= 11.2;+ const i = b ? b.i : 0, throwR = b ? (20 + 20 * i / 6) * b.k : 0;+ const dip = landed ? Math.max(0, 1 - (q - 11.2) / .4) : 0, hit = landed && q < 11.45; // the head dips for 3 frames and bounces back+ const lift = b && i >= 3 ? b.k : 0, pant = q >= 6.7 && q < 7.5 && onTwos(q) > 0 ? .3 : 0, up = q >= 10.9 && q < 11.2;+ y.us.pose({ ...usY, ...(q >= 11.17 ? { hold: 'steak' } : {}), y: usY.y - 10 * lift, paw: 25 * lift, wag: q < 2.45 || q >= 10.4, tongue: q < 2.45 || landed || pant > 0 || waiting,+ headR: b ? throwR : hit ? -15 : up ? 25 : q < 2.45 ? 0 : q < 8.33 ? 10 : waiting ? 14 : landed ? 8 * span(q, 11.45, 11.7) : 10,+ bob: b ? -(8 + 4 * i / 6) * b.k : hit ? 14 : 0, ear: b ? EAR_BACK : hit ? EAR_BACK : waiting ? 16 : 0, swell: pant,+ jaw: Math.max(barkJaw(q, S2_BT), landed && q >= 11.7 && q < 13.5 ? .3 : 0, waiting ? .35 : 0, q < 2.45 || (q >= 3.45 && q < 4.38) || (q >= 6.58 && q < 7.5) || q >= 8.33 && q < 9.3 || q >= 9.9 && q < 11.2 ? said : 0),+ eyeX: landed && q >= 12.4 && q < 13.3 ? 1 : q >= 3.45 && q < 9.3 ? .8 : 0, lids: landed && q >= 12.4 && q < 13.3 ? .3 : 0,+ shut: blinking(q, [1.8, 3.9, 9.6, 13.2]) }, f);+ // the window: shut until the sash is shoved up at 8.55 (dark inside); once a curtain twitches behind the glass (6.25–6.5), then nothing+ y.win(span(q, 8.55, 8.9));+ const bu = Math.sin(Math.PI * span(q, 6.2, 6.5)); // it bulges in for 0.25 s, springs back and hangs still+ vis(curtain, between(q, 6.05, 6.6)); tf(curtain, `translate(962,308) scale(${(1 + .3 * bu).toFixed(3)},${(1 - .04 * bu).toFixed(3)}) skewY(${(6 * bu).toFixed(2)})`);+ // the steak: springs out spinning at 10.3, falls past the camera to his head at 11.2 (the close-up sees it drop in), then sits there+ vis(y.steak, q >= 10.3 && q < 11.17);+ if (q >= 10.3 && q < 11.17) {+ const u = Math.min(1, (q - 10.3) / .87), [sx, sy] = toss(u, YARD.from, hat, 210);+ tf(y.steak, `translate(${sx.toFixed(1)},${(sy + (landed ? (b ? 0 : (hit ? 14 : 0)) : 0)).toFixed(1)}) rotate(${(landed ? -8 : 540 * u - 10).toFixed(1)}) scale(.62)`);+ }+ }+ });+}diff --git a/site/joke-collection/ch06/scene3.js b/site/joke-collection/ch06/scene3.jsnew file mode 100644index 0000000..dd9243c--- /dev/null+++ b/site/joke-collection/ch06/scene3.js@@ -0,0 +1,103 @@+/* scene3.js — What is meat? The Polish dog drops his bowl; the chopping stops; the Poland cutaway; the Soviet dog's+ "What is barking?"; the USSR cutaway (the puppy's silent mouth); the stunned trio. Beat clock; speech from PRE3. */+'use strict';+const PRE3 = 2.8;+const S3_RUNS = [[0, 1.0], [3.0, 40]];+chopSfx('scene3', S3_RUNS, { mute: [[5.1, 10.8], [16.5, 21.9]], quiet: [[3.0, 3.6, .15]] });+roomSfx('scene3', [[0, 5.1], [10.8, 16.5], [21.9, 23.7]]);+sfx('scene3', .1, 'scrape', .6); sfx('scene3', .45, 'scrape', .6); // he licks the empty bowl+sfx('scene3', 1.0, 'clang');+sfx('scene3', 5.1, 'wind-pl', .4);+for (let t = 5.7; t < 6.1; t += 1 / 6) sfx('scene3', +t.toFixed(3), 'patter1', .5); // the queue shuffles one step+sfx('scene3', 8.5, 'shutter');+sfx('scene3', 16.5, 'wind-su', .45); sfx('scene3', 20.3, 'wind-su', .45);+sfx('scene3', 18.15, 'yip-cut', .5); // the puppy's yip, cut off: then nothing++function scene3(p, D) {+ const a = alleySet(p), c = a.cam, b = butcherSet(p), sn = snowSet(p), sv = sn.cam;+ // the alley's poses, shared by every alley shot+ const usP = { x: ALLEY.us, y: ALLEY.ground, s: US.s, dir: 1 }, plP = { x: ALLEY.pl, y: ALLEY.ground, s: PL.s, dir: -1, sit: 1 },+ suP = { x: ALLEY.su, y: ALLEY.suY, s: SU.s, dir: -1, sit: 1 };+ // alley: 0 AL_LICK (he licks the bowl, freezes at .55, his paw knocks it at .85), .9 the bowl spins and settles (AL_BOWL), 1.5 the window, 2.0 the eyes flinch,+ // 2.6 Polish CU ("What is meat?"), 4.0 American CU, 10.8 trio, 11.8 Soviet CU, 14.4 American CU, 15.7 Polish CU, 21.9 trio+ [[AL_LICK, 0], [AL_BOWL, .9], [AL_WINDOW, 1.5], [AL_SLOT, 2.0], [plP, 2.6], [usP, 4.0], [AL_TRIO, 10.8], [suP, 11.8], [usP, 14.4], [plP, 15.7], [AL_TRIO, 21.9]]+ .forEach(([v, t]) => c.cut(v.s ? DOG_CU(v) : v, t));+ // Poland: 5.1 wide (where we are), 5.7 pan along the queue (front to tail), 6.7 hooks, 7.4 the end, 8.5 the shutter, 9.9 the end+ b.cam.cut(BU_WIDE, 5.1); b.cam.cut(BU_FRONT, 5.7); b.cam.to({ x: 560, y: 640, z: 2.2 }, 5.7, 1.0);+ b.cam.cut(BU_HOOKS, 6.7); b.cam.cut(BU_END, 7.4); b.cam.cut(BU_DOOR, 8.5); b.cam.cut(BU_END, 9.9);+ const SNPUP = { ...SN_PUP, x: SN_PUP.x - 50 }; // keeps the leftmost dog's muzzle inside the frame+ // USSR: 16.5 wide, 18.1 the puppy, 19.1 the row, 20.3 the puppy, 21.3 the row+ [[SN_WIDE, 16.5], [SNPUP, 18.1], [SN_ROW, 19.1], [SNPUP, 20.3], [SN_ROW, 21.3]].forEach(([v, t]) => sv.cut(v, t));++ const pulse = (q, t0, d = .25) => q >= t0 && q < t0 + d ? Math.sin(Math.PI * (q - t0) / d) : 0;+ stopClock(D, (q, f) => {+ const inAlley = q < 5.1 || (q >= 10.8 && q < 16.5) || q >= 21.9, inPL = q >= 5.1 && q < 10.8, inSU = q >= 16.5 && q < 21.9;+ vis(c.root, inAlley); vis(b.cam.root, inPL); vis(sv.root, inSU);+ if (inAlley) alley(q, f);+ if (inPL) poland(q, f);+ if (inSU) ussr(q, f);+ });++ function alley(q, f) {+ c.apply(q, f); a.steam(q); a.shade(1);+ const spkPL = dogJaw(lips(q, 'scene3', PRE3, 's09')), spkSU = dogJaw(lips(q, 'scene3', PRE3, 's10'), .25);+ // Polish dog: licks the bowl on twos (to .55), freezes mid-lick (tongue out, eyes up), his paw slips at .85 and knocks it;+ // he looks at it, sits up at 2.6, speaks at 2.8+ const lickJ = q < .55 ? (onTwos(q) > 0 ? .4 : .25) : .3, lickR = q < .55 ? (onTwos(q) > 0 ? -26 : -32) : -26;+ const licking = q < 2.6;+ const headPL = licking ? (q < .9 ? lickR : -26 + 8 * span(q, .9, 1.4) - 10 * span(q, 2.0, 2.6)) : 0;+ const eyePL = q < .55 ? 0 : q < .9 ? 1 : q < 2.0 ? -.4 : q < 2.6 ? -.4 * (1 - span(q, 2.2, 2.6)) + .2 * span(q, 2.4, 2.6) : 1;+ a.pl.pose(licking ? { ...plP, ...PL_LICK, sit: 0, headR: headPL, jaw: q < .9 ? lickJ : .3 * (1 - span(q, .9, 1.8)), tongue: q < 1.3, eyeX: eyePL,+ paw: q >= .85 && q < 1.5 ? 35 * (q < .92 ? span(q, .85, .92) : 1 - span(q, 1.2, 1.5)) : 0, shut: q >= 2.2 && q < 2.3 }+ : { ...plP, jaw: q < 2.8 ? 0 : spkPL, eyeX: q >= 10.8 ? 1 : eyePL, lids: q >= 15.7 && q < 16.5 ? .3 : 0, shut: blinking(q, [3.2 + 3, 6.0, 16.0, 22.6]),+ ear: q >= 21.9 ? 20 * pulse(q, 22.0, .4) : q >= 15.7 ? 25 * pulse(q, 15.9, .3) : 0 }, f);+ // the bowl: at BOWL_AT until the paw knocks it (.85); it spins (cos of 0 -> 3 pi), rocks 8, -6, 3 and settles at BOWL_KNOCKED by 1.5+ vis(a.bowl, true);+ {+ const u = span(q, .88, 1.5), k = [[.88, 0], [1.05, 8], [1.2, -6], [1.35, 3], [1.5, BOWL_KNOCKED.rot]];+ let r = q < .88 ? 0 : BOWL_KNOCKED.rot; for (let i = 1; i < k.length; i++) if (q >= k[i - 1][0] && q < k[i][0]) r = k[i - 1][1] + (k[i][1] - k[i - 1][1]) * (q - k[i - 1][0]) / (k[i][0] - k[i - 1][0]);+ const spin = q >= .9 && q < 1.4 ? Math.cos(3 * Math.PI * (q - .9) / .5) : 1;+ a.placeBowl(q >= .88 && q < 1.2 ? 18 * Math.sin(Math.PI * (q - .88) / .32) : 0, r, BOWL_KNOCKED.dx * span(q, .88, 1.4), spin);+ }+ // American: the double take (jaw open, tongue out, two blinks), later the big reaction; jaw hangs to the end+ const take = between(q, 4.0, 5.1), big = between(q, 14.4, 15.7), pop = big ? Math.sin(Math.PI * Math.min(1, (q - 14.4) / .5)) : 0;+ a.us.pose({ ...usP, tongue: take || q >= 21.9, jaw: take ? .55 : big ? .65 : q >= 21.9 ? .7 : 0,+ headR: big ? 8 * pop : 0, bob: big ? -14 * pop : 0, ear: big && q < 14.9 ? 35 : 0,+ eyeX: q >= 10.8 && q < 14.4 ? 1 : 0, lids: take || big ? 0 : .1, shut: blinking(q, [1.8, 4.3, 4.8, 12.4, 15.2, 22.5]) }, f);+ // Soviet dog: barely moves; at 11.8 his eyes slide to the American, a breath; speaks at 13.25 with head and ear (muzzle)+ const nod = (q >= 13.25 && q < 13.4) || (q >= 13.68 && q < 13.83) ? 3 : 0;+ a.su.pose({ ...suP, lids: .35, eyeX: q < 11.8 ? 0 : 1, headR: nod, ear: pulse(q, 13.9, .25) * 20, swell: between(q, 12.2, 13.2) ? .4 * span(q, 12.2, 13.0) : 0,+ jaw: spkSU, shut: blinking(q, [3.4, 9.0, 13.0, 23.0]) }, f);+ vis(a.cn.g, false);+ // the eyes in the box: widen (2.0, 1 frame), squeeze and sink half at 2.08, hold .6 s, then ease back+ const lid = q < 2.0 ? 0 : q < 2.08 ? 0 : q < 2.6 ? .55 : .55 - .3 * span(q, 2.6, 3.2);+ a.box.pose({ x: ALLEY.box, y: ALLEY.ground, eyes: 1, eyeX: .6, lids: q >= 3.2 ? .25 : lid, shut: q >= 2.08 && q < 2.2 || blinking(q, [4.2, 13.0, 19.6]),+ shake: q >= 2.08 && q < 2.4 ? .6 : 0 }, f);+ a.kit.cook({ arm: cleaverAt(q, S3_RUNS), turn: 0 }); a.kit.crack(0);+ }++ function poland(q, f) {+ b.cam.apply(q, f);+ const step = span(q, 5.7, 6.1), dx = 70 * step, wk = between(q, 5.7, 6.15), sad = span(q, 9.0, 9.7), hope = between(q, 7.4, 8.5);+ const nudge = i => q >= 5.75 + i * .06 && q < 5.75 + i * .06 + 2 / FPS; // each dog dips its nose to its bowl as the queue steps+ const front = span(q, 9.35, 9.5); // the two front dogs' ears drop together as the shutter bangs (9.5)+ b.queue.forEach((d, i) => {+ const hop = i === 1 ? 150 * span(q, 7.0, 7.15) : 0; // a hopeful nose pokes up into the hooks frame+ d.pose({ x: BUTCHER.queue[i] + dx - (hop ? 110 : 0), y: BUTCHER.y - hop, s: BUTCHER.s, dir: 1, walk: wk, lids: .3 + .2 * sad, ear: i < 2 ? -35 * front : -30 * sad,+ shut: blinking(q, [6.3 + i * .7, 9.0 + i * .3]), headR: hop ? 22 : nudge(i) ? -15 : -6 * sad }, f);+ const [bx, by] = bowlAhead({ x: BUTCHER.queue[i] + dx, y: BUTCHER.y, s: BUTCHER.s, dir: 1 }); tf(b.bowls[i], `translate(${bx},${by - 18 * BUTCHER.s}) scale(${BUTCHER.s})`);+ });+ b.pl.pose({ x: BUTCHER.pl + dx, y: BUTCHER.y, s: BUTCHER.s * 1.05, dir: 1, walk: wk, wag: hope, headR: hope ? 10 : nudge(5) ? -15 : -28 * sad,+ lids: .45 * sad, ear: -30 * sad, shut: blinking(q, [6.0, 8.0, 10.3]) }, f);+ { const [bx, by] = bowlAhead({ x: BUTCHER.pl + dx, y: BUTCHER.y, s: BUTCHER.s * 1.05, dir: 1 }); tf(b.bowls[5], `translate(${bx},${by - 18 * BUTCHER.s}) scale(${BUTCHER.s})`); }+ b.shutter(span(q, 8.5, 9.5));+ }++ function ussr(q, f) {+ sv.apply(q, f); sn.snow(q);+ const turned = i => q >= 19.1 + (SNOW.row.length - 1 - i) * (2 / FPS) && q < 21.3;+ sn.row.forEach((d, i) => d.pose({ x: SNOW.row[i] - (turned(i) ? 45 : 0), y: SNOW.y, s: SNOW.s, dir: turned(i) ? 1 : -1, sit: 1, lids: .4, shut: blinking(q, [17.0 + i * .5]) }, f));+ const open = q < 20.3 ? span(q, 18.12, 18.22) : 1 - span(q, 20.3, 21.0);+ sn.pup.pose({ x: SNOW.pup, y: SNOW.y, s: .5, dir: -1, sit: 1, jaw: .7 * open, ear: q > 20.3 ? EAR_FLAT : 0, shut: blinking(q, [17.4, 20.8]), headR: q >= 18.12 && q < 20.3 ? 12 : 0 }, f);+ }+}diff --git a/site/joke-collection/ch06/scene4.js b/site/joke-collection/ch06/scene4.jsnew file mode 100644index 0000000..3bc0a5a--- /dev/null+++ b/site/joke-collection/ch06/scene4.js@@ -0,0 +1,136 @@+/* scene4.js — Shh. (round 2) The American's jaw still hangs from scene 3; "Barking!" (the chopping is already silent),+ the shadow turns, the breath; the Chinese dog rises and shushes; the three look; "Don't bark, or you are the meat."+ then the held silence: the American frozen, the Polish dog reads his ribs, the Soviet dog's eyes slide, the bubble+ (the steak is him), the gulp, the shadow leaves, the door cracks, the dive, eight eyes, the smothered woof, the door+ shuts, the chopping returns; title card; the box walks away on sixteen legs.+ Shots (beat clock): TRIO 0 · CU US 0.8 · WIN 2.2 · CU US 2.6 (breath, push from 3.1) · BOX 4.7 · CU CN shh 5.95 ·+ CU US 6.65 · CU PL 7.15 · CU SU 7.65 · WIDE 8.15 · two-shot 8.85 · CN single 9.3 · WIN 9.55 · CN single 10.2 ·+ CU US frozen 13.5 · CU PL ribs 14.7 · CU SU 15.5 · US + bubble 16.0 · WIN 17.5 · DOOR 18.8 · BOX_WIDE dive 19.8 ·+ BOX 20.6 · GAG 21.6 · BOX 22.9 · WIDE 23.5 · SLOT 25.0 · card 25.6 · TAG 28.9. */+'use strict';+const PRE4 = 0.8;+const S4_RUNS = [[0, 1.0], [24.5, 26.5], [28.9, 32.3]];+chopSfx('scene4', S4_RUNS);+roomSfx('scene4', [[0, 25.6], [29.0, 32.3]]);+sfx('scene4', 3.05, 'inhale', .7);+sfx('scene4', 4.7, 'flap', .6);+sfx('scene4', 16.4, 'tick');+sfx('scene4', 17.1, 'gulp', 1);+sfx('scene4', 17.55, 'chop', .35); // the knife put down+sfx('scene4', 18.2, 'step1', .3); sfx('scene4', 18.6, 'step1', .3); // the cook walks to the door+sfx('scene4', 19.0, 'creak');+sfx('scene4', 19.85, 'whoosh');+[20.0, 20.2, 20.4].forEach(t => sfx('scene4', t, 'thud'));+sfx('scene4', 21.6, 'sniff', .5);+sfx('scene4', 22.1, 'woof-mf', .8);+sfx('scene4', 23.6, 'creak');+sfx('scene4', 24.2, 'latch');+sfx('scene4', 25.6, 'sting');+sfx('scene4', 26.4, 'tick');+for (let t = 29.4; t < 31.9; t += 1 / 6) sfx('scene4', +t.toFixed(3), 'patter1', .3);++// the poses the close-ups are cut from (a close-up is given the pose the puppet has)+const S4_USX = 640;+const s4us = (o = {}) => ({ x: S4_USX, y: ALLEY.ground, s: US.s, dir: 1, ...o });+const s4pl = (o = {}) => ({ x: ALLEY.pl, y: ALLEY.ground, s: PL.s, dir: -1, sit: 1, ...o });+const s4su = (o = {}) => ({ x: ALLEY.su, y: ALLEY.suY, s: SU.s, dir: -1, sit: 1, ...o });+const s4cn = (o = {}) => ({ ...ALLEY.cnUp, s: CN.s, dir: 1, sit: 1, ...o });+const s4lin = (q, a, b, x0, x1) => x0 + (x1 - x0) * Math.min(1, Math.max(0, (q - a) / (b - a)));+const s4off = (v, dx, dy, z) => ({ x: v.x + dx, y: v.y + dy, z: z ?? v.z });++function scene4(p, D) {+ const a = alleySet(p), c = a.cam, th = thought(c.stage), card = titleCard(p);+ const [hx, hy] = dogHead(s4us({ dir: -1 })), usCU = DOG_CU(s4us()), cnCU = s4off(DOG_CU(s4cn(), 3.6), -70, 0), cnShh = DOG_CU(s4cn(), 4.2);+ const breath = s4off(DOG_CU(s4us(), 3.1), -50, 22), TWO = { x: 470, y: 650, z: 2.8 }, plLook = { x: 970, y: 690, z: 2.6 };+ const bubV = { x: hx - 70, y: hy - 75, z: 2.2 }, bubPush = { x: hx - 80, y: hy - 80, z: 2.35 };+ c.cut(AL_TRIO, 0); c.cut(usCU, .8); c.cut(AL_WINDOW, 2.2);+ c.cut(breath, 2.6); c.to(s4off(DOG_CU(s4us(), 3.9), -50, 22), 3.1, 1.6); // the breath: his chest, a slow push+ c.cut(AL_BOX, 4.7); c.cut(cnShh, 5.95); c.cut(usCU, 6.75);+ c.cut(DOG_CU(s4pl()), 7.25); c.cut(s4off(DOG_CU(s4su()), 0, -50), 7.75); c.cut(AL_WIDE, 8.25);+ c.cut(TWO, 8.95); c.cut(cnCU, 9.3); c.cut(AL_WINDOW, 9.55); c.cut(cnCU, 10.2);+ c.cut(DOG_CU(s4us({ dir: -1 }), 3.6), 13.5); c.cut(plLook, 14.7); c.cut(DOG_CU(s4su(), 3.6), 15.5);+ c.cut(bubV, 16.0); c.to(bubPush, 16.4, .15);+ c.cut(AL_WINDOW, 17.28); c.cut(AL_DOOR, 18.8); c.cut(AL_BOX_WIDE, 19.8); c.cut(AL_BOX, 20.6);+ c.cut(AL_GAG, 21.6); c.cut(AL_BOX, 22.9); c.cut(AL_WIDE, 23.5); c.cut(AL_SLOT, 25.0); c.cut(AL_TAG, 28.9);+ const dark = q => between(q, 21.3, 23.5) ? .5 : (between(q, 4.7, 6.75) || between(q, 8.95, 13.5) || between(q, 20.6, 23.5) || between(q, 25, 25.6)) ? .4 : 1;+ stopClock(D, (q, f) => {+ const title = between(q, 25.6, 28.9);+ vis(c.root, !title); if (title) { card.at(q, 25.6); return; } vis(card, false);+ c.apply(q, f); a.steam(q); a.shade(dark(q));++ // ---- the American: jaw hangs (scene 3), shuts and steps, shouts, the breath, deflates, faces LEFT (the box) from 7.25,+ // freezes, feels the looks, the bubble, the gulp, snaps to the door at 17.25, dives+ const usDir = q < 7.25 ? 1 : q < 17.2 ? -1 : q < 19.8 ? 1 : -1;+ const jumpU = span(q, 19.8, 20.0), jumping = between(q, 19.8, 20.0);+ const usX = q < 19.8 ? s4lin(q, .6, .85, 600, S4_USX) : s4lin(q, 19.8, 20.0, S4_USX, 240);+ const usJaw = q < .6 ? .85 : q < .8 ? .85 * (1 - span(q, .6, .8)) : q < 2.95 ? dogJaw(lips(q, 'scene4', PRE4, 's11'))+ : q < 3.1 ? 0 : q < 6.75 ? .2 + .3 * span(q, 3.1, 4.7) : q < 13.5 ? .5 * (1 - span(q, 6.75, 7.25)) : q < 14.7 ? .15 : .1;+ const frozen = between(q, 13.5, 14.7);+ const gulp = between(q, 17.1, 17.3), toDoor = between(q, 17.2, 17.5);+ const usEye = q < 6.75 ? .6 : q < 7.25 ? -1 : q < 14.4 ? .7 : q < 16.0 ? .3 : between(q, 16.0, 16.15) || between(q, 16.3, 16.45) ? -1 : q < 17.2 ? .3 : 1;+ vis(a.us.g, q < 20.0);+ a.us.pose({ x: usX, y: jumping ? ALLEY.ground - 110 * Math.sin(Math.PI * jumpU) : ALLEY.ground, s: US.s, dir: usDir,+ swell: span(q, 3.1, 4.7) * (1 - span(q, 6.75, 7.25)), jaw: usJaw, tongue: q < .6 ? 1 : 0,+ wag: !frozen && q >= .8 && q < 2.2, walk: between(q, .6, .85), rot: jumping ? -10 + 45 * jumpU : 0, paw: jumping ? 60 : 0,+ headR: (q < 3.1 ? 6 : 6 + 24 * span(q, 3.1, 4.5)) * (1 - span(q, 6.75, 7.2)) + (gulp ? -8 : 0),+ bob: gulp ? 6 : 0, eyeX: usEye, lids: toDoor ? 0 : 0,+ shut: !frozen && blinking(q, [1.9, 5.0, 9.7, 11.6, 16.6]) || blinking(q, [14.0, 15.6]) }, f);++ // ---- the Polish dog: his bowl on the ground; spring and jerk at the shush; reads his ribs, then the American's+ // rump; at 19.3 his head snaps to the door; leaps from his seat (off-screen right) head first+ const plU = span(q, 19.95, 20.2), plJump = between(q, 19.95, 20.2);+ const look = q < 14.7 ? 1 : q < 15.1 ? -1 : 1, down = span(q, 14.7, 15.0) * (1 - span(q, 15.0, 15.3));+ vis(a.pl.g, q < 20.2); vis(a.bowl, true); a.placeBowl(0, BOWL_KNOCKED.rot, BOWL_KNOCKED.dx);+ a.pl.pose(s4pl({ x: q < 19.95 ? ALLEY.pl : s4lin(q, 19.95, 20.2, ALLEY.pl, 240), y: plJump ? ALLEY.ground - 110 * Math.sin(Math.PI * plU) : ALLEY.ground,+ dir: q >= 19.95 ? -1 : q >= 19.3 ? 1 : -1, sit: q < 19.7 ? 1 : 0, rot: plJump ? -10 + 45 * plU : 0, paw: plJump ? 60 : 0,+ eyeX: q < 7.25 ? 0 : q < 14.7 ? 1 : look, headR: (between(q, 7.25, 7.35) ? 12 : 0) - 25 * down,+ ear: between(q, 7.3, 7.5) ? 40 : 0, shut: blinking(q, [3.1, 7.5, 10.9, 15.9, 18.4]) }), f);++ // ---- the Soviet dog: barely moves; his half-lids lift at the shush; his eyes slide to the box, later to the+ // American; his head snaps to the door at 19.47 (two frames after the Polish dog's)+ const suU = span(q, 20.15, 20.4), suJump = between(q, 20.15, 20.4);+ vis(a.su.g, q < 20.4);+ a.su.pose(s4su({ x: q < 20.15 ? ALLEY.su : s4lin(q, 20.15, 20.4, ALLEY.su, 240), y: suJump ? ALLEY.suY - 90 * Math.sin(Math.PI * suU) + 28 * suU : ALLEY.suY,+ dir: q >= 20.15 ? -1 : q >= 19.47 ? 1 : -1, sit: q < 19.9 ? 1 : 0, rot: suJump ? -10 + 45 * suU : 0, paw: suJump ? 60 : 0,+ lids: q < 7.75 ? .35 : q < 8.2 ? .35 - .25 * span(q, 7.75, 8.0) : q < 15.5 ? .1 : .2,+ eyeX: q < 7.75 ? 0 : q < 15.5 ? .9 * span(q, 7.75, 8.2) : .9, shut: blinking(q, [2.6, 9.2, 12.0, 16.6]) }), f);++ // ---- the Chinese dog: rises from deep inside at 5.0, shh paw 5.85–7.3, looks up at the American, at the door,+ // the punchline, the nod at "meat", then ducks back into the box 13.1–13.3 (his eyes appear that same frame)+ const cnOn = q >= 5.0 && q < 13.25;+ const rise = 130 * (1 - span(q, 5.0, 5.4)) + 130 * span(q, 13.1, 13.25);+ const glance = between(q, 9.3, 9.55), nod = between(q, 12.0, 12.25), up = between(q, 8.95, 9.3);+ vis(a.cn.g, cnOn);+ a.cn.pose(s4cn({ y: ALLEY.cnUp.y + rise, ear: EAR_FLAT, lids: .25, hold: between(q, 5.85, 7.3) ? 'shh' : undefined,+ jaw: dogJaw(lips(q, 'scene4', PRE4, 's12', 's13'), .4), headR: glance ? 12 : up ? 8 : nod ? -8 : q >= 10.2 && q < 13.1 ? -3 : 0,+ eyeX: glance ? 1 : up ? .5 : 1, shut: blinking(q, [6.9, 9.0, 9.9, 12.8]) }), f);++ // ---- the box: flaps up at 4.7; the dive (bulge, flap slap, hat bounce from 20.4); eight eyes; the light; the+ // American's mouth and the paws; sixteen legs and the walk+ const thud = between(q, 20.0, 20.1) || between(q, 20.2, 20.3) || between(q, 20.4, 20.5);+ const bulge = q < 20.0 ? 0 : q < 20.2 ? .45 : q < 20.4 ? .75 : 1.1;+ const flaps = q < 4.7 ? 0 : q < 13.1 ? .6 * span(q, 4.7, 5.0) : q < 13.3 ? .6 * (1 - span(q, 13.1, 13.25)) : q < 19.8 ? 0 : thud ? .5 : span(q, 19.8, 19.95);+ const four = q >= 20.4, eyes = four ? 4 : cnOn ? 0 : 1;+ const walking = q >= 29.4, boxX = q < 28.9 ? ALLEY.box : 470 - (walking ? 240 * (q - 29.4) : 0);+ const light = q >= 21.3, clamp = span(q, 22.1, 22.45) * (1 - span(q, 24.4, 24.8)) - (between(q, 22.6, 22.77) ? .08 : 0);+ a.box.pose({ x: boxX, y: ALLEY.ground - (walking ? 5 * (onTwos(q) > 0 ? 1 : 0) : 0) + (between(q, 20.4, 20.48) ? 6 : 0), flaps: q >= 29.4 ? .5 : flaps, eyes,+ eyeX: four ? (q >= 28.9 ? (between(q, 30.4, 30.8) ? 1 : -1) : light && q < 22.9 ? 1 : Math.sin(q * 3.3)) : 1,+ stuffed: q >= 20.4, hatDy: -14 * (1 - span(q, 20.4, 20.6)), bulge, light: span(q, 21.3, 21.5) * (q < 24.0 ? 1 : 1 - span(q, 24.0, 24.2)),+ shake: thud ? 1 : between(q, 22.1, 22.9) ? .5 : 0,+ tail: 10 + (four && q >= 21.3 && q < 22.1 ? 15 * onTwos(q) : 0),+ lids: eyes === 4 ? [q >= 22.1 && q < 23.1 ? .8 : q >= 21.3 && q < 22.1 ? 0 : .25, .1, .4, .3] : .2,+ shut: eyes === 4 ? [blinking(q, [21.0, 23.6, 25.2, 26.9]), blinking(q, [21.4, 22.7, 25.2, 27.3]), blinking(q, [20.9, 24.0, 25.2, 26.5]), blinking(q, [21.7, 23.0, 25.2, 27.0])] : blinking(q, [3.2, 17.0, 19.0]),+ mouth: span(q, 21.6, 21.8) * (1 - span(q, 23.0, 23.2)), clamp,+ legs: q >= 29.4, walk: walking ? q : 0 }, f);++ // ---- the thought bubble: the steak (16.1), the steak is him (16.4) and blinks (16.7), gone at 17.05+ th.pose({ x: hx - 130, y: hy - 125, tx: hx, ty: hy - 30, s: .68, u: between(q, 16.1, 17.05) ? span(q, 16.1, 16.45) : 0, me: q >= 16.4, q, blink: between(q, 16.7, 16.8) });++ // ---- the kitchen: cleaver up when silent; the shadow turns at 2.2, tilts its head to listen at 9.8, leaves at 17.5,+ // is back at 24.2; the door cracks at 18.8, its light creeps to the box (reaches it at .9), the door shuts 23.6–24.2+ const crack = q < 18.8 ? 0 : q < 19.8 ? .6 * span(q, 18.8, 19.8) : q < 20.6 ? .6 : q < 21.3 ? .6 + .3 * span(q, 20.6, 21.3) : q < 23.6 ? .9 : .9 * (1 - span(q, 23.6, 24.2));+ const turn = q < 24.2 ? span(q, 2.2, 2.6) * (between(q, 9.8, 10.05) ? .78 : 1) : 1 - span(q, 24.2, 24.4);+ a.kit.cook({ arm: cleaverAt(q, S4_RUNS), turn, show: !between(q, 17.5, 24.2) });+ a.kit.crack(crack);+ });+}diff --git a/site/joke-collection/img/props/bowl.webp b/site/joke-collection/img/props/bowl.webpnew file mode 100644index 0000000..83b7c9fBinary files /dev/null and b/site/joke-collection/img/props/bowl.webp differdiff --git a/site/joke-collection/img/props/steak.webp b/site/joke-collection/img/props/steak.webpnew file mode 100644index 0000000..dbd8f09Binary files /dev/null and b/site/joke-collection/img/props/steak.webp differdiff --git a/site/joke-collection/img/puppets/02479eec.webp b/site/joke-collection/img/puppets/02479eec.webpnew file mode 100644index 0000000..6d4ece9Binary files /dev/null and b/site/joke-collection/img/puppets/02479eec.webp differdiff --git a/site/joke-collection/img/puppets/025905b2.webp b/site/joke-collection/img/puppets/025905b2.webpnew file mode 100644index 0000000..aff670bBinary files /dev/null and b/site/joke-collection/img/puppets/025905b2.webp differdiff --git a/site/joke-collection/img/puppets/03e278b8.webp b/site/joke-collection/img/puppets/03e278b8.webpnew file mode 100644index 0000000..5a906b0Binary files /dev/null and b/site/joke-collection/img/puppets/03e278b8.webp differdiff --git a/site/joke-collection/img/puppets/042542e9.webp b/site/joke-collection/img/puppets/042542e9.webpnew file mode 100644index 0000000..51ebeebBinary files /dev/null and b/site/joke-collection/img/puppets/042542e9.webp differdiff --git a/site/joke-collection/img/puppets/04b0a808.webp b/site/joke-collection/img/puppets/04b0a808.webpnew file mode 100644index 0000000..fc58524Binary files /dev/null and b/site/joke-collection/img/puppets/04b0a808.webp differdiff --git a/site/joke-collection/img/puppets/06f477dc.webp b/site/joke-collection/img/puppets/06f477dc.webpnew file mode 100644index 0000000..8014a70Binary files /dev/null and b/site/joke-collection/img/puppets/06f477dc.webp differdiff --git a/site/joke-collection/img/puppets/07386792.webp b/site/joke-collection/img/puppets/07386792.webpnew file mode 100644index 0000000..4a64ddeBinary files /dev/null and b/site/joke-collection/img/puppets/07386792.webp differdiff --git a/site/joke-collection/img/puppets/07c2a213.webp b/site/joke-collection/img/puppets/07c2a213.webpnew file mode 100644index 0000000..ee24ce6Binary files /dev/null and b/site/joke-collection/img/puppets/07c2a213.webp differdiff --git a/site/joke-collection/img/puppets/07fee382.webp b/site/joke-collection/img/puppets/07fee382.webpnew file mode 100644index 0000000..edcf12fBinary files /dev/null and b/site/joke-collection/img/puppets/07fee382.webp differdiff --git a/site/joke-collection/img/puppets/0809ab82.webp b/site/joke-collection/img/puppets/0809ab82.webpnew file mode 100644index 0000000..5c49f51Binary files /dev/null and b/site/joke-collection/img/puppets/0809ab82.webp differdiff --git a/site/joke-collection/img/puppets/09cb69d1.webp b/site/joke-collection/img/puppets/09cb69d1.webpnew file mode 100644index 0000000..591ee82Binary files /dev/null and b/site/joke-collection/img/puppets/09cb69d1.webp differdiff --git a/site/joke-collection/img/puppets/0aca4d46.webp b/site/joke-collection/img/puppets/0aca4d46.webpnew file mode 100644index 0000000..7f75ac1Binary files /dev/null and b/site/joke-collection/img/puppets/0aca4d46.webp differdiff --git a/site/joke-collection/img/puppets/0b9f8b1f.webp b/site/joke-collection/img/puppets/0b9f8b1f.webpnew file mode 100644index 0000000..cc1f424Binary files /dev/null and b/site/joke-collection/img/puppets/0b9f8b1f.webp differdiff --git a/site/joke-collection/img/puppets/0e72e404.webp b/site/joke-collection/img/puppets/0e72e404.webpnew file mode 100644index 0000000..81b1ed2Binary files /dev/null and b/site/joke-collection/img/puppets/0e72e404.webp differdiff --git a/site/joke-collection/img/puppets/0f6d734f.webp b/site/joke-collection/img/puppets/0f6d734f.webpnew file mode 100644index 0000000..d68a61dBinary files /dev/null and b/site/joke-collection/img/puppets/0f6d734f.webp differdiff --git a/site/joke-collection/img/puppets/0ff9c0c9.webp b/site/joke-collection/img/puppets/0ff9c0c9.webpnew file mode 100644index 0000000..a5ac0dbBinary files /dev/null and b/site/joke-collection/img/puppets/0ff9c0c9.webp differdiff --git a/site/joke-collection/img/puppets/10130f44.webp b/site/joke-collection/img/puppets/10130f44.webpnew file mode 100644index 0000000..ef729baBinary files /dev/null and b/site/joke-collection/img/puppets/10130f44.webp differdiff --git a/site/joke-collection/img/puppets/11cfa291.webp b/site/joke-collection/img/puppets/11cfa291.webpnew file mode 100644index 0000000..05956d3Binary files /dev/null and b/site/joke-collection/img/puppets/11cfa291.webp differdiff --git a/site/joke-collection/img/puppets/1c3b2fd5.webp b/site/joke-collection/img/puppets/1c3b2fd5.webpnew file mode 100644index 0000000..08a58e3Binary files /dev/null and b/site/joke-collection/img/puppets/1c3b2fd5.webp differdiff --git a/site/joke-collection/img/puppets/1ca3dd94.webp b/site/joke-collection/img/puppets/1ca3dd94.webpnew file mode 100644index 0000000..3443fcdBinary files /dev/null and b/site/joke-collection/img/puppets/1ca3dd94.webp differdiff --git a/site/joke-collection/img/puppets/1ea06a35.webp b/site/joke-collection/img/puppets/1ea06a35.webpnew file mode 100644index 0000000..2f34184Binary files /dev/null and b/site/joke-collection/img/puppets/1ea06a35.webp differdiff --git a/site/joke-collection/img/puppets/1f484f37.webp b/site/joke-collection/img/puppets/1f484f37.webpnew file mode 100644index 0000000..23274ffBinary files /dev/null and b/site/joke-collection/img/puppets/1f484f37.webp differdiff --git a/site/joke-collection/img/puppets/1f80c6ff.webp b/site/joke-collection/img/puppets/1f80c6ff.webpnew file mode 100644index 0000000..676f554Binary files /dev/null and b/site/joke-collection/img/puppets/1f80c6ff.webp differdiff --git a/site/joke-collection/img/puppets/202fee14.webp b/site/joke-collection/img/puppets/202fee14.webpnew file mode 100644index 0000000..f358da4Binary files /dev/null and b/site/joke-collection/img/puppets/202fee14.webp differdiff --git a/site/joke-collection/img/puppets/2091a835.webp b/site/joke-collection/img/puppets/2091a835.webpnew file mode 100644index 0000000..c413bb1Binary files /dev/null and b/site/joke-collection/img/puppets/2091a835.webp differdiff --git a/site/joke-collection/img/puppets/22a9012d.webp b/site/joke-collection/img/puppets/22a9012d.webpnew file mode 100644index 0000000..9ecca66Binary files /dev/null and b/site/joke-collection/img/puppets/22a9012d.webp differdiff --git a/site/joke-collection/img/puppets/25bce482.webp b/site/joke-collection/img/puppets/25bce482.webpnew file mode 100644index 0000000..89c6c15Binary files /dev/null and b/site/joke-collection/img/puppets/25bce482.webp differdiff --git a/site/joke-collection/img/puppets/2ab42b21.webp b/site/joke-collection/img/puppets/2ab42b21.webpnew file mode 100644index 0000000..6f1f6e0Binary files /dev/null and b/site/joke-collection/img/puppets/2ab42b21.webp differdiff --git a/site/joke-collection/img/puppets/2c37315b.webp b/site/joke-collection/img/puppets/2c37315b.webpnew file mode 100644index 0000000..186612fBinary files /dev/null and b/site/joke-collection/img/puppets/2c37315b.webp differdiff --git a/site/joke-collection/img/puppets/2c732f67.webp b/site/joke-collection/img/puppets/2c732f67.webpnew file mode 100644index 0000000..968c3e7Binary files /dev/null and b/site/joke-collection/img/puppets/2c732f67.webp differdiff --git a/site/joke-collection/img/puppets/2d24460d.webp b/site/joke-collection/img/puppets/2d24460d.webpnew file mode 100644index 0000000..139ba03Binary files /dev/null and b/site/joke-collection/img/puppets/2d24460d.webp differdiff --git a/site/joke-collection/img/puppets/2f9e0efb.webp b/site/joke-collection/img/puppets/2f9e0efb.webpnew file mode 100644index 0000000..f9e8dd2Binary files /dev/null and b/site/joke-collection/img/puppets/2f9e0efb.webp differdiff --git a/site/joke-collection/img/puppets/32300e91.webp b/site/joke-collection/img/puppets/32300e91.webpnew file mode 100644index 0000000..0c9ad4fBinary files /dev/null and b/site/joke-collection/img/puppets/32300e91.webp differdiff --git a/site/joke-collection/img/puppets/3972e631.webp b/site/joke-collection/img/puppets/3972e631.webpnew file mode 100644index 0000000..4448312Binary files /dev/null and b/site/joke-collection/img/puppets/3972e631.webp differdiff --git a/site/joke-collection/img/puppets/3d3d43de.webp b/site/joke-collection/img/puppets/3d3d43de.webpnew file mode 100644index 0000000..96caf2aBinary files /dev/null and b/site/joke-collection/img/puppets/3d3d43de.webp differdiff --git a/site/joke-collection/img/puppets/3e837ee1.webp b/site/joke-collection/img/puppets/3e837ee1.webpnew file mode 100644index 0000000..90b436eBinary files /dev/null and b/site/joke-collection/img/puppets/3e837ee1.webp differdiff --git a/site/joke-collection/img/puppets/3e9b1f83.webp b/site/joke-collection/img/puppets/3e9b1f83.webpnew file mode 100644index 0000000..b8b3cbbBinary files /dev/null and b/site/joke-collection/img/puppets/3e9b1f83.webp differdiff --git a/site/joke-collection/img/puppets/418f9a75.webp b/site/joke-collection/img/puppets/418f9a75.webpnew file mode 100644index 0000000..55fe427Binary files /dev/null and b/site/joke-collection/img/puppets/418f9a75.webp differdiff --git a/site/joke-collection/img/puppets/4768b55a.webp b/site/joke-collection/img/puppets/4768b55a.webpnew file mode 100644index 0000000..1450fcbBinary files /dev/null and b/site/joke-collection/img/puppets/4768b55a.webp differdiff --git a/site/joke-collection/img/puppets/48b9351f.webp b/site/joke-collection/img/puppets/48b9351f.webpnew file mode 100644index 0000000..b9fd87eBinary files /dev/null and b/site/joke-collection/img/puppets/48b9351f.webp differdiff --git a/site/joke-collection/img/puppets/4bf374ae.webp b/site/joke-collection/img/puppets/4bf374ae.webpnew file mode 100644index 0000000..79b355bBinary files /dev/null and b/site/joke-collection/img/puppets/4bf374ae.webp differdiff --git a/site/joke-collection/img/puppets/4c34e40d.webp b/site/joke-collection/img/puppets/4c34e40d.webpnew file mode 100644index 0000000..4ce0a10Binary files /dev/null and b/site/joke-collection/img/puppets/4c34e40d.webp differdiff --git a/site/joke-collection/img/puppets/4cf21876.webp b/site/joke-collection/img/puppets/4cf21876.webpnew file mode 100644index 0000000..2f0b075Binary files /dev/null and b/site/joke-collection/img/puppets/4cf21876.webp differdiff --git a/site/joke-collection/img/puppets/4d3af796.webp b/site/joke-collection/img/puppets/4d3af796.webpnew file mode 100644index 0000000..ded3c25Binary files /dev/null and b/site/joke-collection/img/puppets/4d3af796.webp differdiff --git a/site/joke-collection/img/puppets/4daf556c.webp b/site/joke-collection/img/puppets/4daf556c.webpnew file mode 100644index 0000000..d35c32bBinary files /dev/null and b/site/joke-collection/img/puppets/4daf556c.webp differdiff --git a/site/joke-collection/img/puppets/4fbfa04b.webp b/site/joke-collection/img/puppets/4fbfa04b.webpnew file mode 100644index 0000000..beb3f6cBinary files /dev/null and b/site/joke-collection/img/puppets/4fbfa04b.webp differdiff --git a/site/joke-collection/img/puppets/50a7fbcd.webp b/site/joke-collection/img/puppets/50a7fbcd.webpnew file mode 100644index 0000000..2c798aaBinary files /dev/null and b/site/joke-collection/img/puppets/50a7fbcd.webp differdiff --git a/site/joke-collection/img/puppets/52bceaaa.webp b/site/joke-collection/img/puppets/52bceaaa.webpnew file mode 100644index 0000000..c64e761Binary files /dev/null and b/site/joke-collection/img/puppets/52bceaaa.webp differdiff --git a/site/joke-collection/img/puppets/53a93c6f.webp b/site/joke-collection/img/puppets/53a93c6f.webpnew file mode 100644index 0000000..881746dBinary files /dev/null and b/site/joke-collection/img/puppets/53a93c6f.webp differdiff --git a/site/joke-collection/img/puppets/56554aaa.webp b/site/joke-collection/img/puppets/56554aaa.webpnew file mode 100644index 0000000..f3626d8Binary files /dev/null and b/site/joke-collection/img/puppets/56554aaa.webp differdiff --git a/site/joke-collection/img/puppets/57399010.webp b/site/joke-collection/img/puppets/57399010.webpnew file mode 100644index 0000000..02e7943Binary files /dev/null and b/site/joke-collection/img/puppets/57399010.webp differdiff --git a/site/joke-collection/img/puppets/59803bde.webp b/site/joke-collection/img/puppets/59803bde.webpnew file mode 100644index 0000000..b7a316aBinary files /dev/null and b/site/joke-collection/img/puppets/59803bde.webp differdiff --git a/site/joke-collection/img/puppets/59a82471.webp b/site/joke-collection/img/puppets/59a82471.webpnew file mode 100644index 0000000..cc43efaBinary files /dev/null and b/site/joke-collection/img/puppets/59a82471.webp differdiff --git a/site/joke-collection/img/puppets/5c2de20c.webp b/site/joke-collection/img/puppets/5c2de20c.webpnew file mode 100644index 0000000..a70ab6bBinary files /dev/null and b/site/joke-collection/img/puppets/5c2de20c.webp differdiff --git a/site/joke-collection/img/puppets/5f47cd10.webp b/site/joke-collection/img/puppets/5f47cd10.webpnew file mode 100644index 0000000..ed9dadbBinary files /dev/null and b/site/joke-collection/img/puppets/5f47cd10.webp differdiff --git a/site/joke-collection/img/puppets/5f8d4bed.webp b/site/joke-collection/img/puppets/5f8d4bed.webpnew file mode 100644index 0000000..4aac163Binary files /dev/null and b/site/joke-collection/img/puppets/5f8d4bed.webp differdiff --git a/site/joke-collection/img/puppets/60757350.webp b/site/joke-collection/img/puppets/60757350.webpnew file mode 100644index 0000000..3069f64Binary files /dev/null and b/site/joke-collection/img/puppets/60757350.webp differdiff --git a/site/joke-collection/img/puppets/607e809d.webp b/site/joke-collection/img/puppets/607e809d.webpnew file mode 100644index 0000000..42d2926Binary files /dev/null and b/site/joke-collection/img/puppets/607e809d.webp differdiff --git a/site/joke-collection/img/puppets/60e768e5.webp b/site/joke-collection/img/puppets/60e768e5.webpnew file mode 100644index 0000000..c4b7b2bBinary files /dev/null and b/site/joke-collection/img/puppets/60e768e5.webp differdiff --git a/site/joke-collection/img/puppets/65f032ed.webp b/site/joke-collection/img/puppets/65f032ed.webpnew file mode 100644index 0000000..fa884c2Binary files /dev/null and b/site/joke-collection/img/puppets/65f032ed.webp differdiff --git a/site/joke-collection/img/puppets/69a4b8b7.webp b/site/joke-collection/img/puppets/69a4b8b7.webpnew file mode 100644index 0000000..159a351Binary files /dev/null and b/site/joke-collection/img/puppets/69a4b8b7.webp differdiff --git a/site/joke-collection/img/puppets/69ae3a7f.webp b/site/joke-collection/img/puppets/69ae3a7f.webpnew file mode 100644index 0000000..a101256Binary files /dev/null and b/site/joke-collection/img/puppets/69ae3a7f.webp differdiff --git a/site/joke-collection/img/puppets/6b2af20e.webp b/site/joke-collection/img/puppets/6b2af20e.webpnew file mode 100644index 0000000..cf3c23eBinary files /dev/null and b/site/joke-collection/img/puppets/6b2af20e.webp differdiff --git a/site/joke-collection/img/puppets/6bcecf48.webp b/site/joke-collection/img/puppets/6bcecf48.webpnew file mode 100644index 0000000..cba2b55Binary files /dev/null and b/site/joke-collection/img/puppets/6bcecf48.webp differdiff --git a/site/joke-collection/img/puppets/6f399c74.webp b/site/joke-collection/img/puppets/6f399c74.webpnew file mode 100644index 0000000..5656009Binary files /dev/null and b/site/joke-collection/img/puppets/6f399c74.webp differdiff --git a/site/joke-collection/img/puppets/6f4879c0.webp b/site/joke-collection/img/puppets/6f4879c0.webpnew file mode 100644index 0000000..b7e51e1Binary files /dev/null and b/site/joke-collection/img/puppets/6f4879c0.webp differdiff --git a/site/joke-collection/img/puppets/6fe2312b.webp b/site/joke-collection/img/puppets/6fe2312b.webpnew file mode 100644index 0000000..eb623a0Binary files /dev/null and b/site/joke-collection/img/puppets/6fe2312b.webp differdiff --git a/site/joke-collection/img/puppets/710d33cc.webp b/site/joke-collection/img/puppets/710d33cc.webpnew file mode 100644index 0000000..d537e0aBinary files /dev/null and b/site/joke-collection/img/puppets/710d33cc.webp differdiff --git a/site/joke-collection/img/puppets/7176e99c.webp b/site/joke-collection/img/puppets/7176e99c.webpnew file mode 100644index 0000000..0953ee0Binary files /dev/null and b/site/joke-collection/img/puppets/7176e99c.webp differdiff --git a/site/joke-collection/img/puppets/7268457a.webp b/site/joke-collection/img/puppets/7268457a.webpnew file mode 100644index 0000000..e813babBinary files /dev/null and b/site/joke-collection/img/puppets/7268457a.webp differdiff --git a/site/joke-collection/img/puppets/72d56d60.webp b/site/joke-collection/img/puppets/72d56d60.webpnew file mode 100644index 0000000..2734b3eBinary files /dev/null and b/site/joke-collection/img/puppets/72d56d60.webp differdiff --git a/site/joke-collection/img/puppets/73b1f0d7.webp b/site/joke-collection/img/puppets/73b1f0d7.webpnew file mode 100644index 0000000..8529aabBinary files /dev/null and b/site/joke-collection/img/puppets/73b1f0d7.webp differdiff --git a/site/joke-collection/img/puppets/75ac5119.webp b/site/joke-collection/img/puppets/75ac5119.webpnew file mode 100644index 0000000..b9401bbBinary files /dev/null and b/site/joke-collection/img/puppets/75ac5119.webp differdiff --git a/site/joke-collection/img/puppets/7b722793.webp b/site/joke-collection/img/puppets/7b722793.webpnew file mode 100644index 0000000..776b576Binary files /dev/null and b/site/joke-collection/img/puppets/7b722793.webp differdiff --git a/site/joke-collection/img/puppets/7ceff7ab.webp b/site/joke-collection/img/puppets/7ceff7ab.webpnew file mode 100644index 0000000..87c0a53Binary files /dev/null and b/site/joke-collection/img/puppets/7ceff7ab.webp differdiff --git a/site/joke-collection/img/puppets/824dd6fa.webp b/site/joke-collection/img/puppets/824dd6fa.webpnew file mode 100644index 0000000..df4dbaeBinary files /dev/null and b/site/joke-collection/img/puppets/824dd6fa.webp differdiff --git a/site/joke-collection/img/puppets/85a03f9c.webp b/site/joke-collection/img/puppets/85a03f9c.webpnew file mode 100644index 0000000..9ddbc54Binary files /dev/null and b/site/joke-collection/img/puppets/85a03f9c.webp differdiff --git a/site/joke-collection/img/puppets/862d272f.webp b/site/joke-collection/img/puppets/862d272f.webpnew file mode 100644index 0000000..6e01445Binary files /dev/null and b/site/joke-collection/img/puppets/862d272f.webp differdiff --git a/site/joke-collection/img/puppets/87ed815b.webp b/site/joke-collection/img/puppets/87ed815b.webpnew file mode 100644index 0000000..1918007Binary files /dev/null and b/site/joke-collection/img/puppets/87ed815b.webp differdiff --git a/site/joke-collection/img/puppets/88d2f081.webp b/site/joke-collection/img/puppets/88d2f081.webpnew file mode 100644index 0000000..52d3d6cBinary files /dev/null and b/site/joke-collection/img/puppets/88d2f081.webp differdiff --git a/site/joke-collection/img/puppets/8976243d.webp b/site/joke-collection/img/puppets/8976243d.webpnew file mode 100644index 0000000..5d7f888Binary files /dev/null and b/site/joke-collection/img/puppets/8976243d.webp differdiff --git a/site/joke-collection/img/puppets/8c111809.webp b/site/joke-collection/img/puppets/8c111809.webpnew file mode 100644index 0000000..c928cfcBinary files /dev/null and b/site/joke-collection/img/puppets/8c111809.webp differdiff --git a/site/joke-collection/img/puppets/8c3b45ee.webp b/site/joke-collection/img/puppets/8c3b45ee.webpnew file mode 100644index 0000000..8735c6cBinary files /dev/null and b/site/joke-collection/img/puppets/8c3b45ee.webp differdiff --git a/site/joke-collection/img/puppets/8c695288.webp b/site/joke-collection/img/puppets/8c695288.webpnew file mode 100644index 0000000..be12e1cBinary files /dev/null and b/site/joke-collection/img/puppets/8c695288.webp differdiff --git a/site/joke-collection/img/puppets/9039cc5c.webp b/site/joke-collection/img/puppets/9039cc5c.webpnew file mode 100644index 0000000..64c46cbBinary files /dev/null and b/site/joke-collection/img/puppets/9039cc5c.webp differdiff --git a/site/joke-collection/img/puppets/98ad928b.webp b/site/joke-collection/img/puppets/98ad928b.webpnew file mode 100644index 0000000..dc39dbfBinary files /dev/null and b/site/joke-collection/img/puppets/98ad928b.webp differdiff --git a/site/joke-collection/img/puppets/9a8a6813.webp b/site/joke-collection/img/puppets/9a8a6813.webpnew file mode 100644index 0000000..6e502c4Binary files /dev/null and b/site/joke-collection/img/puppets/9a8a6813.webp differdiff --git a/site/joke-collection/img/puppets/a0464c66.webp b/site/joke-collection/img/puppets/a0464c66.webpnew file mode 100644index 0000000..3b064c8Binary files /dev/null and b/site/joke-collection/img/puppets/a0464c66.webp differdiff --git a/site/joke-collection/img/puppets/a1afb038.webp b/site/joke-collection/img/puppets/a1afb038.webpnew file mode 100644index 0000000..2157fabBinary files /dev/null and b/site/joke-collection/img/puppets/a1afb038.webp differdiff --git a/site/joke-collection/img/puppets/a52127d1.webp b/site/joke-collection/img/puppets/a52127d1.webpnew file mode 100644index 0000000..728262cBinary files /dev/null and b/site/joke-collection/img/puppets/a52127d1.webp differdiff --git a/site/joke-collection/img/puppets/a5cdd7d7.webp b/site/joke-collection/img/puppets/a5cdd7d7.webpnew file mode 100644index 0000000..935fbf8Binary files /dev/null and b/site/joke-collection/img/puppets/a5cdd7d7.webp differdiff --git a/site/joke-collection/img/puppets/a901bb53.webp b/site/joke-collection/img/puppets/a901bb53.webpnew file mode 100644index 0000000..8fb4ce6Binary files /dev/null and b/site/joke-collection/img/puppets/a901bb53.webp differdiff --git a/site/joke-collection/img/puppets/ad4b85f9.webp b/site/joke-collection/img/puppets/ad4b85f9.webpnew file mode 100644index 0000000..8c1f00aBinary files /dev/null and b/site/joke-collection/img/puppets/ad4b85f9.webp differdiff --git a/site/joke-collection/img/puppets/b1e4bcc4.webp b/site/joke-collection/img/puppets/b1e4bcc4.webpnew file mode 100644index 0000000..ea84548Binary files /dev/null and b/site/joke-collection/img/puppets/b1e4bcc4.webp differdiff --git a/site/joke-collection/img/puppets/b635cdc9.webp b/site/joke-collection/img/puppets/b635cdc9.webpnew file mode 100644index 0000000..e4ae550Binary files /dev/null and b/site/joke-collection/img/puppets/b635cdc9.webp differdiff --git a/site/joke-collection/img/puppets/b71c2138.webp b/site/joke-collection/img/puppets/b71c2138.webpnew file mode 100644index 0000000..3b2ec1eBinary files /dev/null and b/site/joke-collection/img/puppets/b71c2138.webp differdiff --git a/site/joke-collection/img/puppets/b85883bf.webp b/site/joke-collection/img/puppets/b85883bf.webpnew file mode 100644index 0000000..85b6eeaBinary files /dev/null and b/site/joke-collection/img/puppets/b85883bf.webp differdiff --git a/site/joke-collection/img/puppets/ba507dc5.webp b/site/joke-collection/img/puppets/ba507dc5.webpnew file mode 100644index 0000000..d8bf1dbBinary files /dev/null and b/site/joke-collection/img/puppets/ba507dc5.webp differdiff --git a/site/joke-collection/img/puppets/baked.js b/site/joke-collection/img/puppets/baked.jsindex b61cf79..77a4f61 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", "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", "77eca2a4": "77eca2a4.webp", "a76d2da6": "a76d2da6.webp", "481a24b9": "481a24b9.webp", "9516ff56": "9516ff56.webp", "47b17ae4": "47b17ae4.webp", "2107f680": "2107f680.webp", "5a8050ac": "5a8050ac.webp", "66cba9aa": "66cba9aa.webp", "f8ce0638": "f8ce0638.webp", "7c5f2261": "7c5f2261.webp", "ef8c8b3f": "ef8c8b3f.webp", "b1655c07": "b1655c07.webp", "2faf6f05": "2faf6f05.webp", "719512d0": "719512d0.webp", "da6cb2b1": "da6cb2b1.webp", "87552bfd": "87552bfd.webp", "bcd778e8": "bcd778e8.webp", "23240ff2": "23240ff2.webp", "d1d73c37": "d1d73c37.webp", "880975f2": "880975f2.webp", "48128e44": "48128e44.webp", "66aeb1cb": "66aeb1cb.webp", "94bbe1c2": "94bbe1c2.webp", "5b80513f": "5b80513f.webp", "a25d5db4": "a25d5db4.webp", "a0c1131a": "a0c1131a.webp", "83661e80": "83661e80.webp", "b07d7f39": "b07d7f39.webp", "ca2512b4": "ca2512b4.webp", "f264b060": "f264b060.webp", "2e9dd179": "2e9dd179.webp", "a9ec29bd": "a9ec29bd.webp", "f7c9e08a": "f7c9e08a.webp", "cad407e6": "cad407e6.webp", "fbcb25a2": "fbcb25a2.webp", "1abcffee": "1abcffee.webp", "b761ed8e": "b761ed8e.webp", "596baa7d": "596baa7d.webp", "b7aff701": "b7aff701.webp", "fc588798": "fc588798.webp", "d59ca44c": "d59ca44c.webp", "117274d2": "117274d2.webp", "b8bdd67c": "b8bdd67c.webp", "648c7874": "648c7874.webp", "7e2f650b": "7e2f650b.webp", "9a0ee38e": "9a0ee38e.webp", "b4976cb3": "b4976cb3.webp", "92a80549": "92a80549.webp", "e7f49f0f": "e7f49f0f.webp", "08572f45": "08572f45.webp", "4492dd7d": "4492dd7d.webp", "89dcd688": "89dcd688.webp", "911eca8e": "911eca8e.webp", "56fb2456": "56fb2456.webp", "8e53c786": "8e53c786.webp", "2c3542f4": "2c3542f4.webp", "fee8308c": "fee8308c.webp", "d26d2397": "d26d2397.webp", "eae29045": "eae29045.webp", "f48681dd": "f48681dd.webp", "836ff762": "836ff762.webp", "7860beb3": "7860beb3.webp", "d898b982": "d898b982.webp", "1ea0db12": "1ea0db12.webp", "129b62f0": "129b62f0.webp", "f58938d3": "f58938d3.webp", "0286ac75": "0286ac75.webp", "44e93b94": "44e93b94.webp", "88816e54": "88816e54.webp", "3bac069a": "3bac069a.webp", "a83414ca": "a83414ca.webp", "eaf50ec1": "eaf50ec1.webp", "7a6b6779": "7a6b6779.webp", "bf086947": "bf086947.webp", "db813713": "db813713.webp", "fe15a98f": "fe15a98f.webp", "90137872": "90137872.webp", "4c652102": "4c652102.webp", "e4f44338": "e4f44338.webp", "64646773": "64646773.webp", "be1f0cb7": "be1f0cb7.webp", "6c955f82": "6c955f82.webp", "31de108c": "31de108c.webp", "111ad6f0": "111ad6f0.webp", "7e4ff796": "7e4ff796.webp", "be3f2a65": "be3f2a65.webp", "a75e5aea": "a75e5aea.webp", "c33662b0": "c33662b0.webp", "ffd01988": "ffd01988.webp", "a157bba8": "a157bba8.webp", "cbf10610": "cbf10610.webp", "709f972a": "709f972a.webp", "aff78998": "aff78998.webp", "6303efac": "6303efac.webp", "7338febb": "7338febb.webp", "ec54638d": "ec54638d.webp", "a92694c7": "a92694c7.webp", "5b449065": "5b449065.webp", "96bcd7c9": "96bcd7c9.webp", "2ad2e9bd": "2ad2e9bd.webp", "ca1d9c3d": "ca1d9c3d.webp", "f3fe813a": "f3fe813a.webp", "1c642e56": "1c642e56.webp", "a0579821": "a0579821.webp", "76414f9a": "76414f9a.webp", "214f412a": "214f412a.webp", "a9effc98": "a9effc98.webp", "38d9e24c": "38d9e24c.webp", "4ef77af1": "4ef77af1.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", "77eca2a4": "77eca2a4.webp", "a76d2da6": "a76d2da6.webp", "481a24b9": "481a24b9.webp", "9516ff56": "9516ff56.webp", "47b17ae4": "47b17ae4.webp", "2107f680": "2107f680.webp", "5a8050ac": "5a8050ac.webp", "66cba9aa": "66cba9aa.webp", "f8ce0638": "f8ce0638.webp", "7c5f2261": "7c5f2261.webp", "ef8c8b3f": "ef8c8b3f.webp", "b1655c07": "b1655c07.webp", "2faf6f05": "2faf6f05.webp", "719512d0": "719512d0.webp", "da6cb2b1": "da6cb2b1.webp", "87552bfd": "87552bfd.webp", "bcd778e8": "bcd778e8.webp", "23240ff2": "23240ff2.webp", "d1d73c37": "d1d73c37.webp", "880975f2": "880975f2.webp", "48128e44": "48128e44.webp", "66aeb1cb": "66aeb1cb.webp", "94bbe1c2": "94bbe1c2.webp", "5b80513f": "5b80513f.webp", "a25d5db4": "a25d5db4.webp", "a0c1131a": "a0c1131a.webp", "83661e80": "83661e80.webp", "b07d7f39": "b07d7f39.webp", "ca2512b4": "ca2512b4.webp", "f264b060": "f264b060.webp", "2e9dd179": "2e9dd179.webp", "a9ec29bd": "a9ec29bd.webp", "f7c9e08a": "f7c9e08a.webp", "cad407e6": "cad407e6.webp", "fbcb25a2": "fbcb25a2.webp", "1abcffee": "1abcffee.webp", "b761ed8e": "b761ed8e.webp", "596baa7d": "596baa7d.webp", "b7aff701": "b7aff701.webp", "fc588798": "fc588798.webp", "d59ca44c": "d59ca44c.webp", "117274d2": "117274d2.webp", "b8bdd67c": "b8bdd67c.webp", "648c7874": "648c7874.webp", "7e2f650b": "7e2f650b.webp", "9a0ee38e": "9a0ee38e.webp", "b4976cb3": "b4976cb3.webp", "92a80549": "92a80549.webp", "e7f49f0f": "e7f49f0f.webp", "08572f45": "08572f45.webp", "4492dd7d": "4492dd7d.webp", "89dcd688": "89dcd688.webp", "911eca8e": "911eca8e.webp", "56fb2456": "56fb2456.webp", "8e53c786": "8e53c786.webp", "2c3542f4": "2c3542f4.webp", "fee8308c": "fee8308c.webp", "d26d2397": "d26d2397.webp", "eae29045": "eae29045.webp", "f48681dd": "f48681dd.webp", "836ff762": "836ff762.webp", "7860beb3": "7860beb3.webp", "d898b982": "d898b982.webp", "1ea0db12": "1ea0db12.webp", "129b62f0": "129b62f0.webp", "f58938d3": "f58938d3.webp", "0286ac75": "0286ac75.webp", "44e93b94": "44e93b94.webp", "88816e54": "88816e54.webp", "3bac069a": "3bac069a.webp", "a83414ca": "a83414ca.webp", "eaf50ec1": "eaf50ec1.webp", "7a6b6779": "7a6b6779.webp", "bf086947": "bf086947.webp", "db813713": "db813713.webp", "fe15a98f": "fe15a98f.webp", "90137872": "90137872.webp", "4c652102": "4c652102.webp", "e4f44338": "e4f44338.webp", "64646773": "64646773.webp", "be1f0cb7": "be1f0cb7.webp", "6c955f82": "6c955f82.webp", "31de108c": "31de108c.webp", "111ad6f0": "111ad6f0.webp", "7e4ff796": "7e4ff796.webp", "be3f2a65": "be3f2a65.webp", "a75e5aea": "a75e5aea.webp", "c33662b0": "c33662b0.webp", "ffd01988": "ffd01988.webp", "a157bba8": "a157bba8.webp", "cbf10610": "cbf10610.webp", "709f972a": "709f972a.webp", "aff78998": "aff78998.webp", "6303efac": "6303efac.webp", "7338febb": "7338febb.webp", "ec54638d": "ec54638d.webp", "a92694c7": "a92694c7.webp", "5b449065": "5b449065.webp", "96bcd7c9": "96bcd7c9.webp", "2ad2e9bd": "2ad2e9bd.webp", "ca1d9c3d": "ca1d9c3d.webp", "f3fe813a": "f3fe813a.webp", "1c642e56": "1c642e56.webp", "a0579821": "a0579821.webp", "76414f9a": "76414f9a.webp", "214f412a": "214f412a.webp", "a9effc98": "a9effc98.webp", "38d9e24c": "38d9e24c.webp", "4ef77af1": "4ef77af1.webp", "0809ab82": "0809ab82.webp", "a0464c66": "a0464c66.webp", "d49f89f5": "d49f89f5.webp", "202fee14": "202fee14.webp", "efbea578": "efbea578.webp", "0f6d734f": "0f6d734f.webp", "3d3d43de": "3d3d43de.webp", "4fbfa04b": "4fbfa04b.webp", "a52127d1": "a52127d1.webp", "8c695288": "8c695288.webp", "a901bb53": "a901bb53.webp", "48b9351f": "48b9351f.webp", "88d2f081": "88d2f081.webp", "85a03f9c": "85a03f9c.webp", "07c2a213": "07c2a213.webp", "d113fab6": "d113fab6.webp", "e4b025b0": "e4b025b0.webp", "cc49d16e": "cc49d16e.webp", "6f399c74": "6f399c74.webp", "bfaa82af": "bfaa82af.webp", "5f8d4bed": "5f8d4bed.webp", "2c37315b": "2c37315b.webp", "6fe2312b": "6fe2312b.webp", "607e809d": "607e809d.webp", "710d33cc": "710d33cc.webp", "2c732f67": "2c732f67.webp", "69a4b8b7": "69a4b8b7.webp", "87ed815b": "87ed815b.webp", "8c111809": "8c111809.webp", "824dd6fa": "824dd6fa.webp", "06f477dc": "06f477dc.webp", "ad4b85f9": "ad4b85f9.webp", "1f80c6ff": "1f80c6ff.webp", "25bce482": "25bce482.webp", "22a9012d": "22a9012d.webp", "0e72e404": "0e72e404.webp", "5f47cd10": "5f47cd10.webp", "ec2c9b0a": "ec2c9b0a.webp", "862d272f": "862d272f.webp", "2091a835": "2091a835.webp", "7176e99c": "7176e99c.webp", "59803bde": "59803bde.webp", "65f032ed": "65f032ed.webp", "1ea06a35": "1ea06a35.webp", "ba507dc5": "ba507dc5.webp", "32300e91": "32300e91.webp", "ed507625": "ed507625.webp", "73b1f0d7": "73b1f0d7.webp", "07fee382": "07fee382.webp", "b1e4bcc4": "b1e4bcc4.webp", "98ad928b": "98ad928b.webp", "d95c7aa6": "d95c7aa6.webp", "75ac5119": "75ac5119.webp", "e0cf8402": "e0cf8402.webp", "e6f2c3cf": "e6f2c3cf.webp", "f150e2f2": "f150e2f2.webp", "0b9f8b1f": "0b9f8b1f.webp", "72d56d60": "72d56d60.webp", "b85883bf": "b85883bf.webp", "3e9b1f83": "3e9b1f83.webp", "60757350": "60757350.webp", "7ceff7ab": "7ceff7ab.webp", "6f4879c0": "6f4879c0.webp", "bc5674a6": "bc5674a6.webp", "4bf374ae": "4bf374ae.webp", "ed288fde": "ed288fde.webp", "d2f8c258": "d2f8c258.webp", "e65caa2c": "e65caa2c.webp", "d071eddb": "d071eddb.webp", "a5cdd7d7": "a5cdd7d7.webp", "04b0a808": "04b0a808.webp", "6b2af20e": "6b2af20e.webp", "e0ef4f1e": "e0ef4f1e.webp", "60e768e5": "60e768e5.webp", "11cfa291": "11cfa291.webp", "e8be9bda": "e8be9bda.webp", "9039cc5c": "9039cc5c.webp", "4daf556c": "4daf556c.webp", "c9838027": "c9838027.webp", "ed81d3d7": "ed81d3d7.webp", "2f9e0efb": "2f9e0efb.webp", "9a8a6813": "9a8a6813.webp", "025905b2": "025905b2.webp", "fcd46adf": "fcd46adf.webp", "f013a751": "f013a751.webp", "4c34e40d": "4c34e40d.webp", "03e278b8": "03e278b8.webp", "53a93c6f": "53a93c6f.webp", "7268457a": "7268457a.webp", "1f484f37": "1f484f37.webp", "6bcecf48": "6bcecf48.webp", "10130f44": "10130f44.webp", "0ff9c0c9": "0ff9c0c9.webp", "2ab42b21": "2ab42b21.webp", "8976243d": "8976243d.webp", "4d3af796": "4d3af796.webp", "50a7fbcd": "50a7fbcd.webp", "b635cdc9": "b635cdc9.webp", "bfea5cfb": "bfea5cfb.webp", "1c3b2fd5": "1c3b2fd5.webp", "3972e631": "3972e631.webp", "5c2de20c": "5c2de20c.webp", "4768b55a": "4768b55a.webp", "8c3b45ee": "8c3b45ee.webp", "db359afa": "db359afa.webp", "7b722793": "7b722793.webp", "2d24460d": "2d24460d.webp", "09cb69d1": "09cb69d1.webp", "042542e9": "042542e9.webp", "69ae3a7f": "69ae3a7f.webp", "07386792": "07386792.webp", "4cf21876": "4cf21876.webp", "bba4fdd6": "bba4fdd6.webp", "1ca3dd94": "1ca3dd94.webp", "b71c2138": "b71c2138.webp", "59a82471": "59a82471.webp", "ebb4d633": "ebb4d633.webp", "57399010": "57399010.webp", "56554aaa": "56554aaa.webp", "0aca4d46": "0aca4d46.webp", "fb1b8429": "fb1b8429.webp", "52bceaaa": "52bceaaa.webp", "3e837ee1": "3e837ee1.webp", "daa704ff": "daa704ff.webp", "a1afb038": "a1afb038.webp", "ff613579": "ff613579.webp", "dde9e382": "dde9e382.webp", "418f9a75": "418f9a75.webp", "c67895f5": "c67895f5.webp", "02479eec": "02479eec.webp"};diff --git a/site/joke-collection/img/puppets/bba4fdd6.webp b/site/joke-collection/img/puppets/bba4fdd6.webpnew file mode 100644index 0000000..8b0d221Binary files /dev/null and b/site/joke-collection/img/puppets/bba4fdd6.webp differdiff --git a/site/joke-collection/img/puppets/bc5674a6.webp b/site/joke-collection/img/puppets/bc5674a6.webpnew file mode 100644index 0000000..7fd9e1aBinary files /dev/null and b/site/joke-collection/img/puppets/bc5674a6.webp differdiff --git a/site/joke-collection/img/puppets/bfaa82af.webp b/site/joke-collection/img/puppets/bfaa82af.webpnew file mode 100644index 0000000..a283029Binary files /dev/null and b/site/joke-collection/img/puppets/bfaa82af.webp differdiff --git a/site/joke-collection/img/puppets/bfea5cfb.webp b/site/joke-collection/img/puppets/bfea5cfb.webpnew file mode 100644index 0000000..b3a5af9Binary files /dev/null and b/site/joke-collection/img/puppets/bfea5cfb.webp differdiff --git a/site/joke-collection/img/puppets/c67895f5.webp b/site/joke-collection/img/puppets/c67895f5.webpnew file mode 100644index 0000000..dd8e9b5Binary files /dev/null and b/site/joke-collection/img/puppets/c67895f5.webp differdiff --git a/site/joke-collection/img/puppets/c9838027.webp b/site/joke-collection/img/puppets/c9838027.webpnew file mode 100644index 0000000..0df0da9Binary files /dev/null and b/site/joke-collection/img/puppets/c9838027.webp differdiff --git a/site/joke-collection/img/puppets/cc49d16e.webp b/site/joke-collection/img/puppets/cc49d16e.webpnew file mode 100644index 0000000..59acceeBinary files /dev/null and b/site/joke-collection/img/puppets/cc49d16e.webp differdiff --git a/site/joke-collection/img/puppets/d071eddb.webp b/site/joke-collection/img/puppets/d071eddb.webpnew file mode 100644index 0000000..7a0bafeBinary files /dev/null and b/site/joke-collection/img/puppets/d071eddb.webp differdiff --git a/site/joke-collection/img/puppets/d113fab6.webp b/site/joke-collection/img/puppets/d113fab6.webpnew file mode 100644index 0000000..7dec9e9Binary files /dev/null and b/site/joke-collection/img/puppets/d113fab6.webp differdiff --git a/site/joke-collection/img/puppets/d2f8c258.webp b/site/joke-collection/img/puppets/d2f8c258.webpnew file mode 100644index 0000000..a41511bBinary files /dev/null and b/site/joke-collection/img/puppets/d2f8c258.webp differdiff --git a/site/joke-collection/img/puppets/d49f89f5.webp b/site/joke-collection/img/puppets/d49f89f5.webpnew file mode 100644index 0000000..98f2b6eBinary files /dev/null and b/site/joke-collection/img/puppets/d49f89f5.webp differdiff --git a/site/joke-collection/img/puppets/d95c7aa6.webp b/site/joke-collection/img/puppets/d95c7aa6.webpnew file mode 100644index 0000000..12a5085Binary files /dev/null and b/site/joke-collection/img/puppets/d95c7aa6.webp differdiff --git a/site/joke-collection/img/puppets/daa704ff.webp b/site/joke-collection/img/puppets/daa704ff.webpnew file mode 100644index 0000000..f45a693Binary files /dev/null and b/site/joke-collection/img/puppets/daa704ff.webp differdiff --git a/site/joke-collection/img/puppets/db359afa.webp b/site/joke-collection/img/puppets/db359afa.webpnew file mode 100644index 0000000..7c1a858Binary files /dev/null and b/site/joke-collection/img/puppets/db359afa.webp differdiff --git a/site/joke-collection/img/puppets/dde9e382.webp b/site/joke-collection/img/puppets/dde9e382.webpnew file mode 100644index 0000000..ecb5b05Binary files /dev/null and b/site/joke-collection/img/puppets/dde9e382.webp differdiff --git a/site/joke-collection/img/puppets/e0cf8402.webp b/site/joke-collection/img/puppets/e0cf8402.webpnew file mode 100644index 0000000..0a8b9deBinary files /dev/null and b/site/joke-collection/img/puppets/e0cf8402.webp differdiff --git a/site/joke-collection/img/puppets/e0ef4f1e.webp b/site/joke-collection/img/puppets/e0ef4f1e.webpnew file mode 100644index 0000000..faeaea1Binary files /dev/null and b/site/joke-collection/img/puppets/e0ef4f1e.webp differdiff --git a/site/joke-collection/img/puppets/e4b025b0.webp b/site/joke-collection/img/puppets/e4b025b0.webpnew file mode 100644index 0000000..162fcbeBinary files /dev/null and b/site/joke-collection/img/puppets/e4b025b0.webp differdiff --git a/site/joke-collection/img/puppets/e65caa2c.webp b/site/joke-collection/img/puppets/e65caa2c.webpnew file mode 100644index 0000000..75df941Binary files /dev/null and b/site/joke-collection/img/puppets/e65caa2c.webp differdiff --git a/site/joke-collection/img/puppets/e6f2c3cf.webp b/site/joke-collection/img/puppets/e6f2c3cf.webpnew file mode 100644index 0000000..154be53Binary files /dev/null and b/site/joke-collection/img/puppets/e6f2c3cf.webp differdiff --git a/site/joke-collection/img/puppets/e8be9bda.webp b/site/joke-collection/img/puppets/e8be9bda.webpnew file mode 100644index 0000000..da03e33Binary files /dev/null and b/site/joke-collection/img/puppets/e8be9bda.webp differdiff --git a/site/joke-collection/img/puppets/ebb4d633.webp b/site/joke-collection/img/puppets/ebb4d633.webpnew file mode 100644index 0000000..48295b8Binary files /dev/null and b/site/joke-collection/img/puppets/ebb4d633.webp differdiff --git a/site/joke-collection/img/puppets/ec2c9b0a.webp b/site/joke-collection/img/puppets/ec2c9b0a.webpnew file mode 100644index 0000000..444097aBinary files /dev/null and b/site/joke-collection/img/puppets/ec2c9b0a.webp differdiff --git a/site/joke-collection/img/puppets/ed288fde.webp b/site/joke-collection/img/puppets/ed288fde.webpnew file mode 100644index 0000000..83d6e9eBinary files /dev/null and b/site/joke-collection/img/puppets/ed288fde.webp differdiff --git a/site/joke-collection/img/puppets/ed507625.webp b/site/joke-collection/img/puppets/ed507625.webpnew file mode 100644index 0000000..b83c891Binary files /dev/null and b/site/joke-collection/img/puppets/ed507625.webp differdiff --git a/site/joke-collection/img/puppets/ed81d3d7.webp b/site/joke-collection/img/puppets/ed81d3d7.webpnew file mode 100644index 0000000..4eb0815Binary files /dev/null and b/site/joke-collection/img/puppets/ed81d3d7.webp differdiff --git a/site/joke-collection/img/puppets/efbea578.webp b/site/joke-collection/img/puppets/efbea578.webpnew file mode 100644index 0000000..9b736e2Binary files /dev/null and b/site/joke-collection/img/puppets/efbea578.webp differdiff --git a/site/joke-collection/img/puppets/f013a751.webp b/site/joke-collection/img/puppets/f013a751.webpnew file mode 100644index 0000000..1e30916Binary files /dev/null and b/site/joke-collection/img/puppets/f013a751.webp differdiff --git a/site/joke-collection/img/puppets/f150e2f2.webp b/site/joke-collection/img/puppets/f150e2f2.webpnew file mode 100644index 0000000..39fc754Binary files /dev/null and b/site/joke-collection/img/puppets/f150e2f2.webp differdiff --git a/site/joke-collection/img/puppets/fb1b8429.webp b/site/joke-collection/img/puppets/fb1b8429.webpnew file mode 100644index 0000000..27a46a0Binary files /dev/null and b/site/joke-collection/img/puppets/fb1b8429.webp differdiff --git a/site/joke-collection/img/puppets/fcd46adf.webp b/site/joke-collection/img/puppets/fcd46adf.webpnew file mode 100644index 0000000..48b215dBinary files /dev/null and b/site/joke-collection/img/puppets/fcd46adf.webp differdiff --git a/site/joke-collection/img/puppets/ff613579.webp b/site/joke-collection/img/puppets/ff613579.webpnew file mode 100644index 0000000..e1ab4b9Binary files /dev/null and b/site/joke-collection/img/puppets/ff613579.webp differdiff --git a/site/joke-collection/img/sets/alley/bg-soft.webp b/site/joke-collection/img/sets/alley/bg-soft.webpnew file mode 100644index 0000000..5208cf6Binary files /dev/null and b/site/joke-collection/img/sets/alley/bg-soft.webp differdiff --git a/site/joke-collection/img/sets/alley/bg.webp b/site/joke-collection/img/sets/alley/bg.webpnew file mode 100644index 0000000..7a5174fBinary files /dev/null and b/site/joke-collection/img/sets/alley/bg.webp differdiff --git a/site/joke-collection/img/sets/butcher/bg-soft.webp b/site/joke-collection/img/sets/butcher/bg-soft.webpnew file mode 100644index 0000000..8a60879Binary files /dev/null and b/site/joke-collection/img/sets/butcher/bg-soft.webp differdiff --git a/site/joke-collection/img/sets/butcher/bg.webp b/site/joke-collection/img/sets/butcher/bg.webpnew file mode 100644index 0000000..d5b3eb0Binary files /dev/null and b/site/joke-collection/img/sets/butcher/bg.webp differdiff --git a/site/joke-collection/img/sets/sets.js b/site/joke-collection/img/sets/sets.jsindex 7f60d50..1dee4be 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}], "road": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "road2": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "harbour": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}, {"name": "crates", "k": 1, "box": [540, 566, 262, 188], "soft": true}], "square": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "beach": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "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}], "harbour": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}, {"name": "crates", "k": 1, "box": [540, 566, 262, 188], "soft": true}], "square": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "beach": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "alley": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "yard": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "butcher": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}], "snowsq": [{"name": "bg", "k": 1, "box": [-60, -34, 1720, 968], "soft": true}]};diff --git a/site/joke-collection/img/sets/snowsq/bg-soft.webp b/site/joke-collection/img/sets/snowsq/bg-soft.webpnew file mode 100644index 0000000..7905298Binary files /dev/null and b/site/joke-collection/img/sets/snowsq/bg-soft.webp differdiff --git a/site/joke-collection/img/sets/snowsq/bg.webp b/site/joke-collection/img/sets/snowsq/bg.webpnew file mode 100644index 0000000..75c8036Binary files /dev/null and b/site/joke-collection/img/sets/snowsq/bg.webp differdiff --git a/site/joke-collection/img/sets/yard/bg-soft.webp b/site/joke-collection/img/sets/yard/bg-soft.webpnew file mode 100644index 0000000..288ffb1Binary files /dev/null and b/site/joke-collection/img/sets/yard/bg-soft.webp differdiff --git a/site/joke-collection/img/sets/yard/bg.webp b/site/joke-collection/img/sets/yard/bg.webpnew file mode 100644index 0000000..3cf7402Binary files /dev/null and b/site/joke-collection/img/sets/yard/bg.webp differdiff --git a/site/joke-collection/index.html b/site/joke-collection/index.htmlindex b12e2ae..ce50d84 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. Five 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. Six 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; }@@ -67,6 +67,7 @@<li><a href="ch03/"><span class="thumb"><img src="making/ep3-hay.webp" width="800" height="450" alt="The cow walks after hay hung from a rod on its own back."></span><small>Episode 3 · 2 minutes</small><b>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><a href="ch04/"><span class="thumb"><img src="making/ep4-glasses.webp" width="800" height="450" alt="The dog on the desk between Me and Bo, in glasses, a pencil in its mouth."></span><small>Episode 4 · 2 minutes</small><b>The Dog Ate My Homework</b><span>My deskmate Bo never did his homework, but he always had an excuse. Then he rented a dog to prove one. I did my homework every morning, at breakfast.</span></a></li><li><a href="ch05/"><span class="thumb"><img src="making/ep5-photo.webp" width="800" height="450" alt="The man shows the policeman a photo from the zoo, the penguin beside him."></span><small>Episode 5 · 2 minutes</small><b>The Penguin and the Zoo</b><span>A man buys a fish at the harbour, and a penguin follows it. A policeman tells him to take it to the zoo. The next day, there they are again.</span></a></li>+ <li><a href="ch06/"><span class="thumb"><img src="making/ep6-box.webp" width="800" height="450" alt="Eight eyes in the slot of a cardboard box, one mouth open to bark."></span><small>Episode 6 · 2 minutes</small><b>Four Dogs</b><span>An American dog, a Polish dog and a Soviet dog meet in an alley behind a kitchen to compare notes on a dog’s life. Somebody in a box has been listening.</span></a></li></ul><p class="soon">More jokes coming.</p>diff --git a/site/joke-collection/lib/cast.js b/site/joke-collection/lib/cast.jsindex c759221..8a93b03 100644--- a/site/joke-collection/lib/cast.js+++ b/site/joke-collection/lib/cast.js@@ -144,23 +144,32 @@ const teacherPuppet = (p, o) => spKid(p, 'teacher', { coat: '#8c2f45', stripe: '1 open), tail (degrees, + up), wag (the tail swings on twos), ear (degrees), shut, lids, eyeX (-1 … 1 along its look),sit (on its haunches; 0…1 or true, ease it over ~0.3 s), lie (flat on the ground, front paws out, 0…1 or true; asleepunless lie is 'awake'), walk (legs scissor on twos), bob, glasses, tongue, sniff (the nose twitches),- hold (prop key, carried crosswise in its mouth). */+ hold (prop key, carried crosswise in its mouth); rot (degrees: the whole dog tips about its middle, + nose down,+ for a leap); paw (degrees: the near front paw raised forward), swell (0…1: the chest+ fills, a big breath in).+ breed (episode 6; every key optional, leaving one out draws episode 4's dog): coat, dark, far, muzzle (colours),+ collar (colour, 'none'), torso ([rx, ry] of the body, default [82, 40]), spot (svg for the back patch, '' none), ear+ (path at the ear pin, 0,0 is the pin; DOG_EARS), tail (path), body (svg over the torso), neck (svg by the collar),+ hat (svg on the head, drawn last), mouthIn (svg of the inside of the mouth, behind the jaw: it turns half as far as+ the jaw, so a wide-open mouth shows a mouth, not a gap). */const DOG = { coat: '#ece5d6', dark: '#6b5444', far: '#cdc3b1', muzzle: '#fbf8f0' };const REST_DOG = { x: 0, y: 0, s: 1, dir: 1, headR: 0, jaw: 0, tail: 0, wag: false, ear: 0, shut: false, lids: 0, eyeX: 0,- sit: false, lie: false, walk: false, bob: 0, glasses: false, tongue: false, sniff: false, hold: null };-function dogPuppet(parent, { holds = {} } = {}) {- const g = mk('g', {}, parent), id = 'dogc' + (++spClip), C = DOG;+ sit: false, lie: false, walk: false, bob: 0, glasses: false, tongue: false, sniff: false, hold: null, paw: 0, swell: 0 };+// Ear shapes at the ear pin: the floppy one (episode 4) and a pricked one (rotate it back, ear -60…-80, to lay it flat).+const DOG_EARS = { flop: 'M0,0 C-22,4 -26,40 -12,62 C-2,52 10,28 8,0 Z', prick: 'M-16,6 C-14,-14 -4,-40 6,-52 C14,-34 18,-12 16,6 Z' };+function dogPuppet(parent, { holds = {}, breed = {} } = {}) {+ const g = mk('g', {}, parent), id = 'dogc' + (++spClip), C = { ...DOG, ...breed }, [trx, try_] = breed.torso || [82, 40];const leg = (k, col) => `<g data-p="leg${k}"><g filter="url(#paper)"><rect x="-11" y="0" width="22" height="58" rx="8" fill="${col}"/><ellipse cx="6" cy="56" rx="13" ry="7" fill="${C.dark}"/></g></g>`;const eye = '<ellipse cx="100" cy="-142" rx="11" ry="13"';g.innerHTML = `<g data-p="all">${leg('B2', C.far)}${leg('F2', C.far)}<g data-p="haunch"><g filter="url(#paper)"><ellipse cx="-44" cy="-34" rx="40" ry="34" fill="${C.coat}"/><ellipse cx="-24" cy="-5" rx="24" ry="7" fill="${C.dark}"/></g></g><g data-p="torso">- <g data-p="tail"><g filter="url(#paper)"><path d="M0,0 Q-34,-16 -40,-60 Q-28,-60 -24,-32 Q-16,-12 8,-8 Z" fill="${C.coat}"/></g></g>- <g filter="url(#paper)"><ellipse cx="0" cy="-86" rx="82" ry="40" fill="${C.coat}"/><ellipse cx="-14" cy="-100" rx="30" ry="15" fill="${C.dark}"/></g>+ <g data-p="tail"><g filter="url(#paper)"><path d="${breed.tail ?? 'M0,0 Q-34,-16 -40,-60 Q-28,-60 -24,-32 Q-16,-12 8,-8 Z'}" fill="${C.coat}"/></g></g>+ <g filter="url(#paper)"><ellipse cx="0" cy="-86" rx="${trx}" ry="${try_}" fill="${C.coat}"/>${breed.spot ?? `<ellipse cx="-14" cy="-100" rx="30" ry="15" fill="${C.dark}"/>`}${breed.body || ''}</g><g data-p="head">- <g filter="url(#paper)"><rect x="52" y="-116" width="28" height="12" rx="4" fill="#c8322f" transform="rotate(-20 66 -110)"/>+ <g filter="url(#paper)"><rect x="52" y="-116" width="28" height="12" rx="4" fill="${C.collar ?? '#c8322f'}" transform="rotate(-20 66 -110)"/>${breed.neck || ''}<circle cx="94" cy="-132" r="38" fill="${C.coat}"/><ellipse cx="128" cy="-106" rx="24" ry="9" fill="#4a1a14"/></g>- <g data-p="jaw"><g filter="url(#paper)"><path d="M100,-108 Q150,-106 150,-98 Q132,-86 100,-96 Z" fill="${C.muzzle}"/></g>+ ${breed.mouthIn ? `<g data-p="mouthIn">${breed.mouthIn}</g>` : ''}<g data-p="jaw"><g filter="url(#paper)"><path d="M100,-108 Q150,-106 150,-98 Q132,-86 100,-96 Z" fill="${C.muzzle}"/></g><ellipse data-p="tongue" cx="138" cy="-90" rx="9" ry="12" fill="#e06f7a"/></g><g filter="url(#paper)"><ellipse cx="128" cy="-116" rx="28" ry="15" fill="${C.muzzle}"/></g><g data-p="nose"><g filter="url(#paper)"><ellipse cx="154" cy="-122" rx="8.5" ry="6.5" fill="${SP_INK}"/></g></g><clipPath id="${id}">${eye}/></clipPath>@@ -168,9 +177,9 @@ function dogPuppet(parent, { holds = {} } = {}) {<circle data-p="pupil" cx="102" cy="-142" r="4.8" fill="${SP_INK}"/><g clip-path="url(#${id})"><g data-p="lids"><rect x="86" y="-182" width="28" height="26" fill="${C.coat}"/><path d="M86,-155 H114" stroke="${SP_INK}" stroke-width="3"/></g></g>${eye} fill="none" stroke="${SP_INK}" stroke-width="2"/>- <g data-p="ear"><g filter="url(#paper)"><path d="M0,0 C-22,4 -26,40 -12,62 C-2,52 10,28 8,0 Z" fill="${C.dark}"/></g></g>+ <g data-p="ear"><g filter="url(#paper)"><path d="${breed.ear ?? DOG_EARS.flop}" fill="${C.dark}"/></g></g><g data-p="glasses" fill="none" stroke="${SP_INK}" stroke-width="3.5"><circle cx="101" cy="-142" r="16"/><path d="M85,-144 L64,-150 M117,-145 Q122,-149 127,-146"/><ellipse cx="135" cy="-143" rx="7" ry="13"/></g>- ${Object.entries(holds).map(([k, s]) => `<g data-p="hold_${k}" transform="translate(134,-100)">${s}</g>`).join('')}+ ${Object.entries(holds).map(([k, s]) => `<g data-p="hold_${k}" transform="translate(134,-100)">${s}</g>`).join('')}${breed.hat || ''}</g></g>${leg('B1', C.coat)}${leg('F1', C.coat)}</g>`;bakeAll(g);const P = pieces(g), holdKeys = Object.keys(holds);@@ -179,21 +188,22 @@ function dogPuppet(parent, { holds = {} } = {}) {return { g, pose(o, f) {o = { ...REST_DOG, ...o };const j = k => .35 * jit(f >> 1, k), k2 = Math.floor(f / 2) % 2 ? 1 : -1;- 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})`);+ 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})${o.rot ? ` rotate(${o.rot.toFixed(1)},0,-80)` : ''}`);const L = o.lie === true || o.lie === 'awake' ? 1 : +o.lie || 0, S = o.sit === true ? 1 : +o.sit || 0;tf(P.all, `translate(0,${(o.bob + 50 * L).toFixed(1)})`);const a = -16 * S;- tf(P.torso, `rotate(${(a + j(3) * .4).toFixed(2)},-50,-56)`);+ tf(P.torso, `rotate(${(a + j(3) * .4).toFixed(2)},-50,-56)${o.swell ? ` translate(0,-80) scale(${(1 + .07 * o.swell).toFixed(3)}) translate(0,80)` : ''}`);// sitting folds the back legs under the haunch; lying shortens the back legs away and swings the front paws forwardvis(P.haunch, S > .4); vis(P.legB1, S <= .4 && L < .95); vis(P.legB2, S <= .4 && L < .95);const sw = o.walk ? 18 * k2 : 0, [fx, fy] = turn(30 + 16 * (1 - S), -60, a), fl = (-fy) / 60, bl = 1 - L; // front legs reach the ground from the shouldertf(P.legB1, `translate(-50,-60) rotate(${(sw + j(4) * .5).toFixed(2)}) scale(1,${bl.toFixed(3)})`); tf(P.legB2, `translate(-34,-60) rotate(${(-sw + j(5) * .5).toFixed(2)}) scale(1,${bl.toFixed(3)})`);const fr = -90 * L, fs = fl * (1 - .3 * L);- tf(P.legF1, `translate(${fx.toFixed(1)},${fy.toFixed(1)}) rotate(${(-sw + fr + j(6) * .5).toFixed(2)}) scale(1,${fs.toFixed(3)})`);+ tf(P.legF1, `translate(${fx.toFixed(1)},${fy.toFixed(1)}) rotate(${(-sw + fr - o.paw + j(6) * .5).toFixed(2)}) scale(1,${fs.toFixed(3)})`);tf(P.legF2, `translate(${(fx + 14).toFixed(1)},${fy.toFixed(1)}) rotate(${(sw + fr + j(7) * .5).toFixed(2)}) scale(1,${fs.toFixed(3)})`);tf(P.tail, `translate(-78,-92) rotate(${(-o.tail - (o.wag ? 16 * k2 : 0) + j(8)).toFixed(2)})`);tf(P.head, `rotate(${(-o.headR - a + j(9) * .6).toFixed(2)},62,-104)`);tf(P.jaw, `rotate(${(o.jaw * 30).toFixed(1)},100,-102)`);+ if (P.mouthIn) tf(P.mouthIn, `rotate(${(o.jaw * 15).toFixed(1)},100,-102)`); // the inside of an open mouth (episode 6), halfway betweentf(P.ear, `translate(80,-158) rotate(${(o.ear + j(10) * 2).toFixed(2)})`);tf(P.pupil, `translate(${(o.eyeX * 5).toFixed(1)},0)`);tf(P.lids, `translate(0,${((o.shut || (L > .5 && o.lie !== 'awake') ? 1 : o.lids) * 26).toFixed(1)})`);diff --git a/site/joke-collection/lib/shared.js b/site/joke-collection/lib/shared.jsindex f5568d7..ff5cd3a 100644--- a/site/joke-collection/lib/shared.js+++ b/site/joke-collection/lib/shared.js@@ -153,7 +153,8 @@ function sfxTick() {a.play().catch(() => {}); sfxOn.push(a); a.onended = () => sfxOn.splice(sfxOn.indexOf(a), 1);if (e.at <= from || e.at > P.t) a.addEventListener('loadedmetadata', () => { a.currentTime = P.t - e.at; }, { once: true }); // a long bed joined mid-way}- for (const a of sfxOn) { a.playbackRate = P.rate || 1; if (on === a.paused) on ? a.play().catch(() => {}) : a.pause(); } // a pause holds them, play resumes+ // a pause holds them, play resumes; one that has just ended (still listed until its onended runs) is not replayed+ for (const a of sfxOn) { a.playbackRate = P.rate || 1; if (on === a.paused && !a.ended) on ? a.play().catch(() => {}) : a.pause(); }sfxLast = { i: P.i, t: on ? P.t : from, pend: !on && (!same || !!sfxLast.pend) };// the music follows the playback speed, so the chapter's bgmTick need not re-seek it at 0.75× or 1.5× (BGM is the// chapter's own list, when it has one)diff --git a/site/joke-collection/making/ep6-box.webp b/site/joke-collection/making/ep6-box.webpnew file mode 100644index 0000000..29c7326Binary files /dev/null and b/site/joke-collection/making/ep6-box.webp differ