@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,65 @@
|
|
|
1
|
+
// The recurring structure behind Asymptote's tiling examples:
|
|
2
|
+
// author one motif, then arrange it as a hex field, grid, radial ring, or a
|
|
3
|
+
// repeated composition. Every generated tile remains a normal Manic entity.
|
|
4
|
+
|
|
5
|
+
title("One Motif, Four Tiling Systems");
|
|
6
|
+
canvas("16:9");
|
|
7
|
+
template("mono");
|
|
8
|
+
|
|
9
|
+
watermark(mark, (w*0.11, h*0.075), "Made With Manic");
|
|
10
|
+
text(kicker, (cx, h*0.07), "GENERATIVE GEOMETRY · REPEAT");
|
|
11
|
+
text(headline, (cx, h*0.13), "Build the motif once. Compose the field.");
|
|
12
|
+
size(kicker, 19); bold(kicker); color(kicker, dim);
|
|
13
|
+
size(headline, 34); bold(headline);
|
|
14
|
+
|
|
15
|
+
let lx = w*0.27;
|
|
16
|
+
let rx = w*0.73;
|
|
17
|
+
let uy = h*0.37;
|
|
18
|
+
let ly = h*0.73;
|
|
19
|
+
|
|
20
|
+
// Hex rings: a small two-part diamond becomes a honeycomb field.
|
|
21
|
+
polygon(hexBody, (lx,uy-16), (lx+15,uy), (lx,uy+16), (lx-15,uy));
|
|
22
|
+
circle(hexCore, (lx,uy), 4);
|
|
23
|
+
color(hexBody, cyan); color(hexCore, gold);
|
|
24
|
+
tag(hexBody, hexMotif); tag(hexCore, hexMotif);
|
|
25
|
+
repeat(hexField, hexMotif, "layout=hex rings=4 spacing=30 rotate=30 scale=0.82");
|
|
26
|
+
hidden(hexMotif); untraced(hexField);
|
|
27
|
+
|
|
28
|
+
// Grid: a deliberately asymmetric motif proves orientation is retained.
|
|
29
|
+
line(gridStem, (rx-15,uy+12), (rx+14,uy-12));
|
|
30
|
+
circle(gridTip, (rx+14,uy-12), 5);
|
|
31
|
+
color(gridStem, magenta); color(gridTip, lime);
|
|
32
|
+
stroke(gridStem, 3);
|
|
33
|
+
tag(gridStem, gridMotif); tag(gridTip, gridMotif);
|
|
34
|
+
repeat(gridField, gridMotif, "layout=grid rows=5 cols=7 gapx=48 gapy=42 rotate=-8");
|
|
35
|
+
hidden(gridMotif); untraced(gridField);
|
|
36
|
+
|
|
37
|
+
// Radial: each arrow-shaped wedge faces away from the common centre.
|
|
38
|
+
polygon(ray, (lx,ly-22), (lx+9,ly-5), (lx,ly+4), (lx-9,ly-5));
|
|
39
|
+
color(ray, gold); tag(ray, rayMotif);
|
|
40
|
+
repeat(sun, rayMotif, "layout=radial count=18 radius=112 face=out rotate=10 scale=0.85");
|
|
41
|
+
hidden(rayMotif); untraced(sun);
|
|
42
|
+
|
|
43
|
+
// Nested composition: repeat a 2x2 micro-pattern as one larger radial motif.
|
|
44
|
+
polygon(seed, (rx-7,ly+7), (rx+7,ly+7), (rx,ly-8));
|
|
45
|
+
color(seed, cyan);
|
|
46
|
+
repeat(micro, seed, "layout=grid rows=2 cols=2 gapx=20 gapy=20 scale=0.70");
|
|
47
|
+
repeat(nested, micro, "layout=radial count=10 radius=105 face=out rotate=18 scale=0.82");
|
|
48
|
+
hidden(seed); hidden(micro); untraced(nested);
|
|
49
|
+
|
|
50
|
+
text(l1, (lx,h*0.205), "HEX RINGS · 37 MOTIFS");
|
|
51
|
+
text(l2, (rx,h*0.205), "ROTATED GRID · 35 MOTIFS");
|
|
52
|
+
text(l3, (lx,h*0.565), "RADIAL · FACE OUT");
|
|
53
|
+
text(l4, (rx,h*0.565), "NESTED · MOTIFS OF MOTIFS");
|
|
54
|
+
size(l1,17); size(l2,17); size(l3,17); size(l4,17);
|
|
55
|
+
bold(l1); bold(l2); bold(l3); bold(l4);
|
|
56
|
+
color(l1,cyan); color(l2,magenta); color(l3,gold); color(l4,lime);
|
|
57
|
+
|
|
58
|
+
step("hexagonal rings") { draw(hexField, 1.40, smooth); }
|
|
59
|
+
wait(0.25);
|
|
60
|
+
step("rectangular repetition") { draw(gridField, 1.40, smooth); }
|
|
61
|
+
wait(0.25);
|
|
62
|
+
step("radial orientation") { draw(sun, 1.20, smooth); }
|
|
63
|
+
wait(0.25);
|
|
64
|
+
step("composition remains reusable") { draw(nested, 1.60, smooth); }
|
|
65
|
+
wait(1.30);
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
title("Clustered Web Services on AWS");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
template("neon");
|
|
4
|
+
|
|
5
|
+
let u = (w+h-abs(w-h))/1440;
|
|
6
|
+
watermark(mark, (w*0.15, h*0.025), "Made With Manic");
|
|
7
|
+
text(kicker, (cx, h*0.055), "AWS ARCHITECTURE · CLUSTERED WEB SERVICES");
|
|
8
|
+
text(headline, (cx, h*0.115), "Requests in. Responses back.");
|
|
9
|
+
text(caption, (cx, h*0.935), "Dashed paths describe what is connected—not what is moving now.");
|
|
10
|
+
size(kicker, 16*u); color(kicker, dim); bold(kicker);
|
|
11
|
+
size(headline, 29*u); bold(headline); wrap(headline, w*0.88);
|
|
12
|
+
size(caption, 18*u); color(caption, dim); wrap(caption, w*0.86);
|
|
13
|
+
|
|
14
|
+
if h > 1.25*w {
|
|
15
|
+
architecture(clusteredWeb, (cx, h*0.51), w*0.84, h*0.70);
|
|
16
|
+
text(requestKey, (w*0.36, h*0.225), "REQUEST");
|
|
17
|
+
arrow(requestSample, (w*0.48, h*0.225), (w*0.64, h*0.225));
|
|
18
|
+
text(responseKey, (w*0.36, h*0.265), "RESPONSE");
|
|
19
|
+
arrow(responseSample, (w*0.48, h*0.265), (w*0.64, h*0.265));
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
architecture(clusteredWeb, (cx, h*0.51), w*0.94, h*0.69);
|
|
23
|
+
text(requestKey, (w*0.105, h*0.205), "REQUEST");
|
|
24
|
+
arrow(requestSample, (w*0.15, h*0.205), (w*0.205, h*0.205));
|
|
25
|
+
text(responseKey, (w*0.105, h*0.245), "RESPONSE");
|
|
26
|
+
arrow(responseSample, (w*0.15, h*0.245), (w*0.205, h*0.245));
|
|
27
|
+
}
|
|
28
|
+
size(requestKey, 15*u); color(requestKey, fg); bold(requestKey);
|
|
29
|
+
size(responseKey, 15*u); hue(responseKey, 328, 0.90, 0.62); bold(responseKey);
|
|
30
|
+
color(requestSample, fg); stroke(requestSample, 3*u);
|
|
31
|
+
hue(responseSample, 328, 0.90, 0.62); dashed(responseSample, 10*u, 7*u);
|
|
32
|
+
stroke(responseSample, 4*u); glow(responseSample, 0.85);
|
|
33
|
+
hidden(requestKey); hidden(requestSample);
|
|
34
|
+
hidden(responseKey); hidden(responseSample);
|
|
35
|
+
|
|
36
|
+
node(dns, clusteredWeb, "aws:route53", "dns");
|
|
37
|
+
node(lb, clusteredWeb, "aws:elb", "lb");
|
|
38
|
+
|
|
39
|
+
cluster(services, clusteredWeb, "SERVICES");
|
|
40
|
+
node(web1, services, "aws:ecs", "web1");
|
|
41
|
+
node(web2, services, "aws:ecs", "web2");
|
|
42
|
+
node(web3, services, "aws:ecs", "web3");
|
|
43
|
+
|
|
44
|
+
cluster(database, clusteredWeb, "DB CLUSTER");
|
|
45
|
+
node(dbPrimary, database, "aws:rds", "userdb");
|
|
46
|
+
node(dbReplica, database, "aws:rds", "userdb ro");
|
|
47
|
+
|
|
48
|
+
node(memcached, clusteredWeb, "aws:elasticache", "memcached");
|
|
49
|
+
|
|
50
|
+
connect(dnsToLb, dns, lb);
|
|
51
|
+
connect(lbToServices, lb, services);
|
|
52
|
+
connect(servicesToDb, services, dbPrimary);
|
|
53
|
+
connect(servicesToCache, services, memcached, 145*u);
|
|
54
|
+
connect(dbToServices, dbPrimary, services, 42*u);
|
|
55
|
+
connect(servicesToLb, services, lb, 42*u);
|
|
56
|
+
connect(cacheToWeb2, memcached, web2, 145*u);
|
|
57
|
+
hue(dbToServices.hot, 328, 0.90, 0.62);
|
|
58
|
+
hue(servicesToLb.hot, 328, 0.90, 0.62);
|
|
59
|
+
hue(cacheToWeb2.hot, 328, 0.90, 0.62);
|
|
60
|
+
dashed(dbToServices.hot, 10*u, 7*u);
|
|
61
|
+
dashed(servicesToLb.hot, 10*u, 7*u);
|
|
62
|
+
dashed(cacheToWeb2.hot, 10*u, 7*u);
|
|
63
|
+
stroke(dbToServices.hot, 4.5*u); glow(dbToServices.hot, 0.95);
|
|
64
|
+
stroke(servicesToLb.hot, 4.5*u); glow(servicesToLb.hot, 0.95);
|
|
65
|
+
stroke(cacheToWeb2.hot, 4.5*u); glow(cacheToWeb2.hot, 0.95);
|
|
66
|
+
link(replication, dbPrimary.card, dbReplica.card);
|
|
67
|
+
dashed(replication); color(replication, dim); stroke(replication, 2.5*u);
|
|
68
|
+
|
|
69
|
+
message(pageRequest, dns, "GET");
|
|
70
|
+
message(cacheRead, web2, "READ");
|
|
71
|
+
|
|
72
|
+
hidden(clusteredWeb.nodes);
|
|
73
|
+
hidden(services.parts); hidden(database.parts);
|
|
74
|
+
hidden(pageRequest.parts); hidden(cacheRead.parts);
|
|
75
|
+
untraced(dnsToLb); untraced(lbToServices);
|
|
76
|
+
untraced(servicesToDb); untraced(servicesToCache);
|
|
77
|
+
untraced(dbToServices); untraced(servicesToLb); untraced(cacheToWeb2);
|
|
78
|
+
untraced(replication);
|
|
79
|
+
|
|
80
|
+
step("entry") {
|
|
81
|
+
par {
|
|
82
|
+
show(dns, 0.40);
|
|
83
|
+
show(lb, 0.40);
|
|
84
|
+
say(caption, "Route 53 and the load balancer form the public entry into the design.", 0.40);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
wait(0.20);
|
|
88
|
+
|
|
89
|
+
step("service-pool") {
|
|
90
|
+
par {
|
|
91
|
+
show(services.parts, 0.45);
|
|
92
|
+
stagger(0.10) {
|
|
93
|
+
show(web1, 0.35);
|
|
94
|
+
show(web2, 0.35);
|
|
95
|
+
show(web3, 0.35);
|
|
96
|
+
}
|
|
97
|
+
say(caption, "Three ECS services share one ownership boundary; no runtime choice is implied yet.", 0.40);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
wait(0.20);
|
|
101
|
+
|
|
102
|
+
step("state") {
|
|
103
|
+
par {
|
|
104
|
+
show(database.parts, 0.45);
|
|
105
|
+
show(dbPrimary, 0.40);
|
|
106
|
+
show(dbReplica, 0.40);
|
|
107
|
+
show(memcached, 0.40);
|
|
108
|
+
say(caption, "The database cluster and cache complete the static architecture.", 0.40);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
wait(0.20);
|
|
112
|
+
|
|
113
|
+
step("possible-topology") {
|
|
114
|
+
par {
|
|
115
|
+
draw(dnsToLb, 0.40);
|
|
116
|
+
draw(lbToServices, 0.60);
|
|
117
|
+
draw(servicesToDb, 0.60);
|
|
118
|
+
draw(servicesToCache, 0.60);
|
|
119
|
+
draw(replication, 0.45);
|
|
120
|
+
show(requestKey, 0.35); show(requestSample, 0.35);
|
|
121
|
+
show(responseKey, 0.35); show(responseSample, 0.35);
|
|
122
|
+
say(caption, "Every dashed lane is possible. The next moving object will identify the path actually used.", 0.40);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
wait(0.30);
|
|
126
|
+
|
|
127
|
+
step("request-to-database") {
|
|
128
|
+
par {
|
|
129
|
+
seq {
|
|
130
|
+
show(pageRequest.parts, 0.20);
|
|
131
|
+
route(pageRequest, dnsToLb, 0.65, smooth);
|
|
132
|
+
route(pageRequest, lbToServices, 0.90, smooth);
|
|
133
|
+
route(pageRequest, servicesToDb, 0.90, smooth);
|
|
134
|
+
}
|
|
135
|
+
say(caption, "This request follows one authored lane: dns → lb → web1 → userdb.", 0.40);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
wait(0.35);
|
|
139
|
+
|
|
140
|
+
step("database-response") {
|
|
141
|
+
par {
|
|
142
|
+
seq {
|
|
143
|
+
par {
|
|
144
|
+
say(pageRequest.label, "200 OK", 0.25);
|
|
145
|
+
to(pageRequest.parts, hue, 328, 0.25, smooth);
|
|
146
|
+
}
|
|
147
|
+
route(pageRequest, dbToServices, 0.90, smooth);
|
|
148
|
+
route(pageRequest, servicesToLb, 0.90, smooth);
|
|
149
|
+
}
|
|
150
|
+
say(caption, "The same identity returns userdb → web1 → lb. DNS resolved the name; it is not the HTTP response path.", 0.40);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
wait(0.35);
|
|
154
|
+
|
|
155
|
+
step("cache-round-trip") {
|
|
156
|
+
par {
|
|
157
|
+
seq {
|
|
158
|
+
show(cacheRead.parts, 0.20);
|
|
159
|
+
route(cacheRead, servicesToCache, 1.05, smooth);
|
|
160
|
+
par {
|
|
161
|
+
say(cacheRead.label, "HIT", 0.25);
|
|
162
|
+
to(cacheRead.parts, hue, 328, 0.25, smooth);
|
|
163
|
+
}
|
|
164
|
+
route(cacheRead, cacheToWeb2, 1.05, smooth);
|
|
165
|
+
}
|
|
166
|
+
say(caption, "A separate cache read travels web2 → memcached, becomes HIT, and returns to that same service.", 0.40);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
wait(0.35);
|
|
170
|
+
|
|
171
|
+
step("replica-relationship") {
|
|
172
|
+
par {
|
|
173
|
+
flow(replication, 3.20, both, continuous);
|
|
174
|
+
say(caption, "The neutral database link can carry a two-way visual pulse only because the creator asked for it.", 0.40);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
wait(0.35);
|
|
178
|
+
|
|
179
|
+
step("takeaway") {
|
|
180
|
+
par {
|
|
181
|
+
pulse(services.parts, 0.70);
|
|
182
|
+
pulse(database.parts, 0.70);
|
|
183
|
+
say(caption, "Architecture stays readable; objects, paths, timing, and composition tell the runtime story.", 0.45);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
wait(1.40);
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
title("Event Processing on AWS — From Topology to Hot Path");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
template("mono");
|
|
4
|
+
|
|
5
|
+
let u = (w+h-abs(w-h))/1440;
|
|
6
|
+
watermark(mark, (w*0.15, h*0.055), "Made With Manic");
|
|
7
|
+
text(kicker, (cx, h*0.055), "AWS ARCHITECTURE · EVENT PROCESSING");
|
|
8
|
+
text(headline, (cx, h*0.115), "One topology. One event. One visible hot path.");
|
|
9
|
+
text(caption, (cx, h*0.935), "Dashed relationships show every route the architecture allows.");
|
|
10
|
+
size(kicker, 16*u); color(kicker, dim); bold(kicker);
|
|
11
|
+
size(headline, 29*u); bold(headline); wrap(headline, w*0.88);
|
|
12
|
+
size(caption, 18*u); color(caption, dim); wrap(caption, w*0.86);
|
|
13
|
+
|
|
14
|
+
if h > 1.25*w {
|
|
15
|
+
architecture(eventProcessing, (cx, h*0.51), w*0.82, h*0.70);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
architecture(eventProcessing, (cx, h*0.51), w*0.92, h*0.69);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
node(source, eventProcessing, "aws:eks", "K8s Source");
|
|
22
|
+
cluster(flows, eventProcessing, "EVENT FLOWS");
|
|
23
|
+
cluster(workers, flows, "EVENT WORKERS");
|
|
24
|
+
node(worker1, workers, "aws:ecs", "Worker 1");
|
|
25
|
+
node(worker2, workers, "aws:ecs", "Worker 2");
|
|
26
|
+
node(worker3, workers, "aws:ecs", "Worker 3");
|
|
27
|
+
node(queue, flows, "aws:sqs", "Event Queue");
|
|
28
|
+
cluster(processing, flows, "PROCESSING");
|
|
29
|
+
node(proc1, processing, "aws:lambda", "Processor 1");
|
|
30
|
+
node(proc2, processing, "aws:lambda", "Processor 2");
|
|
31
|
+
node(proc3, processing, "aws:lambda", "Processor 3");
|
|
32
|
+
node(store, eventProcessing, "aws:s3", "Events Store");
|
|
33
|
+
node(warehouse, eventProcessing, "aws:redshift", "Analytics");
|
|
34
|
+
|
|
35
|
+
connect(toWorkers, source, workers);
|
|
36
|
+
connect(toQueue, workers, queue);
|
|
37
|
+
connect(toHandlers, queue, processing);
|
|
38
|
+
connect(toStore, processing, store);
|
|
39
|
+
connect(toAnalytics, processing, warehouse);
|
|
40
|
+
|
|
41
|
+
message(event, source, "EVENT");
|
|
42
|
+
|
|
43
|
+
hidden(eventProcessing.nodes);
|
|
44
|
+
hidden(flows.parts); hidden(workers.parts); hidden(processing.parts);
|
|
45
|
+
hidden(event.parts);
|
|
46
|
+
untraced(toWorkers); untraced(toQueue); untraced(toHandlers);
|
|
47
|
+
untraced(toStore); untraced(toAnalytics);
|
|
48
|
+
|
|
49
|
+
step("source") {
|
|
50
|
+
par {
|
|
51
|
+
show(source, 0.45);
|
|
52
|
+
say(caption, "EKS is the source; the rest of the system is still only structure.", 0.40);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
wait(0.25);
|
|
56
|
+
|
|
57
|
+
step("ownership") {
|
|
58
|
+
par {
|
|
59
|
+
show(flows.parts, 0.50);
|
|
60
|
+
show(workers.parts, 0.45);
|
|
61
|
+
stagger(0.10) { show(worker1, 0.35); show(worker2, 0.35); show(worker3, 0.35); }
|
|
62
|
+
show(queue, 0.40);
|
|
63
|
+
show(processing.parts, 0.45);
|
|
64
|
+
stagger(0.10) { show(proc1, 0.35); show(proc2, 0.35); show(proc3, 0.35); }
|
|
65
|
+
show(store, 0.40); show(warehouse, 0.40);
|
|
66
|
+
say(caption, "Nested boundaries reveal ownership without hiding the individual services.", 0.40);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
wait(0.20);
|
|
70
|
+
|
|
71
|
+
step("possible-topology") {
|
|
72
|
+
par {
|
|
73
|
+
draw(toWorkers, 0.55);
|
|
74
|
+
draw(toQueue, 0.55);
|
|
75
|
+
draw(toHandlers, 0.55);
|
|
76
|
+
draw(toStore, 0.55); draw(toAnalytics, 0.55);
|
|
77
|
+
say(caption, "Every dashed edge is a possible relationship—not a claim that data is flowing.", 0.40);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
wait(0.35);
|
|
81
|
+
|
|
82
|
+
step("runtime-hot-path") {
|
|
83
|
+
par {
|
|
84
|
+
show(event.parts, 0.25);
|
|
85
|
+
hotpath(event, 6.20, 27);
|
|
86
|
+
say(caption, "The event now chooses valid branches and travels end-to-end as one continuous hot path.", 0.40);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
wait(0.35);
|
|
90
|
+
|
|
91
|
+
step("takeaway") {
|
|
92
|
+
par {
|
|
93
|
+
pulse(event.parts, 0.70);
|
|
94
|
+
say(caption, "Cold topology explains relationships. The moving dot proves what happened now.", 0.45);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
wait(1.40);
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
title("Designing and Building a Three-Tier Web Application Architecture on AWS");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
template("mono");
|
|
4
|
+
|
|
5
|
+
let u = (w+h-abs(w-h))/1440;
|
|
6
|
+
watermark(mark, (w*0.15, h*0.06), "Made With Manic");
|
|
7
|
+
text(kicker, (cx, h*0.065), "AWS ARCHITECTURE · THREE TIERS");
|
|
8
|
+
text(headline, (cx, h*0.145), "Designing a Three-Tier Web Application");
|
|
9
|
+
text(caption, (cx, h*0.91), "Each tier has one responsibility—and the request keeps moving.");
|
|
10
|
+
size(kicker, 17*u); color(kicker, dim); bold(kicker);
|
|
11
|
+
size(headline, 32*u); bold(headline); wrap(headline, w*0.86);
|
|
12
|
+
size(caption, 18*u); color(caption, dim); wrap(caption, w*0.84);
|
|
13
|
+
|
|
14
|
+
if h > 1.25*w {
|
|
15
|
+
architecture(presentation, (cx, h*0.30), w*0.72, h*0.18);
|
|
16
|
+
architecture(application, (cx, h*0.52), w*0.72, h*0.18);
|
|
17
|
+
architecture(dataTier, (cx, h*0.74), w*0.72, h*0.18);
|
|
18
|
+
text(presentationLabel, (w*0.13, h*0.30), "1 · PRESENTATION");
|
|
19
|
+
text(applicationLabel, (w*0.13, h*0.52), "2 · APPLICATION");
|
|
20
|
+
text(dataLabel, (w*0.13, h*0.74), "3 · DATA");
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
architecture(presentation, (w*0.20, h*0.50), w*0.27, h*0.55);
|
|
24
|
+
architecture(application, (w*0.50, h*0.50), w*0.27, h*0.55);
|
|
25
|
+
architecture(dataTier, (w*0.80, h*0.50), w*0.27, h*0.55);
|
|
26
|
+
text(presentationLabel, (w*0.20, h*0.235), "1 · PRESENTATION");
|
|
27
|
+
text(applicationLabel, (w*0.50, h*0.235), "2 · APPLICATION");
|
|
28
|
+
text(dataLabel, (w*0.80, h*0.235), "3 · DATA");
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
size(presentationLabel, 16*u); color(presentationLabel, cyan); bold(presentationLabel);
|
|
32
|
+
size(applicationLabel, 16*u); color(applicationLabel, magenta); bold(applicationLabel);
|
|
33
|
+
size(dataLabel, 16*u); color(dataLabel, gold); bold(dataLabel);
|
|
34
|
+
|
|
35
|
+
node(dns, presentation, "aws:route53", "Route 53");
|
|
36
|
+
node(cdn, presentation, "aws:cloudfront", "CloudFront");
|
|
37
|
+
node(balancer, application, "aws:elb", "Load Balancer");
|
|
38
|
+
node(app, application, "aws:ecs", "ECS Service");
|
|
39
|
+
node(cache, dataTier, "aws:elasticache", "ElastiCache");
|
|
40
|
+
node(database, dataTier, "aws:rds", "Amazon RDS");
|
|
41
|
+
|
|
42
|
+
connect(resolvePath, dns, cdn);
|
|
43
|
+
connect(toApplication, cdn, balancer);
|
|
44
|
+
connect(toService, balancer, app);
|
|
45
|
+
connect(toCache, app, cache);
|
|
46
|
+
connect(toDatabase, cache, database);
|
|
47
|
+
request(webRequest, dns, "GET /checkout");
|
|
48
|
+
|
|
49
|
+
hidden(presentation.nodes); hidden(application.nodes); hidden(dataTier.nodes);
|
|
50
|
+
untraced(resolvePath); untraced(toApplication); untraced(toService);
|
|
51
|
+
untraced(toCache); untraced(toDatabase);
|
|
52
|
+
hidden(webRequest.parts);
|
|
53
|
+
|
|
54
|
+
step("three-responsibilities") {
|
|
55
|
+
par {
|
|
56
|
+
show(presentation.nodes, 0.55);
|
|
57
|
+
say(caption, "Presentation receives users, resolves DNS, and serves content from the edge.", 0.40);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
wait(0.20);
|
|
61
|
+
|
|
62
|
+
step("application-tier") {
|
|
63
|
+
par {
|
|
64
|
+
show(application.nodes, 0.55);
|
|
65
|
+
say(caption, "Application distributes traffic and runs stateless business logic.", 0.40);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
wait(0.20);
|
|
69
|
+
|
|
70
|
+
step("data-tier") {
|
|
71
|
+
par {
|
|
72
|
+
show(dataTier.nodes, 0.55);
|
|
73
|
+
say(caption, "Data accelerates repeated reads and persists durable records.", 0.40);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
wait(0.25);
|
|
77
|
+
|
|
78
|
+
step("connect-the-tiers") {
|
|
79
|
+
par {
|
|
80
|
+
stagger(0.10) {
|
|
81
|
+
draw(resolvePath, 0.35); draw(toApplication, 0.35); draw(toService, 0.35);
|
|
82
|
+
draw(toCache, 0.35); draw(toDatabase, 0.35);
|
|
83
|
+
}
|
|
84
|
+
show(webRequest.parts, 0.30);
|
|
85
|
+
say(caption, "Now follow one checkout request through the complete design.", 0.40);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
wait(0.20);
|
|
89
|
+
|
|
90
|
+
step("presentation-flow") {
|
|
91
|
+
par {
|
|
92
|
+
route(webRequest, resolvePath, 0.80, smooth);
|
|
93
|
+
say(caption, "Route 53 resolves the domain; CloudFront brings the experience closer to users.", 0.40);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
step("load-balance") {
|
|
98
|
+
par {
|
|
99
|
+
route(webRequest, toApplication, 0.95, smooth);
|
|
100
|
+
say(caption, "The load balancer is the controlled entry into the application tier.", 0.40);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
step("run-the-application") {
|
|
105
|
+
par {
|
|
106
|
+
route(webRequest, toService, 0.80, smooth);
|
|
107
|
+
say(caption, "ECS runs replicated application tasks without mixing them with stored data.", 0.40);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
step("read-fast") {
|
|
112
|
+
par {
|
|
113
|
+
route(webRequest, toCache, 0.95, smooth);
|
|
114
|
+
say(caption, "ElastiCache answers hot reads quickly and protects the database from repeated work.", 0.40);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
step("persist-safely") {
|
|
119
|
+
par {
|
|
120
|
+
route(webRequest, toDatabase, 0.80, smooth);
|
|
121
|
+
say(caption, "Amazon RDS remains the durable source of truth for the transaction.", 0.40);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
wait(0.30);
|
|
125
|
+
|
|
126
|
+
step("takeaway") {
|
|
127
|
+
par {
|
|
128
|
+
pulse(presentation.nodes, 0.70);
|
|
129
|
+
pulse(application.nodes, 0.70);
|
|
130
|
+
pulse(dataTier.nodes, 0.70);
|
|
131
|
+
say(caption, "Three tiers isolate delivery, computation, and state—so each can scale and evolve independently.", 0.45);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
wait(1.40);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
title("The area between two curves");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
|
|
4
|
+
let ox = cx - 460;
|
|
5
|
+
let oy = cy + 40;
|
|
6
|
+
|
|
7
|
+
text(hdr, (cx, 58), "The region trapped between two curves");
|
|
8
|
+
size(hdr, 26); color(hdr, cyan); bold(hdr); display(hdr); hidden(hdr);
|
|
9
|
+
|
|
10
|
+
axes(ax, (ox, oy), 900, 260, 1);
|
|
11
|
+
color(ax, dim); untraced(ax);
|
|
12
|
+
|
|
13
|
+
// two curves over the same stretch of x
|
|
14
|
+
plot(upper, (ox, oy), 140, 90, "0.4*x + 1.4", (0, 6.3));
|
|
15
|
+
color(upper, cyan); stroke(upper, 3); untraced(upper);
|
|
16
|
+
|
|
17
|
+
plot(lower, (ox, oy), 140, 90, "sin(x)", (0, 6.3));
|
|
18
|
+
stroke(lower, 3);
|
|
19
|
+
color(lower, magenta);
|
|
20
|
+
untraced(lower);
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
// the band between them
|
|
24
|
+
band(gap, upper, lower);
|
|
25
|
+
color(gap, lime); hidden(gap);
|
|
26
|
+
|
|
27
|
+
text(cap, (cx + 405 - 383 - 21, h - 56 - 53 + 37 - 7), "band(top, bottom) fills the space between");
|
|
28
|
+
size(cap, 20);
|
|
29
|
+
display(cap);
|
|
30
|
+
color(cap, dim);
|
|
31
|
+
hidden(cap, center);
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
// ---- timeline ----
|
|
35
|
+
show(hdr, 0.6);
|
|
36
|
+
draw(ax, 0.7);
|
|
37
|
+
par {
|
|
38
|
+
draw(upper, 1.4);
|
|
39
|
+
draw(lower, 1.4);
|
|
40
|
+
}
|
|
41
|
+
wait(0.3);
|
|
42
|
+
to(gap, opacity, 0.3, 0.6); // fade in to translucent (so the curves read through)
|
|
43
|
+
show(cap, 0.4);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// The manic banner & watermark (à la ManimBanner). "create" draws the icon
|
|
2
|
+
// trio on; "expand" reveals the wordmark; the watermark persists in the corner.
|
|
3
|
+
//
|
|
4
|
+
// manic examples/banner.manic
|
|
5
|
+
// manic examples/banner.manic --record out --fps 60
|
|
6
|
+
|
|
7
|
+
title("manic");
|
|
8
|
+
canvas(1280, 720);
|
|
9
|
+
|
|
10
|
+
banner(logo, (600, 360), 1.1);
|
|
11
|
+
untraced(logo.icon); // icon shapes drawn on
|
|
12
|
+
hidden(logo.word); // wordmark revealed on "expand"
|
|
13
|
+
|
|
14
|
+
// a persistent, screen-fixed watermark, bottom-right
|
|
15
|
+
watermark(wm, (1120, 690), "manic // synthwave");
|
|
16
|
+
|
|
17
|
+
text(cap, (640, 560), ""); color(cap, dim); size(cap, 22);
|
|
18
|
+
|
|
19
|
+
// --- create: trace the icon trio on (staggered) ---
|
|
20
|
+
say(cap, "create");
|
|
21
|
+
stagger(0.2) {
|
|
22
|
+
draw(logo.dot, 0.6);
|
|
23
|
+
draw(logo.sq, 0.6);
|
|
24
|
+
draw(logo.tri, 0.6);
|
|
25
|
+
}
|
|
26
|
+
par { pulse(logo.dot); pulse(logo.sq); pulse(logo.tri); }
|
|
27
|
+
wait(0.4);
|
|
28
|
+
|
|
29
|
+
// --- expand: reveal the wordmark ---
|
|
30
|
+
say(cap, "expand");
|
|
31
|
+
show(logo.word, 0.6);
|
|
32
|
+
wait(1.2);
|
|
33
|
+
|
|
34
|
+
// --- unwrite: fade the whole banner ---
|
|
35
|
+
say(cap, "");
|
|
36
|
+
par { fade(logo.icon, 0.5); fade(logo.word, 0.5); }
|
|
37
|
+
wait(0.8);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// bayes.manic — Bayesian updating (stats Tier 5)
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// `bayes(id, (cx,cy), heads, tails, [width], [height])` — belief about a coin's
|
|
5
|
+
// bias: a mild PRIOR, the LIKELIHOOD from the data, and the POSTERIOR that
|
|
6
|
+
// combines them (pulled toward the data, sharpening as evidence grows). Pieces:
|
|
7
|
+
// `{id}.prior`, `{id}.likelihood`, `{id}.posterior`, `{id}.mean`.
|
|
8
|
+
// ============================================================================
|
|
9
|
+
|
|
10
|
+
title("Bayes: updating a belief with data");
|
|
11
|
+
canvas("16:9");
|
|
12
|
+
|
|
13
|
+
bayes(by, (cx, cy + 10), 7, 2, 640, 250);
|
|
14
|
+
untraced(by.prior); untraced(by.likelihood); untraced(by.posterior);
|
|
15
|
+
hidden(by.mean); hidden(by.priorlbl); hidden(by.postlbl); hidden(by.datalbl);
|
|
16
|
+
|
|
17
|
+
text(cap, (cx, h - 46), ""); size(cap, 22); color(cap, dim); display(cap);
|
|
18
|
+
|
|
19
|
+
say(cap, "before any flips, a mild belief: the coin is probably fair-ish (the prior)", 0.5);
|
|
20
|
+
draw(by.prior, 0.8); show(by.priorlbl, 0.3);
|
|
21
|
+
wait(1.4);
|
|
22
|
+
say(cap, "then we flip: 7 heads, 2 tails — the data favours a biased coin (likelihood)", 0.5);
|
|
23
|
+
draw(by.likelihood, 0.8); show(by.datalbl, 0.3);
|
|
24
|
+
wait(1.6);
|
|
25
|
+
say(cap, "combine them and the posterior lands between: p about 0.69", 0.5);
|
|
26
|
+
draw(by.posterior, 0.8); show(by.mean, 0.4); show(by.postlbl, 0.3);
|
|
27
|
+
wait(2.0);
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// normal.manic — the bell curve & the 68-95-99.7 rule (stats Tier 2)
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// `bellcurve(id, (cx,cy), mu, sigma, [unit], [color])` (alias `gaussian`) draws
|
|
5
|
+
// bell curve and shades the ±1σ/±2σ/±3σ bands — the 68-95-99.7 rule. Pieces:
|
|
6
|
+
// `{id}.curve` (the bell), `{id}.band1/2/3` (tagged `{id}.bands`), `{id}.mean`,
|
|
7
|
+
// `{id}.p1/p2/p3` (the percentages), `{id}.t{-3..3}` (value ticks).
|
|
8
|
+
// `unit` = pixels per σ; the bell is standardised, μ/σ set the axis values.
|
|
9
|
+
//
|
|
10
|
+
// TO ADAPT: change mu/sigma to your distribution (heights, IQ, measurement
|
|
11
|
+
// error…). The 68-95-99.7 rule holds for every normal.
|
|
12
|
+
// ============================================================================
|
|
13
|
+
|
|
14
|
+
title("The bell curve & the 68-95-99.7 rule");
|
|
15
|
+
canvas("16:9");
|
|
16
|
+
|
|
17
|
+
// IQ scores: mean 100, standard deviation 15
|
|
18
|
+
bellcurve(nd, (cx, cy + 10), 100, 15, 95);
|
|
19
|
+
untraced(nd.curve); // the bell draws in
|
|
20
|
+
hidden(nd.mean);
|
|
21
|
+
hidden(nd.bands); // the three σ-bands reveal one at a time
|
|
22
|
+
hidden(nd.p1); hidden(nd.p2); hidden(nd.p3);
|
|
23
|
+
|
|
24
|
+
text(cap, (cx, h - 46), ""); size(cap, 22); color(cap, dim); display(cap);
|
|
25
|
+
|
|
26
|
+
say(cap, "IQ scores: mean 100, standard deviation 15 — the classic bell", 0.5);
|
|
27
|
+
draw(nd.curve, 1.1);
|
|
28
|
+
show(nd.mean, 0.4);
|
|
29
|
+
wait(1.2);
|
|
30
|
+
|
|
31
|
+
say(cap, "68% of values fall within ONE standard deviation of the mean", 0.5);
|
|
32
|
+
to(nd.band1, opacity, 0.16, 0.6); show(nd.p1, 0.4);
|
|
33
|
+
wait(1.7);
|
|
34
|
+
|
|
35
|
+
say(cap, "95% fall within two — almost everyone", 0.5);
|
|
36
|
+
to(nd.band2, opacity, 0.16, 0.6); show(nd.p2, 0.4);
|
|
37
|
+
wait(1.7);
|
|
38
|
+
|
|
39
|
+
say(cap, "and 99.7% within three: the tails are tiny", 0.5);
|
|
40
|
+
to(nd.band3, opacity, 0.16, 0.6); show(nd.p3, 0.4);
|
|
41
|
+
wait(1.9);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Graph Traversal — BFS vs DFS, the classic side-by-side. They're the SAME
|
|
2
|
+
// algorithm; only the frontier differs: BFS uses a QUEUE (explore level by
|
|
3
|
+
// level), DFS uses a STACK (dive deep first). `bfs(g, start)` / `dfs(g, start)`
|
|
4
|
+
// read the graph's adjacency, run the traversal, and animate the textbook
|
|
5
|
+
// states — discovered (cyan) -> current (magenta) -> done (lime) — with tree
|
|
6
|
+
// edges lighting up and live `queue:` / `stack:` + `visited:` readouts.
|
|
7
|
+
//
|
|
8
|
+
// manic examples/bfs_dfs.manic
|
|
9
|
+
|
|
10
|
+
title("Graph Traversal");
|
|
11
|
+
canvas("16:9");
|
|
12
|
+
|
|
13
|
+
text(head, (cx, 56), "BFS vs DFS: same graph, queue vs stack");
|
|
14
|
+
display(head); color(head, cyan); size(head, 26); hidden(head);
|
|
15
|
+
text(cap, (cx, 690), ""); color(cap, dim); size(cap, 24);
|
|
16
|
+
|
|
17
|
+
graph(gr, "a b c d e f g", "a-b a-c b-d b-e c-f c-g", circular, (cx, 320), 200, 30);
|
|
18
|
+
|
|
19
|
+
show(head, 0.5);
|
|
20
|
+
wait(0.4);
|
|
21
|
+
|
|
22
|
+
section("BFS");
|
|
23
|
+
say(cap, "BFS explores level by level, using a QUEUE");
|
|
24
|
+
bfs(gr, a);
|
|
25
|
+
say(cap, "queue order: a, then b c, then d e f g");
|
|
26
|
+
wait(0.8);
|
|
27
|
+
|
|
28
|
+
section("DFS");
|
|
29
|
+
par { recolor(gr.nodes, panel, 0.4); recolor(gr.edges, dim, 0.4); }
|
|
30
|
+
say(gr.frontier, "stack:");
|
|
31
|
+
say(gr.visited, "visited:");
|
|
32
|
+
say(cap, "DFS dives deep down one branch, using a STACK");
|
|
33
|
+
dfs(gr, a);
|
|
34
|
+
say(cap, "the stack drove it depth-first before backtracking");
|
|
35
|
+
wait(1.2);
|