@maniclang/workbench 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +40 -0
- package/README.md +155 -0
- package/dist/client/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/client/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/client/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/client/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/client/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/client/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/client/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/client/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/client/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/client/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/client/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/client/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/client/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/client/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/client/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/client/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/client/assets/abap-CRCWOmpq.js +1 -0
- package/dist/client/assets/apex-DnsZk_dE.js +1 -0
- package/dist/client/assets/azcli-1IWB1ccx.js +1 -0
- package/dist/client/assets/bat-DPkNLes8.js +1 -0
- package/dist/client/assets/bicep-Corcdgou.js +2 -0
- package/dist/client/assets/cameligo-CGrWLZr3.js +1 -0
- package/dist/client/assets/clojure-D9WOWImG.js +1 -0
- package/dist/client/assets/codicon-CgENjH2v.ttf +0 -0
- package/dist/client/assets/coffee-B7EJu28W.js +1 -0
- package/dist/client/assets/cpp-SEyurbux.js +1 -0
- package/dist/client/assets/csharp-BoL64M5l.js +1 -0
- package/dist/client/assets/csp-C46ZqvIl.js +1 -0
- package/dist/client/assets/css-DQU6DXDx.js +3 -0
- package/dist/client/assets/cssMode-CtRONlr8.js +4 -0
- package/dist/client/assets/cypher-D84EuPTj.js +1 -0
- package/dist/client/assets/dart-D8lhlL1r.js +1 -0
- package/dist/client/assets/dockerfile-DLk6rpji.js +1 -0
- package/dist/client/assets/ecl-BO6FnfXk.js +1 -0
- package/dist/client/assets/editor.worker-CZyr7Ur9.js +26 -0
- package/dist/client/assets/elixir-BRjLKONM.js +1 -0
- package/dist/client/assets/flow9-Cac8vKd7.js +1 -0
- package/dist/client/assets/freemarker2-BTSNJUl8.js +3 -0
- package/dist/client/assets/fsharp-fd1GTHhf.js +1 -0
- package/dist/client/assets/go-O9LJTZXk.js +1 -0
- package/dist/client/assets/graphql-LQdxqEYJ.js +1 -0
- package/dist/client/assets/handlebars-qkUBjVg6.js +1 -0
- package/dist/client/assets/hcl-DxDQ3s82.js +1 -0
- package/dist/client/assets/html-pguqE00h.js +1 -0
- package/dist/client/assets/htmlMode-BCCLuk2F.js +4 -0
- package/dist/client/assets/index-BFrMLHHu.css +1 -0
- package/dist/client/assets/index-CdBC-xgi.js +1250 -0
- package/dist/client/assets/ini-BvajGCUy.js +1 -0
- package/dist/client/assets/java-SYsfObOQ.js +1 -0
- package/dist/client/assets/javascript-ciDUXdez.js +1 -0
- package/dist/client/assets/jsonMode-BmkXC0tI.js +10 -0
- package/dist/client/assets/julia-DQXNmw_w.js +1 -0
- package/dist/client/assets/kotlin-qQ0MG-9I.js +1 -0
- package/dist/client/assets/less-GGFNNJHn.js +2 -0
- package/dist/client/assets/lexon-Canl7DCW.js +1 -0
- package/dist/client/assets/liquid-CwE4UIwf.js +1 -0
- package/dist/client/assets/lua-D28Ae8-K.js +1 -0
- package/dist/client/assets/m3-DPitgjJI.js +1 -0
- package/dist/client/assets/markdown-B811l8j2.js +1 -0
- package/dist/client/assets/mdx-K_9Emnjy.js +1 -0
- package/dist/client/assets/mips-CdjsipkG.js +1 -0
- package/dist/client/assets/msdax-CYqgjx_P.js +1 -0
- package/dist/client/assets/mysql-BHd6q0vd.js +1 -0
- package/dist/client/assets/objective-c-B1aVtJYH.js +1 -0
- package/dist/client/assets/pascal-BhNW15KB.js +1 -0
- package/dist/client/assets/pascaligo-5jv8CcQD.js +1 -0
- package/dist/client/assets/perl-DlYyT36c.js +1 -0
- package/dist/client/assets/pgsql-Dy0bjov7.js +1 -0
- package/dist/client/assets/php-120yhfDK.js +1 -0
- package/dist/client/assets/pla-CjnFlu4u.js +1 -0
- package/dist/client/assets/postiats-CQpG440k.js +1 -0
- package/dist/client/assets/powerquery-DdJtto1Z.js +1 -0
- package/dist/client/assets/powershell-Bu_VLpJB.js +1 -0
- package/dist/client/assets/protobuf-IBS6jZEB.js +2 -0
- package/dist/client/assets/pug-kFxLfcjb.js +1 -0
- package/dist/client/assets/python-BzIc0EVe.js +1 -0
- package/dist/client/assets/qsharp-q7JyzKFN.js +1 -0
- package/dist/client/assets/r-BIFz-_sK.js +1 -0
- package/dist/client/assets/razor-lXZl6dtu.js +1 -0
- package/dist/client/assets/redis-CHOsPHWR.js +1 -0
- package/dist/client/assets/redshift-CBifECDb.js +1 -0
- package/dist/client/assets/restructuredtext-CghPJEOS.js +1 -0
- package/dist/client/assets/ruby-CYWGW-b1.js +1 -0
- package/dist/client/assets/rust-DMDD0SHb.js +1 -0
- package/dist/client/assets/sb-BYAiYHFx.js +1 -0
- package/dist/client/assets/scala-Bqvq8jcR.js +1 -0
- package/dist/client/assets/scheme-Dhb-2j9p.js +1 -0
- package/dist/client/assets/scss-CTwUZ5N7.js +3 -0
- package/dist/client/assets/shell-CsDZo4DB.js +1 -0
- package/dist/client/assets/solidity-CME5AdoB.js +1 -0
- package/dist/client/assets/sophia-RYC1BQQz.js +1 -0
- package/dist/client/assets/sparql-KEyrF7De.js +1 -0
- package/dist/client/assets/sql-BdTr02Mf.js +1 -0
- package/dist/client/assets/st-C7iG7M4S.js +1 -0
- package/dist/client/assets/swift-D7IUmUK8.js +1 -0
- package/dist/client/assets/systemverilog-DgMryOEJ.js +1 -0
- package/dist/client/assets/tcl-PloMZuKG.js +1 -0
- package/dist/client/assets/tsMode-BAXmgo_t.js +11 -0
- package/dist/client/assets/twig-BfRIq3la.js +1 -0
- package/dist/client/assets/typescript-Cdf8nS1n.js +1 -0
- package/dist/client/assets/typespec-CzxlYoT_.js +1 -0
- package/dist/client/assets/vb-BwAE3J76.js +1 -0
- package/dist/client/assets/wgsl-B_1kOXbF.js +298 -0
- package/dist/client/assets/xml-DGyPgYnj.js +1 -0
- package/dist/client/assets/yaml-Dqv3HtbL.js +1 -0
- package/dist/client/index.html +14 -0
- package/dist/client/manic-logo.png +0 -0
- package/dist/client/wasm/manic_lang.d.ts +74 -0
- package/dist/client/wasm/manic_lang.js +302 -0
- package/dist/client/wasm/manic_lang_bg.wasm +0 -0
- package/dist/client/wasm/manic_lang_bg.wasm.d.ts +13 -0
- package/dist/server/agentProtocol.d.ts +131 -0
- package/dist/server/agentProtocol.js +21 -0
- package/dist/server/agentProtocol.js.map +1 -0
- package/dist/server/agentRuns.d.ts +46 -0
- package/dist/server/agentRuns.js +138 -0
- package/dist/server/agentRuns.js.map +1 -0
- package/dist/server/agentThreads.d.ts +20 -0
- package/dist/server/agentThreads.js +205 -0
- package/dist/server/agentThreads.js.map +1 -0
- package/dist/server/aiSecrets.d.ts +21 -0
- package/dist/server/aiSecrets.js +68 -0
- package/dist/server/aiSecrets.js.map +1 -0
- package/dist/server/app.d.ts +34 -0
- package/dist/server/app.js +804 -0
- package/dist/server/app.js.map +1 -0
- package/dist/server/assets.d.ts +34 -0
- package/dist/server/assets.js +659 -0
- package/dist/server/assets.js.map +1 -0
- package/dist/server/candidateFix.d.ts +28 -0
- package/dist/server/candidateFix.js +111 -0
- package/dist/server/candidateFix.js.map +1 -0
- package/dist/server/cli.d.ts +2 -0
- package/dist/server/cli.js +118 -0
- package/dist/server/cli.js.map +1 -0
- package/dist/server/diagnostics.d.ts +13 -0
- package/dist/server/diagnostics.js +73 -0
- package/dist/server/diagnostics.js.map +1 -0
- package/dist/server/engineCheck.d.ts +7 -0
- package/dist/server/engineCheck.js +60 -0
- package/dist/server/engineCheck.js.map +1 -0
- package/dist/server/engineInstall.d.ts +34 -0
- package/dist/server/engineInstall.js +228 -0
- package/dist/server/engineInstall.js.map +1 -0
- package/dist/server/enginePaths.d.ts +3 -0
- package/dist/server/enginePaths.js +76 -0
- package/dist/server/enginePaths.js.map +1 -0
- package/dist/server/folderPicker.d.ts +1 -0
- package/dist/server/folderPicker.js +54 -0
- package/dist/server/folderPicker.js.map +1 -0
- package/dist/server/manicAgent.d.ts +75 -0
- package/dist/server/manicAgent.js +476 -0
- package/dist/server/manicAgent.js.map +1 -0
- package/dist/server/manicEnv.d.ts +18 -0
- package/dist/server/manicEnv.js +64 -0
- package/dist/server/manicEnv.js.map +1 -0
- package/dist/server/promptStore.d.ts +11 -0
- package/dist/server/promptStore.js +85 -0
- package/dist/server/promptStore.js.map +1 -0
- package/dist/server/renderJobs.d.ts +54 -0
- package/dist/server/renderJobs.js +290 -0
- package/dist/server/renderJobs.js.map +1 -0
- package/dist/server/settings.d.ts +40 -0
- package/dist/server/settings.js +262 -0
- package/dist/server/settings.js.map +1 -0
- package/dist/server/smartDraw.d.ts +7 -0
- package/dist/server/smartDraw.js +88 -0
- package/dist/server/smartDraw.js.map +1 -0
- package/dist/server/workspace.d.ts +27 -0
- package/dist/server/workspace.js +172 -0
- package/dist/server/workspace.js.map +1 -0
- package/examples/.manic-output/40b6f3b9-7638-4c0e-bb4f-570d45d1b225/job.json +26 -0
- package/examples/.manic-output/993f3788-f75e-445c-ba45-c401907b3c02/job.json +26 -0
- package/examples/.manic-output/993f3788-f75e-445c-ba45-c401907b3c02/markers.json +13 -0
- package/examples/.manic-output/993f3788-f75e-445c-ba45-c401907b3c02/out.mp4 +0 -0
- package/examples/.manic-workbench-threads/thread_3ce7448a13f64f9e887d1bc8106a97a8.json +45 -0
- package/examples/.manic-workbench-threads/thread_d494cda29249477591056234719e4a3a.json +21 -0
- package/examples/.manic-workbench-threads/thread_e98ebdc225184ea5b8ddda8b44541f63.json +29 -0
- package/examples/README.md +35 -0
- package/examples/a-story-1.manic +222 -0
- package/examples/a-story.manic +100 -0
- package/examples/achromat-cinematic.manic +105 -0
- package/examples/achromat.manic +32 -0
- package/examples/aes-decrypt.manic +359 -0
- package/examples/aes-encrypt.manic +359 -0
- package/examples/aes-round.manic +70 -0
- package/examples/aes-story.manic +622 -0
- package/examples/ai-story.manic +118 -0
- package/examples/analysis.manic +53 -0
- package/examples/archimedes_pi.manic +89 -0
- package/examples/area_under_curve.manic +131 -0
- package/examples/art-rakkan.manic +69 -0
- package/examples/aspheric-lens.manic +32 -0
- package/examples/astronomical-watch.manic +96 -0
- package/examples/asymptote-randomwalk3-reference.manic +58 -0
- package/examples/asymptote-tiling-reference.manic +65 -0
- package/examples/aws-clustered-web-services.manic +186 -0
- package/examples/aws-event-processing-clusters-poc.manic +97 -0
- package/examples/aws-three-tier-web-application.manic +134 -0
- package/examples/band.manic +43 -0
- package/examples/banner.manic +37 -0
- package/examples/bayes.manic +27 -0
- package/examples/bellcurve.manic +41 -0
- package/examples/bfs_dfs.manic +35 -0
- package/examples/block-tackle.manic +26 -0
- package/examples/bloom-scope.manic +172 -0
- package/examples/boolean.manic +46 -0
- package/examples/boxplot-wave.manic +93 -0
- package/examples/boxplot.manic +43 -0
- package/examples/brace.manic +46 -0
- package/examples/brachistochrone-annotated.manic +51 -0
- package/examples/brachistochrone.manic +27 -0
- package/examples/bubble_sort.manic +41 -0
- package/examples/bullet-block-annotated.manic +48 -0
- package/examples/bullet-block.manic +11 -0
- package/examples/bullet-impact.manic +65 -0
- package/examples/bungee.manic +9 -0
- package/examples/c4-internet-banking-components.manic +33 -0
- package/examples/c4-internet-banking-containers.manic +29 -0
- package/examples/c4-internet-banking.manic +26 -0
- package/examples/c4-story.manic +171 -0
- package/examples/c4-test.manic +52 -0
- package/examples/c4-zoom.manic +69 -0
- package/examples/calculus-demo.manic +129 -0
- package/examples/calculus-one.manic +288 -0
- package/examples/captions.manic +31 -0
- package/examples/car-suspension-annotated.manic +57 -0
- package/examples/car-suspension.manic +8 -0
- package/examples/cart-pendulum.manic +11 -0
- package/examples/charts-bar-line.manic +26 -0
- package/examples/charts-column-race.manic +19 -0
- package/examples/charts-gdp-race.manic +43 -0
- package/examples/charts-german-elections.manic +28 -0
- package/examples/charts-line-race.manic +21 -0
- package/examples/circle-in-three.manic +156 -0
- package/examples/circle-thirds-no-triangle.manic +161 -0
- package/examples/clip-window.manic +34 -0
- package/examples/cloud-feathers.manic +50 -0
- package/examples/cloud-jellyfish-v2.manic +87 -0
- package/examples/cloud-jellyfish.manic +48 -0
- package/examples/cloud-kaleidoscope.manic +48 -0
- package/examples/cloud-koi.manic +51 -0
- package/examples/cloud-lissajous.manic +23 -0
- package/examples/cloud-medusae.manic +46 -0
- package/examples/cloud-phoenix.manic +49 -0
- package/examples/cloud-plumes.manic +47 -0
- package/examples/cloud-pottery.manic +104 -0
- package/examples/cloud-shells.manic +50 -0
- package/examples/cloud-starfield.manic +23 -0
- package/examples/cloud-wave-lattice.manic +23 -0
- package/examples/cloud-word.manic +31 -0
- package/examples/cloud3-ripple.manic +53 -0
- package/examples/cloud3-sphere.manic +26 -0
- package/examples/clt.manic +35 -0
- package/examples/collide-blocks-annotated.manic +45 -0
- package/examples/collide-blocks.manic +11 -0
- package/examples/compare-pendulum.manic +11 -0
- package/examples/complex-flowchart.manic +196 -0
- package/examples/compound-pulley.manic +25 -0
- package/examples/conics.manic +46 -0
- package/examples/coordinates.manic +52 -0
- package/examples/correlation.manic +35 -0
- package/examples/covariance.manic +30 -0
- package/examples/creator-affine-fern-growth.manic +72 -0
- package/examples/creator-bowl-to-saddle.manic +86 -0
- package/examples/creator-branch-counting-tree3.manic +77 -0
- package/examples/creator-chaos-game-fern.manic +72 -0
- package/examples/creator-circle-inversion-chain.manic +61 -0
- package/examples/creator-convex-hull-depth.manic +59 -0
- package/examples/creator-coordinate-worlds.manic +182 -0
- package/examples/creator-ellipse-reflection-property.manic +59 -0
- package/examples/creator-free-kicks.manic +261 -0
- package/examples/creator-geometry-language-showcase.manic +259 -0
- package/examples/creator-geometry-morph-promo.manic +151 -0
- package/examples/creator-heightmap-world.manic +130 -0
- package/examples/creator-hilbert3-spatial-index.manic +203 -0
- package/examples/creator-how-rocket-launch-works.manic +192 -0
- package/examples/creator-implicit-surface-parameterized.manic +51 -0
- package/examples/creator-incenter-dissection.manic +56 -0
- package/examples/creator-lattice-paths.manic +118 -0
- package/examples/creator-line-inversion.manic +49 -0
- package/examples/creator-lsystem-fractal-curve.manic +121 -0
- package/examples/creator-mandelbrot-escape-test.manic +58 -0
- package/examples/creator-monty-hall.manic +104 -0
- package/examples/creator-noise-story.manic +123 -0
- package/examples/creator-one-tile-pattern-story.manic +169 -0
- package/examples/creator-pathfinding.manic +82 -0
- package/examples/creator-point-to-plane-distance.manic +167 -0
- package/examples/creator-race-quiz.manic +76 -0
- package/examples/creator-randomwalk3-diffusion.manic +72 -0
- package/examples/creator-reflected-ellipse.manic +48 -0
- package/examples/creator-rule90-sierpinski.manic +64 -0
- package/examples/creator-three-shadows-of-a-curve.manic +48 -0
- package/examples/creator-trigonometry-one-angle.manic +307 -0
- package/examples/creator-v2-latex-algebra.manic +29 -0
- package/examples/creator-v2-latex-calculus.manic +37 -0
- package/examples/creator-v2-latex-physics.manic +29 -0
- package/examples/creator-v2-olympiad-geometry.manic +92 -0
- package/examples/creator-v2-options-socials.manic +21 -0
- package/examples/creator-v2-timers.manic +25 -0
- package/examples/creator-v2-timing-square.manic +25 -0
- package/examples/creator-v2-timing.manic +34 -0
- package/examples/creator-v2.manic +36 -0
- package/examples/creator-why-rockets-use-stages.manic +198 -0
- package/examples/creator-wrap-real-line.manic +51 -0
- package/examples/cubic-graphs.manic +432 -0
- package/examples/curve-features.manic +41 -0
- package/examples/definedmotion-fourier-gallery.manic +171 -0
- package/examples/derivative-of-ln-x.manic +194 -0
- package/examples/diagonalise.manic +56 -0
- package/examples/dijkstra.manic +29 -0
- package/examples/dimensions-unfold.manic +211 -0
- package/examples/disc-integration.manic +172 -0
- package/examples/double-incline.manic +9 -0
- package/examples/double-integral3.manic +43 -0
- package/examples/double-pendulum.manic +35 -0
- package/examples/double-spring.manic +9 -0
- package/examples/drop-mass.manic +25 -0
- package/examples/eigen3.manic +34 -0
- package/examples/equal_cuts.manic +44 -0
- package/examples/equation.manic +16 -0
- package/examples/equilateral.manic +57 -0
- package/examples/euler_line.manic +51 -0
- package/examples/exponential-shells.manic +188 -0
- package/examples/extrude3.manic +37 -0
- package/examples/factorial-flowchart.manic +69 -0
- package/examples/fibonacci-sphere.manic +57 -0
- package/examples/flow-lorenz.manic +47 -0
- package/examples/fourier-series-live-wave.manic +114 -0
- package/examples/fourier-square-wave-live.manic +114 -0
- package/examples/fractal_tree.manic +39 -0
- package/examples/frame3-grid-policies.manic +48 -0
- package/examples/ftc.manic +54 -0
- package/examples/function_graph.manic +54 -0
- package/examples/galton-board-process.manic +150 -0
- package/examples/gcp-clustered-web-services.manic +186 -0
- package/examples/gcp-message-collecting.manic +139 -0
- package/examples/geo-pythagoras-short.manic +119 -0
- package/examples/glsl-boxgrid.manic +105 -0
- package/examples/glsl-parameter.manic +30 -0
- package/examples/glsl-raymarch.manic +59 -0
- package/examples/glsl-shapes.manic +122 -0
- package/examples/gradient-descent-field.manic +116 -0
- package/examples/gradient-fastest-descent-shorts.manic +153 -0
- package/examples/gradient-fastest-descent.manic +125 -0
- package/examples/gradient-pendulum-shorts.manic +117 -0
- package/examples/gradient.manic +74 -0
- package/examples/graph.manic +45 -0
- package/examples/graph_moving.manic +67 -0
- package/examples/grid-astar.manic +15 -0
- package/examples/grid-life-soup.manic +31 -0
- package/examples/grid-life-zoo.manic +46 -0
- package/examples/grid-life.manic +19 -0
- package/examples/grid-wfc.manic +13 -0
- package/examples/growing-fractal-tree3.manic +58 -0
- package/examples/gun-shot.manic +82 -0
- package/examples/hashmap.manic +38 -0
- package/examples/heightmap3-world.manic +64 -0
- package/examples/heightmap3.manic +23 -0
- package/examples/hilbert-curve3-space-filling.manic +117 -0
- package/examples/hill_run.manic +71 -0
- package/examples/histogram.manic +43 -0
- package/examples/hotdog-taco.manic +147 -0
- package/examples/hue_wave.manic +35 -0
- package/examples/hypothesis.manic +32 -0
- package/examples/image.manic +29 -0
- package/examples/incircle_tangents.manic +64 -0
- package/examples/incline-bumper.manic +11 -0
- package/examples/incline-pulley.manic +11 -0
- package/examples/incline-showcase.manic +55 -0
- package/examples/inline-math.manic +16 -0
- package/examples/inscribed-angle-short.manic +56 -0
- package/examples/integral-sqrt-tanx.manic +255 -0
- package/examples/integrals.manic +274 -0
- package/examples/inverse-derivatives.manic +94 -0
- package/examples/k8s-cluster-components.manic +82 -0
- package/examples/k8s-stateful-architecture.manic +134 -0
- package/examples/k8s-three-tier.manic +146 -0
- package/examples/kapitza.manic +11 -0
- package/examples/latex-disintegration.manic +123 -0
- package/examples/lens-paper.manic +36 -0
- package/examples/lens-prescription.manic +33 -0
- package/examples/lens-system.manic +34 -0
- package/examples/lens.manic +31 -0
- package/examples/limit-infinity.manic +30 -0
- package/examples/limit.manic +33 -0
- package/examples/linear-algebra-3d.manic +50 -0
- package/examples/linear-algebra.manic +115 -0
- package/examples/linear-map.manic +39 -0
- package/examples/linear-map3.manic +33 -0
- package/examples/linear-system.manic +99 -0
- package/examples/linear_transform.manic +43 -0
- package/examples/linked_list.manic +38 -0
- package/examples/lln.manic +31 -0
- package/examples/loop-cinematic.manic +41 -0
- package/examples/loop-track.manic +11 -0
- package/examples/lorenz-attractor.manic +55 -0
- package/examples/lorenz-shells.manic +43 -0
- package/examples/lost-in-patterns.manic +149 -0
- package/examples/lsystem-asymptote-curves.manic +81 -0
- package/examples/manic-ml-activation-focus.manic +133 -0
- package/examples/manic-ml-cnn-edge-story.manic +102 -0
- package/examples/manic-ml-forward-pass.manic +93 -0
- package/examples/manic-ml-learning-step.manic +116 -0
- package/examples/manic-ml-logits-sampling.manic +112 -0
- package/examples/manic-ml-scalar-to-tensor.manic +143 -0
- package/examples/manic-ml-token-embedding.manic +110 -0
- package/examples/manic-ml-transformer-attention.manic +102 -0
- package/examples/manic-ml-transformer-block.manic +116 -0
- package/examples/manic-promo.manic +64 -0
- package/examples/map-attractor.manic +45 -0
- package/examples/mask-lens.manic +33 -0
- package/examples/matrix.manic +37 -0
- package/examples/matrix3.manic +101 -0
- package/examples/matrix_addition.manic +66 -0
- package/examples/matrix_addition_plane.manic +91 -0
- package/examples/maxwell-boltzmann-effusion-v2.manic +142 -0
- package/examples/maxwell-boltzmann-process.manic +86 -0
- package/examples/microservices-platform.manic +140 -0
- package/examples/molecule.manic +8 -0
- package/examples/morph-icons.manic +29 -0
- package/examples/morph.manic +29 -0
- package/examples/morph3.manic +49 -0
- package/examples/motion-flow-foundation.manic +148 -0
- package/examples/motion-graphics-v2-story.manic +189 -0
- package/examples/motion-graphics-v2.manic +81 -0
- package/examples/motion-graphics.manic +81 -0
- package/examples/multivariable3.manic +26 -0
- package/examples/mystory.manic +9 -0
- package/examples/newton.manic +39 -0
- package/examples/newtons-cradle.manic +10 -0
- package/examples/nine_point.manic +59 -0
- package/examples/noise-terrain.manic +16 -0
- package/examples/off-axis.manic +32 -0
- package/examples/onprem-advanced-web-service-v2.manic +196 -0
- package/examples/onprem-advanced-web-service.manic +175 -0
- package/examples/orthocenter.manic +63 -0
- package/examples/param3.manic +43 -0
- package/examples/parameter-journeys.manic +154 -0
- package/examples/parameterized-field-advection.manic +57 -0
- package/examples/parameterized-generated-families3.manic +83 -0
- package/examples/particles-flow.manic +61 -0
- package/examples/pascal-triangle.manic +92 -0
- package/examples/pendulum-annotated.manic +72 -0
- package/examples/pendulum-damped.manic +35 -0
- package/examples/pendulum.manic +38 -0
- package/examples/perfect-reel.manic +43 -0
- package/examples/pie.manic +41 -0
- package/examples/pieday.manic +113 -0
- package/examples/piston.manic +7 -0
- package/examples/popkorn-field.manic +38 -0
- package/examples/prism-cinematic.manic +36 -0
- package/examples/prism.manic +32 -0
- package/examples/probability.manic +57 -0
- package/examples/process-branching-dispatch.manic +71 -0
- package/examples/process-stream-observe.manic +54 -0
- package/examples/projection.manic +57 -0
- package/examples/prompt-test-10.manic +257 -0
- package/examples/prompt-test-11.manic +168 -0
- package/examples/prompt-test-12.manic +177 -0
- package/examples/prompt-test-13.manic +228 -0
- package/examples/prompt-test-14.manic +319 -0
- package/examples/prompt-test-15.manic +325 -0
- package/examples/prompt-test-16.manic +252 -0
- package/examples/prompt-test-2.manic +239 -0
- package/examples/prompt-test-3.manic +336 -0
- package/examples/prompt-test-4.manic +195 -0
- package/examples/prompt-test-5.manic +223 -0
- package/examples/prompt-test-6.manic +222 -0
- package/examples/prompt-test-7.manic +156 -0
- package/examples/prompt-test-8.manic +266 -0
- package/examples/prompt-test-9.manic +171 -0
- package/examples/prompt-test.manic +158 -0
- package/examples/pulley-annotated.manic +54 -0
- package/examples/pulley-paper.manic +52 -0
- package/examples/pulley-scale.manic +23 -0
- package/examples/pulley.manic +24 -0
- package/examples/quadratic-formula-continuity.manic +110 -0
- package/examples/quiz-euler.manic +52 -0
- package/examples/quiz-geometry-2.manic +107 -0
- package/examples/quiz-geometry.manic +108 -0
- package/examples/quiz-skins.manic +22 -0
- package/examples/raft-cm.manic +24 -0
- package/examples/ramp.manic +25 -0
- package/examples/ray-fan.manic +27 -0
- package/examples/raymarch-alpha.manic +39 -0
- package/examples/raymarch-boxgrid.manic +47 -0
- package/examples/raymarch-docker-latency.manic +74 -0
- package/examples/raymarch-metaballs.manic +37 -0
- package/examples/raymarch-sculpture.manic +39 -0
- package/examples/raymarch-shapes3.manic +31 -0
- package/examples/reactive-integral.manic +172 -0
- package/examples/reactive-math-journey.manic +185 -0
- package/examples/reactive-math-notation.manic +150 -0
- package/examples/reactive-multiformat.manic +130 -0
- package/examples/reactive-world.manic +111 -0
- package/examples/refraction-paper.manic +40 -0
- package/examples/refraction.manic +32 -0
- package/examples/resonance.manic +10 -0
- package/examples/rewrite-exponential-cubic.manic +141 -0
- package/examples/rewrite-integration.manic +199 -0
- package/examples/riemann_rainbow.manic +61 -0
- package/examples/riemann_readout.manic +61 -0
- package/examples/robot-arm.manic +25 -0
- package/examples/rref.manic +48 -0
- package/examples/second-law-thermodynamics.manic +385 -0
- package/examples/series-parallel-springs.manic +8 -0
- package/examples/serverless-processing.manic +145 -0
- package/examples/shader-cellular.manic +35 -0
- package/examples/shader-fractal.manic +45 -0
- package/examples/shader-fx.manic +34 -0
- package/examples/shader-glitch-grid.manic +55 -0
- package/examples/shader-parameter.manic +25 -0
- package/examples/shader-patterns.manic +37 -0
- package/examples/shader-plasma.manic +43 -0
- package/examples/shader-shapes-dsl.manic +46 -0
- package/examples/shader-shapes.manic +37 -0
- package/examples/shader-warp.manic +22 -0
- package/examples/shapes-howto.manic +411 -0
- package/examples/sine_wave.manic +42 -0
- package/examples/skew.manic +40 -0
- package/examples/smoke.rs +57 -0
- package/examples/solids3.manic +22 -0
- package/examples/some-story.manic +299 -0
- package/examples/spinning-cylinder-flow.manic +87 -0
- package/examples/spline.manic +21 -0
- package/examples/spot-diagram.manic +32 -0
- package/examples/spring-annotated.manic +60 -0
- package/examples/spring-chain.manic +11 -0
- package/examples/spring-damped.manic +33 -0
- package/examples/spring-incline.manic +10 -0
- package/examples/spring-paper.manic +46 -0
- package/examples/spring-pendulum.manic +14 -0
- package/examples/spring.manic +33 -0
- package/examples/sqrt-tanx.manic +217 -0
- package/examples/ssl-handshake-sdf.manic +116 -0
- package/examples/stack_queue.manic +53 -0
- package/examples/statistics.manic +60 -0
- package/examples/story-addressable-asset-cues.manic +71 -0
- package/examples/story-dependent-chain-history.manic +56 -0
- package/examples/story-living-dependency-cloud.manic +50 -0
- package/examples/story-time-varying-field3.manic +57 -0
- package/examples/story.manic +4 -0
- package/examples/string-art-breath.manic +70 -0
- package/examples/string-wave.manic +10 -0
- package/examples/summary.manic +48 -0
- package/examples/svg-howto.manic +172 -0
- package/examples/svg-import.manic +18 -0
- package/examples/systems-architecture-poc.manic +92 -0
- package/examples/systems-arrow-patterns.manic +151 -0
- package/examples/systems-foundation.manic +71 -0
- package/examples/systems-rabbitmq-consumers.manic +118 -0
- package/examples/table.manic +39 -0
- package/examples/table_braces.manic +54 -0
- package/examples/tangent-length-short.manic +57 -0
- package/examples/tangent.manic +29 -0
- package/examples/tangents.manic +54 -0
- package/examples/taylor.manic +44 -0
- package/examples/terminal_boot.manic +40 -0
- package/examples/test.manic +61 -0
- package/examples/text-guide.manic +304 -0
- package/examples/textbook-coordinate-worlds.manic +129 -0
- package/examples/textbook-doubly-list.manic +33 -0
- package/examples/textbook-function-to-solid.manic +126 -0
- package/examples/textbook-geometry-dimension-reduction.manic +129 -0
- package/examples/textbook-incline-fbd.manic +43 -0
- package/examples/textbook-length-area-volume.manic +137 -0
- package/examples/textbook-matrix-inverses.manic +172 -0
- package/examples/textbook-pulley.manic +35 -0
- package/examples/textbook-statistical-dimensions.manic +151 -0
- package/examples/textbook-tension.manic +39 -0
- package/examples/textbook-watermelon-sections.manic +216 -0
- package/examples/thales-semicircle-short.manic +53 -0
- package/examples/three-d-v2-lab.manic +83 -0
- package/examples/three-d-v2-story.manic +106 -0
- package/examples/three-d-v2.manic +69 -0
- package/examples/three_d.manic +39 -0
- package/examples/timing-v2-scene.manic +47 -0
- package/examples/trajectory.manic +28 -0
- package/examples/transform_copy.manic +35 -0
- package/examples/transforms.manic +54 -0
- package/examples/trapped-light-dimensions.manic +226 -0
- package/examples/tree-of-leaves.manic +215 -0
- package/examples/triangle.manic +68 -0
- package/examples/two_person_walk.manic +296 -0
- package/examples/two_pointer.manic +32 -0
- package/examples/type-to-sdf.manic +139 -0
- package/examples/typewriter.manic +28 -0
- package/examples/vector_field.manic +32 -0
- package/examples/vertical-spring.manic +10 -0
- package/examples/volume3.manic +21 -0
- package/examples/volumes-solid-of-revolution.manic +111 -0
- package/examples/walk.manic +154 -0
- package/examples/wheel-duo.manic +91 -0
- package/examples/wheel-radial.manic +78 -0
- package/examples/wheel-square.manic +83 -0
- package/examples/wireframe-spheres.manic +37 -0
- package/examples/zeroth-law-thermodynamics.manic +269 -0
- package/package.json +59 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// map-attractor — a discrete 2-D strange attractor, via the new `cloud … from
|
|
2
|
+
// map(...)` source: the discrete twin of `from flow`. `map` ITERATES a 2-D map
|
|
3
|
+
// (x,y) -> (x',y') 40,000 times (a stateful recurrence clouds alone can't do) and
|
|
4
|
+
// hands each point the i-th state as hx/hy; the cloud's formulas project it.
|
|
5
|
+
// Covers the whole Gumowski-Mira / Clifford / de Jong / Hénon family. Most maps
|
|
6
|
+
// take both formulas from the OLD state (clean); THIS one is sequential
|
|
7
|
+
// (y' uses x'), so x' is inlined into y' below.
|
|
8
|
+
//
|
|
9
|
+
// Original idea by @yuruyurau (https://x.com/yuruyurau). Our hue'd, annotated,
|
|
10
|
+
// bloomed take on a 9:16 Short — pure in (i, t), so it scrubs and records.
|
|
11
|
+
//
|
|
12
|
+
// manic examples/map-attractor.manic
|
|
13
|
+
title("A strange attractor from one map");
|
|
14
|
+
canvas("9:16");
|
|
15
|
+
template("black");
|
|
16
|
+
|
|
17
|
+
cloud(atr, 40000, #ffffff, 0.5)
|
|
18
|
+
from map("(y+(1-0.06*y*y)*0.003*y-0.8*x+3.6*x*x/(1+x*x))", "-0.8*(y+(1-0.06*y*y)*0.003*y-0.8*x+3.6*x*x/(1+x*x))+3.6*(y+(1-0.06*y*y)*0.003*y-0.8*x+3.6*x*x/(1+x*x))*(y+(1-0.06*y*y)*0.003*y-0.8*x+3.6*x*x/(1+x*x))/(1+(y+(1-0.06*y*y)*0.003*y-0.8*x+3.6*x*x/(1+x*x))*(y+(1-0.06*y*y)*0.003*y-0.8*x+3.6*x*x/(1+x*x)))-x", (1, 1)) {
|
|
19
|
+
// hx, hy = the i-th iterated state; project it through a polar lens
|
|
20
|
+
let c = t - hypot(hx, hy)/4;
|
|
21
|
+
let px = hy*(5*sin(c) + 11);
|
|
22
|
+
let py = hx*(2*cos(c) + 7) + 9*sin(hy/4 + t);
|
|
23
|
+
let grow = tanh(t*0.5 + 0.12);
|
|
24
|
+
let x = 540 + px * 2.3 * grow;
|
|
25
|
+
let y = 980 + py * 2.3 * grow;
|
|
26
|
+
let hue = mod(hypot(hx, hy)*24 + t*14, 360);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// ---- textbook annotations ----
|
|
30
|
+
caption(head, "A strange attractor from one map", (540, 140), 34);
|
|
31
|
+
caption(sub, "40,000 iterations, no simulation loop", (540, 208), 22);
|
|
32
|
+
hidden(head);
|
|
33
|
+
hidden(sub);
|
|
34
|
+
equation(eq, (540, 1706), `(x,y)\;\to\;(x',\,y')`, 38);
|
|
35
|
+
caption(lab, "iterate a discrete map, then project it", (540, 1786), 20);
|
|
36
|
+
hidden(eq);
|
|
37
|
+
hidden(lab);
|
|
38
|
+
|
|
39
|
+
show(head);
|
|
40
|
+
wait(1.4);
|
|
41
|
+
show(sub);
|
|
42
|
+
wait(2.6);
|
|
43
|
+
show(eq);
|
|
44
|
+
show(lab);
|
|
45
|
+
wait(30);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// mask-lens.manic — T2 arbitrary-shape mask: reveal-through-any-shape.
|
|
2
|
+
//
|
|
3
|
+
// `mask(id, region)` composites `id` through another entity's SILHOUETTE — any
|
|
4
|
+
// shape (circle, polygon, star, an imported svg outline) masks any content. The
|
|
5
|
+
// general cousin of `clip` (which is rectangle-only). The mask follows `region`
|
|
6
|
+
// every frame, so a circular lens glides across a big vector like a magnifier.
|
|
7
|
+
//
|
|
8
|
+
// manic examples/mask-lens.manic
|
|
9
|
+
title("Mask — reveal through any shape");
|
|
10
|
+
canvas("16:9");
|
|
11
|
+
template("blank");
|
|
12
|
+
|
|
13
|
+
// a big imported vector to peer into
|
|
14
|
+
svg(art, (cx, cy), "asset:svg/flags/br.svg", 940);
|
|
15
|
+
|
|
16
|
+
// a circular lens — its shape is the mask (declared BEFORE the mask call)
|
|
17
|
+
circle(lens, (cx - 340, cy), 150); outlined(lens); outline(lens, fg); stroke(lens, 5); glow(lens, 0.8);
|
|
18
|
+
|
|
19
|
+
// mask the whole vector to the lens — art shows only inside the circle
|
|
20
|
+
mask(art, lens);
|
|
21
|
+
|
|
22
|
+
text(cap, (cx, h*0.9), "mask(id, region) — any shape masks any content");
|
|
23
|
+
size(cap, 26); color(cap, dim); display(cap);
|
|
24
|
+
|
|
25
|
+
// glide the lens across → the flag is revealed only inside the moving circle
|
|
26
|
+
seq {
|
|
27
|
+
wait(0.4);
|
|
28
|
+
move(lens, (cx + 340, cy), 2.4, smooth);
|
|
29
|
+
wait(0.3);
|
|
30
|
+
move(lens, (cx, cy), 1.0, smooth);
|
|
31
|
+
pulse(lens);
|
|
32
|
+
wait(0.6);
|
|
33
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Matrix — a bracketed grid of entries, addressable by row and column via tag
|
|
2
|
+
// broadcast (à la Manim's Matrix + set_row_colors / set_column_colors).
|
|
3
|
+
//
|
|
4
|
+
// manic examples/matrix.manic
|
|
5
|
+
// manic examples/matrix.manic --record out --fps 60
|
|
6
|
+
//
|
|
7
|
+
// Rows are separated by ';', entries by spaces/commas. Entry ids m.r{i}c{j};
|
|
8
|
+
// tags m.row{i} / m.col{j} / m.entries.
|
|
9
|
+
|
|
10
|
+
title("Matrix");
|
|
11
|
+
canvas(1280, 720);
|
|
12
|
+
|
|
13
|
+
text(head, (640, 130), "rows and columns you can address");
|
|
14
|
+
display(head); color(head, cyan); size(head, 28); hidden(head);
|
|
15
|
+
text(cap, (640, 620), ""); color(cap, dim); size(cap, 22);
|
|
16
|
+
|
|
17
|
+
matrix(m, "2 0 4; -1 1 5; 3 -2 0", (640, 370));
|
|
18
|
+
untraced(m.lbrack); untraced(m.rbrack);
|
|
19
|
+
hidden(m.entries);
|
|
20
|
+
|
|
21
|
+
show(head, 0.5);
|
|
22
|
+
say(cap, "a 3x3 matrix");
|
|
23
|
+
par { draw(m.lbrack, 0.5); draw(m.rbrack, 0.5); }
|
|
24
|
+
seq { show(m.row0, 0.35); show(m.row1, 0.35); show(m.row2, 0.35); }
|
|
25
|
+
wait(0.5);
|
|
26
|
+
|
|
27
|
+
section("Columns");
|
|
28
|
+
say(cap, "colour a column — set_column_colors");
|
|
29
|
+
recolor(m.col1, magenta, 0.4);
|
|
30
|
+
flash(m.col2, cyan);
|
|
31
|
+
wait(0.5);
|
|
32
|
+
|
|
33
|
+
section("Rows");
|
|
34
|
+
say(cap, "and highlight a row — set_row_colors");
|
|
35
|
+
recolor(m.row0, lime, 0.4);
|
|
36
|
+
par { pulse(m.r0c0); pulse(m.r0c1); pulse(m.r0c2); }
|
|
37
|
+
wait(1.2);
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// A 3 × 3 × 3 block of 27 cubes, then a matrix operation: a 3×3 matrix is a
|
|
2
|
+
// linear map of space. We apply a shear M to every cell, then its inverse
|
|
3
|
+
// M^-1 — which sends the block back exactly, because M^-1 M = I.
|
|
4
|
+
//
|
|
5
|
+
// manic examples/matrix3.manic
|
|
6
|
+
// manic examples/matrix3.manic --record out --fps 60
|
|
7
|
+
|
|
8
|
+
title("3 × 3 × 3 · M and M^-1");
|
|
9
|
+
canvas("16:9");
|
|
10
|
+
template("terminal");
|
|
11
|
+
|
|
12
|
+
camera3((7.5, -9, 6), (2.4, 0, 2.1), 42);
|
|
13
|
+
grid3(floor, (0, 0, 0), 6, 1);
|
|
14
|
+
color(floor, dim);
|
|
15
|
+
|
|
16
|
+
let s = 1.3; // cell spacing (cubes are 1 wide → 0.3 gaps)
|
|
17
|
+
let zc = 2.1; // height of the block's centre
|
|
18
|
+
let a = 0.7; // shear amount: M sends x → x + a·z
|
|
19
|
+
|
|
20
|
+
text(cap, (cx, h - 42), "");
|
|
21
|
+
display(cap); color(cap, fg); size(cap, 21); hidden(cap);
|
|
22
|
+
|
|
23
|
+
// --- 27 cubes, three x-slices coloured cyan / magenta / lime ---
|
|
24
|
+
for j in 0..3 { for k in 0..3 {
|
|
25
|
+
cube3(xa{j}{k}, (0 - s, (j - 1)*s, zc + (k - 1)*s), (1, 1, 1));
|
|
26
|
+
color(xa{j}{k}, cyan); hidden(xa{j}{k});
|
|
27
|
+
} }
|
|
28
|
+
for j in 0..3 { for k in 0..3 {
|
|
29
|
+
cube3(xb{j}{k}, (0, (j - 1)*s, zc + (k - 1)*s), (1, 1, 1));
|
|
30
|
+
color(xb{j}{k}, magenta); hidden(xb{j}{k});
|
|
31
|
+
} }
|
|
32
|
+
for j in 0..3 { for k in 0..3 {
|
|
33
|
+
cube3(xc{j}{k}, (s, (j - 1)*s, zc + (k - 1)*s), (1, 1, 1));
|
|
34
|
+
color(xc{j}{k}, lime); hidden(xc{j}{k});
|
|
35
|
+
} }
|
|
36
|
+
|
|
37
|
+
// --- the matrices, as monospace text on the right ---
|
|
38
|
+
text(mLabel, (995, 232), "M =");
|
|
39
|
+
text(m0, (1035, 274), "[ 1 0 0.7 ]");
|
|
40
|
+
text(m1, (1035, 310), "[ 0 1 0 ]");
|
|
41
|
+
text(m2, (1035, 346), "[ 0 0 1 ]");
|
|
42
|
+
text(iLabel, (995, 446), "M^-1 =");
|
|
43
|
+
text(i0, (1035, 488), "[ 1 0 -0.7 ]");
|
|
44
|
+
text(i1, (1035, 524), "[ 0 1 0 ]");
|
|
45
|
+
text(i2, (1035, 560), "[ 0 0 1 ]");
|
|
46
|
+
display(mLabel); display(m0); display(m1); display(m2);
|
|
47
|
+
display(iLabel); display(i0); display(i1); display(i2);
|
|
48
|
+
color(mLabel, cyan); color(m0, cyan); color(m1, cyan); color(m2, cyan);
|
|
49
|
+
color(iLabel, gold); color(i0, gold); color(i1, gold); color(i2, gold);
|
|
50
|
+
size(mLabel, 24); size(m0, 22); size(m1, 22); size(m2, 22);
|
|
51
|
+
size(iLabel, 24); size(i0, 22); size(i1, 22); size(i2, 22);
|
|
52
|
+
hidden(mLabel); hidden(m0); hidden(m1); hidden(m2);
|
|
53
|
+
hidden(iLabel); hidden(i0); hidden(i1); hidden(i2);
|
|
54
|
+
|
|
55
|
+
// ------------------------------ script ------------------------------
|
|
56
|
+
show(floor, 0.3);
|
|
57
|
+
show(cap, 0.3);
|
|
58
|
+
say(cap, "A 3 by 3 by 3 block — 27 cells.", 0.7);
|
|
59
|
+
stagger(0.04) {
|
|
60
|
+
for j in 0..3 { for k in 0..3 { show(xa{j}{k}, 0.3); } }
|
|
61
|
+
for j in 0..3 { for k in 0..3 { show(xb{j}{k}, 0.3); } }
|
|
62
|
+
for j in 0..3 { for k in 0..3 { show(xc{j}{k}, 0.3); } }
|
|
63
|
+
}
|
|
64
|
+
orbit3(38, 22, 13, 1.6, smooth);
|
|
65
|
+
|
|
66
|
+
say(cap, "A 3×3 matrix M is a linear map of space. This M shears x by height z.", 1.0);
|
|
67
|
+
stagger(0.12) { show(mLabel, 0.3); show(m0, 0.3); show(m1, 0.3); show(m2, 0.3); }
|
|
68
|
+
|
|
69
|
+
// apply M: x' = x + a·(z - zc)
|
|
70
|
+
par {
|
|
71
|
+
for j in 0..3 { for k in 0..3 {
|
|
72
|
+
move3(xa{j}{k}, (0 - s + a*(k - 1)*s, (j - 1)*s, zc + (k - 1)*s), 1.8, smooth);
|
|
73
|
+
} }
|
|
74
|
+
for j in 0..3 { for k in 0..3 {
|
|
75
|
+
move3(xb{j}{k}, (a*(k - 1)*s, (j - 1)*s, zc + (k - 1)*s), 1.8, smooth);
|
|
76
|
+
} }
|
|
77
|
+
for j in 0..3 { for k in 0..3 {
|
|
78
|
+
move3(xc{j}{k}, (s + a*(k - 1)*s, (j - 1)*s, zc + (k - 1)*s), 1.8, smooth);
|
|
79
|
+
} }
|
|
80
|
+
}
|
|
81
|
+
say(cap, "Applying M slants the whole block — the higher a cell, the more it shifts.", 1.0);
|
|
82
|
+
|
|
83
|
+
stagger(0.12) { show(iLabel, 0.3); show(i0, 0.3); show(i1, 0.3); show(i2, 0.3); }
|
|
84
|
+
say(cap, "The inverse M^-1 just negates the shear.", 0.8);
|
|
85
|
+
|
|
86
|
+
// apply M^-1: sends every cell back to where it started
|
|
87
|
+
par {
|
|
88
|
+
for j in 0..3 { for k in 0..3 {
|
|
89
|
+
move3(xa{j}{k}, (0 - s, (j - 1)*s, zc + (k - 1)*s), 1.8, smooth);
|
|
90
|
+
} }
|
|
91
|
+
for j in 0..3 { for k in 0..3 {
|
|
92
|
+
move3(xb{j}{k}, (0, (j - 1)*s, zc + (k - 1)*s), 1.8, smooth);
|
|
93
|
+
} }
|
|
94
|
+
for j in 0..3 { for k in 0..3 {
|
|
95
|
+
move3(xc{j}{k}, (s, (j - 1)*s, zc + (k - 1)*s), 1.8, smooth);
|
|
96
|
+
} }
|
|
97
|
+
}
|
|
98
|
+
say(cap, "M^-1 sends every cell home: M^-1 M = I, the identity.", 1.0);
|
|
99
|
+
|
|
100
|
+
orbit3(70, 26, 13, 2.4, smooth);
|
|
101
|
+
wait(0.6);
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// Matrix Addition — A + B = C, computed entry by entry. Each matching pair of
|
|
2
|
+
// entries flashes, then their sum pops into the result matrix. A teaching
|
|
3
|
+
// animation: it shows *why* matrix addition is element-wise.
|
|
4
|
+
//
|
|
5
|
+
// manic examples/matrix_addition.manic
|
|
6
|
+
// manic examples/matrix_addition.manic --record out --fps 60
|
|
7
|
+
|
|
8
|
+
title("Matrix Addition");
|
|
9
|
+
canvas(1280, 720);
|
|
10
|
+
|
|
11
|
+
text(head, (640, 120), "add two matrices, entry by entry");
|
|
12
|
+
display(head); color(head, cyan); size(head, 28); hidden(head);
|
|
13
|
+
text(cap, (640, 600), ""); color(cap, dim); size(cap, 26);
|
|
14
|
+
|
|
15
|
+
// A + B = C
|
|
16
|
+
matrix(A, "2 1; 0 3", (280, 350), 74, 66);
|
|
17
|
+
matrix(B, "1 4; 5 2", (640, 350), 74, 66);
|
|
18
|
+
matrix(C, "3 5; 5 5", (1000, 350), 74, 66);
|
|
19
|
+
|
|
20
|
+
text(plus, (460, 350), "+"); display(plus); color(plus, magenta); size(plus, 44); hidden(plus);
|
|
21
|
+
text(eq, (820, 350), "="); display(eq); color(eq, magenta); size(eq, 44); hidden(eq);
|
|
22
|
+
|
|
23
|
+
// A and B trace/fade in; C is built up during the sweep
|
|
24
|
+
untraced(A.lbrack); untraced(A.rbrack);
|
|
25
|
+
untraced(B.lbrack); untraced(B.rbrack);
|
|
26
|
+
untraced(C.lbrack); untraced(C.rbrack);
|
|
27
|
+
hidden(A.entries); hidden(B.entries); hidden(C.entries);
|
|
28
|
+
|
|
29
|
+
// --- reveal the two matrices ---
|
|
30
|
+
show(head, 0.5);
|
|
31
|
+
say(cap, "two matrices, A and B");
|
|
32
|
+
par { draw(A.lbrack, 0.4); draw(A.rbrack, 0.4); draw(B.lbrack, 0.4); draw(B.rbrack, 0.4); }
|
|
33
|
+
par { show(A.entries, 0.4); show(B.entries, 0.4); }
|
|
34
|
+
show(plus, 0.3);
|
|
35
|
+
wait(0.5);
|
|
36
|
+
|
|
37
|
+
// --- add entry by entry ---
|
|
38
|
+
section("Entry by entry");
|
|
39
|
+
say(cap, "add matching entries, position by position");
|
|
40
|
+
par { show(eq, 0.3); draw(C.lbrack, 0.4); draw(C.rbrack, 0.4); }
|
|
41
|
+
|
|
42
|
+
seq {
|
|
43
|
+
par { flash(A.r0c0, lime); flash(B.r0c0, lime); }
|
|
44
|
+
say(cap, "2 + 1 = 3");
|
|
45
|
+
par { show(C.r0c0, 0.3); pulse(C.r0c0); }
|
|
46
|
+
|
|
47
|
+
par { flash(A.r0c1, lime); flash(B.r0c1, lime); }
|
|
48
|
+
say(cap, "1 + 4 = 5");
|
|
49
|
+
par { show(C.r0c1, 0.3); pulse(C.r0c1); }
|
|
50
|
+
|
|
51
|
+
par { flash(A.r1c0, lime); flash(B.r1c0, lime); }
|
|
52
|
+
say(cap, "0 + 5 = 5");
|
|
53
|
+
par { show(C.r1c0, 0.3); pulse(C.r1c0); }
|
|
54
|
+
|
|
55
|
+
par { flash(A.r1c1, lime); flash(B.r1c1, lime); }
|
|
56
|
+
say(cap, "3 + 2 = 5");
|
|
57
|
+
par { show(C.r1c1, 0.3); pulse(C.r1c1); }
|
|
58
|
+
}
|
|
59
|
+
wait(0.4);
|
|
60
|
+
|
|
61
|
+
// --- the result ---
|
|
62
|
+
section("Result");
|
|
63
|
+
say(cap, "A + B — every entry, all at once");
|
|
64
|
+
recolor(C.entries, cyan, 0.4);
|
|
65
|
+
par { pulse(C.r0c0); pulse(C.r0c1); pulse(C.r1c0); pulse(C.r1c1); }
|
|
66
|
+
wait(1.5);
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
// Matrix Addition, Geometrically — a 2x1 matrix IS a vector. Adding two of them
|
|
2
|
+
//
|
|
3
|
+
// [3] [1] [4]
|
|
4
|
+
// [1] + [2] = [3]
|
|
5
|
+
//
|
|
6
|
+
// is the same as sliding one arrow onto the tip of the other (tip-to-tail) and
|
|
7
|
+
// reading off where you land. The column matrices at the top stay in lockstep
|
|
8
|
+
// with the arrows on the plane, so you see the algebra and the geometry at once.
|
|
9
|
+
//
|
|
10
|
+
// manic examples/matrix_addition_plane.manic
|
|
11
|
+
// manic examples/matrix_addition_plane.manic --record out --fps 60
|
|
12
|
+
|
|
13
|
+
title("Matrix Addition on the Plane");
|
|
14
|
+
canvas(1280, 720);
|
|
15
|
+
|
|
16
|
+
text(head, (640, 96), "a 2x1 matrix is a vector — adding them is tip-to-tail");
|
|
17
|
+
display(head); color(head, cyan); size(head, 26); hidden(head);
|
|
18
|
+
text(cap, (640, 686), ""); color(cap, dim); size(cap, 24);
|
|
19
|
+
|
|
20
|
+
// --- the equation, as column matrices across the top ---
|
|
21
|
+
matrix(MA, "3; 1", (452, 186), 44, 42); color(MA, cyan);
|
|
22
|
+
text(plus, (528, 186), "+"); display(plus); color(plus, dim); size(plus, 40); hidden(plus);
|
|
23
|
+
matrix(MB, "1; 2", (600, 186), 44, 42); color(MB, magenta);
|
|
24
|
+
text(eq, (676, 186), "="); display(eq); color(eq, dim); size(eq, 40); hidden(eq);
|
|
25
|
+
matrix(MC, "4; 3", (748, 186), 44, 42); color(MC, lime);
|
|
26
|
+
|
|
27
|
+
// --- the plane, centred low so the arrows have room to climb ---
|
|
28
|
+
plane(pl, (640, 438), 560, 250, 48);
|
|
29
|
+
|
|
30
|
+
// vectors from the plane's origin (dy is up); unit = 48 px
|
|
31
|
+
vector(va, (640, 438), (144, 48), cyan); // a = (3, 1) -> tip (784, 390)
|
|
32
|
+
vector(vb, (640, 438), (48, 96), magenta); // b = (1, 2) -> tip (688, 342)
|
|
33
|
+
vector(vs, (640, 438), (192, 144), lime); // a+b = (4, 3) -> tip (832, 294)
|
|
34
|
+
|
|
35
|
+
// the two translated copies that build the parallelogram
|
|
36
|
+
arrow(vb2, (784, 390), (832, 294)); color(vb2, magenta); glow(vb2, 0);
|
|
37
|
+
arrow(va2, (688, 342), (832, 294)); color(va2, cyan); glow(va2, 0);
|
|
38
|
+
|
|
39
|
+
// everything but the plane grid starts hidden / untraced
|
|
40
|
+
untraced(pl.x); untraced(pl.y); hidden(pl.grid);
|
|
41
|
+
untraced(va); untraced(vb); untraced(vs); untraced(vb2); untraced(va2);
|
|
42
|
+
untraced(MA.lbrack); untraced(MA.rbrack); hidden(MA);
|
|
43
|
+
untraced(MB.lbrack); untraced(MB.rbrack); hidden(MB);
|
|
44
|
+
untraced(MC.lbrack); untraced(MC.rbrack); hidden(MC);
|
|
45
|
+
|
|
46
|
+
// --- reveal the plane ---
|
|
47
|
+
show(head, 0.5);
|
|
48
|
+
section("The plane");
|
|
49
|
+
say(cap, "a cartesian grid, arrows pinned to the origin");
|
|
50
|
+
show(pl.grid, 0.6);
|
|
51
|
+
par { draw(pl.x, 0.5); draw(pl.y, 0.5); }
|
|
52
|
+
wait(0.3);
|
|
53
|
+
|
|
54
|
+
// --- vector a ---
|
|
55
|
+
section("Vector a");
|
|
56
|
+
say(cap, "a = [3, 1] — three right, one up");
|
|
57
|
+
par { draw(MA.lbrack, 0.3); draw(MA.rbrack, 0.3); }
|
|
58
|
+
par { show(MA, 0.3); draw(va, 0.6); }
|
|
59
|
+
wait(0.4);
|
|
60
|
+
|
|
61
|
+
// --- vector b ---
|
|
62
|
+
section("Vector b");
|
|
63
|
+
say(cap, "b = [1, 2] — one right, two up");
|
|
64
|
+
show(plus, 0.3);
|
|
65
|
+
par { draw(MB.lbrack, 0.3); draw(MB.rbrack, 0.3); }
|
|
66
|
+
par { show(MB, 0.3); draw(vb, 0.6); }
|
|
67
|
+
wait(0.4);
|
|
68
|
+
|
|
69
|
+
// --- tip to tail ---
|
|
70
|
+
section("Tip to tail");
|
|
71
|
+
say(cap, "slide b so its tail sits on the tip of a");
|
|
72
|
+
draw(vb2, 0.7);
|
|
73
|
+
wait(0.5);
|
|
74
|
+
|
|
75
|
+
// --- the sum ---
|
|
76
|
+
section("The sum");
|
|
77
|
+
say(cap, "the arrow to that new point is a + b = [4, 3]");
|
|
78
|
+
show(eq, 0.3);
|
|
79
|
+
par { draw(MC.lbrack, 0.3); draw(MC.rbrack, 0.3); }
|
|
80
|
+
par { show(MC, 0.3); draw(vs, 0.8); }
|
|
81
|
+
par { pulse(vs); flash(MC, lime); }
|
|
82
|
+
wait(0.6);
|
|
83
|
+
|
|
84
|
+
// --- parallelogram ---
|
|
85
|
+
section("Either order");
|
|
86
|
+
say(cap, "slide a onto b instead — same point. a + b = b + a");
|
|
87
|
+
draw(va2, 0.7);
|
|
88
|
+
wait(0.4);
|
|
89
|
+
say(cap, "the two paths frame a parallelogram; a + b is its diagonal");
|
|
90
|
+
par { pulse(va); pulse(vb); pulse(vs); }
|
|
91
|
+
wait(1.4);
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
// EXPRESSIVE PROCESS V2 — MAXWELL–BOLTZMANN EFFUSION
|
|
2
|
+
//
|
|
3
|
+
// A polished 2.5D acceptance story inspired by engine-test-6.mov. The
|
|
4
|
+
// apparatus is a bundled native SVG, while every molecule, detector bin,
|
|
5
|
+
// arrival count, and empirical distribution remains a normal Manic entity.
|
|
6
|
+
// `emit`, `collect`, and `observe` all read one deterministic process.
|
|
7
|
+
|
|
8
|
+
title("Maxwell–Boltzmann Effusion — Motion Becomes Evidence");
|
|
9
|
+
canvas("9:16");
|
|
10
|
+
template("blank");
|
|
11
|
+
watermark(mark, (150, 90), "Made With Manic");
|
|
12
|
+
|
|
13
|
+
text(kicker, (540, 84), "STATISTICAL MECHANICS · EXPRESSIVE PROCESS V2");
|
|
14
|
+
text(headline, (540, 142), "A distribution you can watch forming");
|
|
15
|
+
size(kicker, 18); color(kicker, dim); bold(kicker);
|
|
16
|
+
size(headline, 34); bold(headline);
|
|
17
|
+
|
|
18
|
+
equation(law, (540, 242),
|
|
19
|
+
`f(v)=4\pi\left(\frac{m}{2\pi k_BT}\right)^{3/2}v^2e^{-mv^2/(2k_BT)}`, 34);
|
|
20
|
+
|
|
21
|
+
// The decorative shell is an asset; the changing evidence stays native.
|
|
22
|
+
svg(apparatus, (240, 540), "asset:svg/physics/effusion-reservoir.svg", 330);
|
|
23
|
+
text(reservoirLabel, (225, 705), "THERMAL RESERVOIR");
|
|
24
|
+
size(reservoirLabel, 17); bold(reservoirLabel); color(reservoirLabel, gold);
|
|
25
|
+
|
|
26
|
+
rect(detectorPanel, (730, 560), 570, 300);
|
|
27
|
+
filled(detectorPanel); color(detectorPanel, panel); opacity(detectorPanel, 0.92);
|
|
28
|
+
outlined(detectorPanel); outline(detectorPanel, dim); stroke(detectorPanel, 3);
|
|
29
|
+
|
|
30
|
+
text(detectorTitle, (730, 382), "PARTICLE SPEED v");
|
|
31
|
+
size(detectorTitle, 18); bold(detectorTitle); color(detectorTitle, dim);
|
|
32
|
+
|
|
33
|
+
// The invisible source is precisely at the SVG nozzle.
|
|
34
|
+
circle(source, (348, 540), 20);
|
|
35
|
+
opacity(source, 0);
|
|
36
|
+
particles(molecules, source, 180, 3.2, 73);
|
|
37
|
+
color(molecules, magenta); glow(molecules, 0.8); z(molecules, 8);
|
|
38
|
+
|
|
39
|
+
// Individual lanes diverge around this authored route before being collected.
|
|
40
|
+
spline(flight, (350, 540), (415, 500), (465, 515), (500, 545));
|
|
41
|
+
hidden(flight);
|
|
42
|
+
|
|
43
|
+
livehistogram(empirical, (730, 560), 0, 2.2, 14, 540, 240, cyan);
|
|
44
|
+
z(empirical, 3); hidden(empirical.count);
|
|
45
|
+
|
|
46
|
+
// Same horizontal range as the live histogram: 0 .. 4*scale = 2.2.
|
|
47
|
+
distribution(theory, (730, 560), "maxwell", 0.55, 0, gold);
|
|
48
|
+
hidden(theory.axis); hidden(theory.name);
|
|
49
|
+
untraced(theory.curve); z(theory, 7);
|
|
50
|
+
|
|
51
|
+
text(empiricalKey, (610, 750), "● empirical arrivals");
|
|
52
|
+
text(theoryKey, (850, 750), "— theoretical curve");
|
|
53
|
+
size(empiricalKey, 17); color(empiricalKey, cyan);
|
|
54
|
+
size(theoryKey, 17); color(theoryKey, gold);
|
|
55
|
+
|
|
56
|
+
counter(arrivals, (540, 850), 0, 0, "detected molecules ", " / 180");
|
|
57
|
+
size(arrivals, 24); color(arrivals, dim);
|
|
58
|
+
|
|
59
|
+
text(caption, (540, 920),
|
|
60
|
+
"A thermal source emits many molecular speeds—not one average speed.");
|
|
61
|
+
size(caption, 23); wrap(caption, 880); color(caption, dim);
|
|
62
|
+
|
|
63
|
+
rect(evidencePanel, (540, 1110), 880, 230);
|
|
64
|
+
filled(evidencePanel); color(evidencePanel, panel); opacity(evidencePanel, 0.95);
|
|
65
|
+
outlined(evidencePanel); outline(evidencePanel, dim); stroke(evidencePanel, 2);
|
|
66
|
+
text(evidenceTitle, (540, 1030), "ONE PROCESS · THREE VIEWS");
|
|
67
|
+
size(evidenceTitle, 18); bold(evidenceTitle); color(evidenceTitle, dim);
|
|
68
|
+
equation(processLaw, (540, 1100),
|
|
69
|
+
`\text{motion}\;\longrightarrow\;\text{arrival bin}\;\longrightarrow\;\hat f(v)`, 32);
|
|
70
|
+
text(truth, (540, 1190),
|
|
71
|
+
"The dots, bars, and count are derived from the same seeded experiment.");
|
|
72
|
+
size(truth, 20); color(truth, dim); wrap(truth, 790);
|
|
73
|
+
|
|
74
|
+
hidden(apparatus); hidden(reservoirLabel); hidden(detectorPanel);
|
|
75
|
+
hidden(detectorTitle); hidden(molecules); hidden(empirical);
|
|
76
|
+
hidden(empiricalKey); hidden(theoryKey); hidden(arrivals);
|
|
77
|
+
hidden(caption); hidden(evidencePanel); hidden(evidenceTitle);
|
|
78
|
+
hidden(processLaw); hidden(truth);
|
|
79
|
+
|
|
80
|
+
step("build-the-apparatus") {
|
|
81
|
+
par {
|
|
82
|
+
show(apparatus, 0.65);
|
|
83
|
+
show(reservoirLabel, 0.45);
|
|
84
|
+
show(detectorPanel, 0.55);
|
|
85
|
+
show(detectorTitle, 0.35);
|
|
86
|
+
show(empirical.axis, 0.55);
|
|
87
|
+
show(empirical.bars, 0.55);
|
|
88
|
+
show(empirical.min, 0.35);
|
|
89
|
+
show(empirical.max, 0.35);
|
|
90
|
+
show(empiricalKey, 0.35);
|
|
91
|
+
show(theoryKey, 0.35);
|
|
92
|
+
show(arrivals, 0.35);
|
|
93
|
+
show(caption, 0.40);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
wait(0.45);
|
|
97
|
+
|
|
98
|
+
step("the-prediction") {
|
|
99
|
+
par {
|
|
100
|
+
draw(theory.curve, 0.9, smooth);
|
|
101
|
+
say(caption,
|
|
102
|
+
"Maxwell predicts a characteristic spread with a most probable speed.",
|
|
103
|
+
0.40);
|
|
104
|
+
par {
|
|
105
|
+
cam((cx, cy), 0.75, smooth);
|
|
106
|
+
zoom(1.025, 0.75, smooth);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
wait(0.35);
|
|
111
|
+
|
|
112
|
+
step("run-the-experiment") {
|
|
113
|
+
par {
|
|
114
|
+
emit(molecules, flight, maxwell, 7.0, 48, smooth);
|
|
115
|
+
collect(empirical, molecules, speed, 0.48, smooth);
|
|
116
|
+
observe(empirical, molecules, speed);
|
|
117
|
+
observe(arrivals, molecules, arrived);
|
|
118
|
+
show(molecules, 0.15);
|
|
119
|
+
say(caption,
|
|
120
|
+
"Each molecule keeps its sampled speed. Faster molecules cross the apparatus sooner.",
|
|
121
|
+
0.45);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
wait(0.55);
|
|
125
|
+
|
|
126
|
+
step("motion-becomes-evidence") {
|
|
127
|
+
par {
|
|
128
|
+
pulse(empirical.bars, 0.8);
|
|
129
|
+
show(evidencePanel, 0.40);
|
|
130
|
+
show(evidenceTitle, 0.35);
|
|
131
|
+
show(processLaw, 0.45);
|
|
132
|
+
show(truth, 0.40);
|
|
133
|
+
say(caption,
|
|
134
|
+
"Collection does not fake the chart: every arrival lands in the bin selected by its speed.",
|
|
135
|
+
0.45);
|
|
136
|
+
par {
|
|
137
|
+
cam((cx, cy), 0.65, smooth);
|
|
138
|
+
zoom(1.0, 0.65, smooth);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
wait(1.4);
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// MAXWELL–BOLTZMANN PROCESS FOUNDATION
|
|
2
|
+
// First acceptance story for deterministic evolving collections. The emitted
|
|
3
|
+
// particles, arrival count, and speed histogram all come from one compiled
|
|
4
|
+
// process. The formula is authored truth; Manic is not pretending to be a CAS.
|
|
5
|
+
|
|
6
|
+
title("Maxwell–Boltzmann — From Motion to Distribution");
|
|
7
|
+
canvas("9:16");
|
|
8
|
+
template("blank");
|
|
9
|
+
watermark(mark, (155, 92), "Made With Manic");
|
|
10
|
+
|
|
11
|
+
text(kicker, (540, 80), "STATISTICAL MECHANICS · PROCESS VIEW");
|
|
12
|
+
text(headline, (540, 145), "How does molecular motion become a distribution?");
|
|
13
|
+
size(kicker, 19); color(kicker, dim); bold(kicker);
|
|
14
|
+
size(headline, 33); bold(headline); wrap(headline, 850);
|
|
15
|
+
|
|
16
|
+
equation(law, (540, 245),
|
|
17
|
+
`f(v)=4\pi\left(\frac{m}{2\pi k_BT}\right)^{3/2}v^2e^{-mv^2/(2k_BT)}`, 36);
|
|
18
|
+
|
|
19
|
+
rect(reservoir, (410, 500), 560, 330);
|
|
20
|
+
outlined(reservoir); outline(reservoir, dim); stroke(reservoir, 4);
|
|
21
|
+
line(divider, (630, 340), (630, 660));
|
|
22
|
+
color(divider, dim); stroke(divider, 3);
|
|
23
|
+
text(gasLabel, (330, 685), "seeded molecules");
|
|
24
|
+
size(gasLabel, 20); color(gasLabel, dim);
|
|
25
|
+
particles(molecules, reservoir, 72, 5, 29);
|
|
26
|
+
|
|
27
|
+
// The route starts at the aperture and bends into the measurement region.
|
|
28
|
+
spline(nozzle, (630, 500), (735, 430), (850, 570), (900, 735));
|
|
29
|
+
stroke(nozzle, 4); color(nozzle, fg); untraced(nozzle);
|
|
30
|
+
text(nozzleLabel, (850, 395), "effusive path");
|
|
31
|
+
size(nozzleLabel, 19); color(nozzleLabel, dim);
|
|
32
|
+
|
|
33
|
+
livehistogram(speedBins, (540, 1160), 0.35, 0.95, 14, 760, 300, cyan);
|
|
34
|
+
text(histTitle, (540, 970), "EMPIRICAL SPEEDS");
|
|
35
|
+
size(histTitle, 23); bold(histTitle);
|
|
36
|
+
text(axisUnit, (540, 1355), "normalized path lengths per second");
|
|
37
|
+
size(axisUnit, 18); color(axisUnit, dim);
|
|
38
|
+
|
|
39
|
+
counter(arrived, (540, 1460), 0, 0, "detected molecules ", " / 72");
|
|
40
|
+
size(arrived, 24); color(arrived, dim);
|
|
41
|
+
text(caption, (540, 1545),
|
|
42
|
+
"Each bar grows only when a molecule from the same process arrives.");
|
|
43
|
+
size(caption, 22); color(caption, dim); wrap(caption, 820);
|
|
44
|
+
|
|
45
|
+
hidden(molecules); hidden(speedBins); hidden(arrived); hidden(caption);
|
|
46
|
+
hidden(nozzleLabel);
|
|
47
|
+
|
|
48
|
+
step("reservoir") {
|
|
49
|
+
par {
|
|
50
|
+
show(molecules, 0.55);
|
|
51
|
+
show(speedBins, 0.45);
|
|
52
|
+
show(arrived, 0.35);
|
|
53
|
+
show(caption, 0.35);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
wait(0.45);
|
|
57
|
+
|
|
58
|
+
step("open-the-aperture") {
|
|
59
|
+
par {
|
|
60
|
+
draw(nozzle, 0.55);
|
|
61
|
+
show(nozzleLabel, 0.35);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
wait(0.25);
|
|
65
|
+
|
|
66
|
+
step("motion-becomes-data") {
|
|
67
|
+
par {
|
|
68
|
+
stream(molecules, nozzle, 5.2, 42, smooth);
|
|
69
|
+
observe(speedBins, molecules, speed);
|
|
70
|
+
observe(arrived, molecules, arrived);
|
|
71
|
+
say(caption,
|
|
72
|
+
"The motion and the distribution are two views of one deterministic experiment.",
|
|
73
|
+
0.45);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
wait(0.7);
|
|
77
|
+
|
|
78
|
+
step("takeaway") {
|
|
79
|
+
par {
|
|
80
|
+
pulse(speedBins.bars, 0.8);
|
|
81
|
+
say(caption,
|
|
82
|
+
"Manic can now connect a changing collection to measurements without frame callbacks.",
|
|
83
|
+
0.45);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
wait(1.2);
|