@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,82 @@
|
|
|
1
|
+
title("Kubernetes Cluster Components");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
template("neon");
|
|
4
|
+
|
|
5
|
+
// ---- boxes (drawn first, behind; hollow-ish so icons read on top) ----
|
|
6
|
+
rect(clusterBox, (800, 380), 880, 560); outline(clusterBox, dim); opacity(clusterBox, 0.22);
|
|
7
|
+
rect(cpBox, (575, 440), 400, 430); outline(cpBox, cyan); opacity(cpBox, 0.28);
|
|
8
|
+
rect(node1Box, (1000, 320), 400, 150); outline(node1Box, dim); opacity(node1Box, 0.35);
|
|
9
|
+
rect(node2Box, (1000, 520), 400, 150); outline(node2Box, dim); opacity(node2Box, 0.35);
|
|
10
|
+
|
|
11
|
+
text(clusterLabel, (470, 130), "Kubernetes cluster"); size(clusterLabel, 26); bold(clusterLabel);
|
|
12
|
+
text(cpLabel, (490, 250), "Control Plane"); size(cpLabel, 20); color(cpLabel, cyan); bold(cpLabel);
|
|
13
|
+
text(n1Label, (855, 268), "Node"); size(n1Label, 18); color(n1Label, dim); bold(n1Label);
|
|
14
|
+
text(n2Label, (855, 468), "Node"); size(n2Label, 18); color(n2Label, dim); bold(n2Label);
|
|
15
|
+
|
|
16
|
+
// ---- cloud provider API (outside the cluster, left) ----
|
|
17
|
+
ellipse(cloud, (165, 360), 210, 120); outline(cloud, blue); opacity(cloud, 0.30);
|
|
18
|
+
text(cloudLabel, (165, 360), "Cloud provider\nAPI"); size(cloudLabel, 20); color(cloudLabel, blue); bold(cloudLabel);
|
|
19
|
+
|
|
20
|
+
// ---- control-plane connections (api is the hub) ----
|
|
21
|
+
line(lCm, (615, 400), (615, 320)); stroke(lCm, 3);
|
|
22
|
+
line(lSched,(615, 485), (615, 560)); stroke(lSched, 3);
|
|
23
|
+
line(lEtcd, (590, 465), (505, 500)); stroke(lEtcd, 3);
|
|
24
|
+
line(lCcmApi, (505, 375), (580, 425)); stroke(lCcmApi, 3); dashed(lCcmApi, 9, 7);
|
|
25
|
+
arrow(aCloud, (440, 360), (270, 360)); stroke(aCloud, 3);
|
|
26
|
+
line(lN1, (800, 320), (660, 425)); stroke(lN1, 3);
|
|
27
|
+
line(lN2, (800, 520), (660, 450)); stroke(lN2, 3);
|
|
28
|
+
|
|
29
|
+
// ---- component icons (placed at the reference positions) ----
|
|
30
|
+
image(api, (615, 440), "asset:diagrams/k8s/controlplane/api.png", 62, 62);
|
|
31
|
+
image(cm, (615, 285), "asset:diagrams/k8s/controlplane/c-m.png", 58, 58);
|
|
32
|
+
image(sched, (615, 590), "asset:diagrams/k8s/controlplane/sched.png", 58, 58);
|
|
33
|
+
image(ccm, (470, 360), "asset:diagrams/k8s/controlplane/c-c-m.png", 58, 58);
|
|
34
|
+
image(etcd, (470, 510), "asset:diagrams/k8s/infra/etcd.png", 58, 58);
|
|
35
|
+
image(kubelet1, (890, 335), "asset:diagrams/k8s/controlplane/kubelet.png", 54, 54);
|
|
36
|
+
image(kproxy1, (1100, 335), "asset:diagrams/k8s/controlplane/k-proxy.png", 54, 54);
|
|
37
|
+
image(kubelet2, (890, 535), "asset:diagrams/k8s/controlplane/kubelet.png", 54, 54);
|
|
38
|
+
image(kproxy2, (1100, 535), "asset:diagrams/k8s/controlplane/k-proxy.png", 54, 54);
|
|
39
|
+
|
|
40
|
+
// ---- icon captions ----
|
|
41
|
+
text(tApi, (615, 478), "api"); size(tApi, 15);
|
|
42
|
+
text(tCm, (615, 320), "c-m"); size(tCm, 15);
|
|
43
|
+
text(tSched, (615, 625), "sched"); size(tSched, 15);
|
|
44
|
+
text(tCcm, (470, 395), "c-c-m"); size(tCcm, 15);
|
|
45
|
+
text(tEtcd, (470, 545), "etcd"); size(tEtcd, 15);
|
|
46
|
+
text(tKl1, (890, 370), "kubelet"); size(tKl1, 14);
|
|
47
|
+
text(tKp1, (1100, 370), "k-proxy"); size(tKp1, 14);
|
|
48
|
+
text(tKl2, (890, 570), "kubelet"); size(tKl2, 14);
|
|
49
|
+
text(tKp2, (1100, 570), "k-proxy"); size(tKp2, 14);
|
|
50
|
+
|
|
51
|
+
// ---- data flow: ordinary manic verbs on the hand-drawn wires (NO systems kit) ----
|
|
52
|
+
text(cap, (cx, h*0.95), "Every component talks through the API server."); size(cap, 20); color(cap, dim); wrap(cap, w*0.8);
|
|
53
|
+
dot(packet, (800, 320), 11); color(packet, lime); hidden(packet);
|
|
54
|
+
|
|
55
|
+
wait(0.5);
|
|
56
|
+
par {
|
|
57
|
+
flow(lN1, 1.0); flow(lN2, 1.0);
|
|
58
|
+
say(cap, "kubelets report node and pod status up to the API server", 0.4);
|
|
59
|
+
}
|
|
60
|
+
par {
|
|
61
|
+
flow(lCm, 1.0); flow(lSched, 1.0);
|
|
62
|
+
say(cap, "the scheduler and controllers act only through the API server", 0.4);
|
|
63
|
+
}
|
|
64
|
+
par {
|
|
65
|
+
flow(lEtcd, 1.0);
|
|
66
|
+
say(cap, "the API server reads and writes all cluster state in etcd", 0.4);
|
|
67
|
+
}
|
|
68
|
+
par {
|
|
69
|
+
flow(aCloud, 1.0);
|
|
70
|
+
say(cap, "the cloud-controller-manager provisions infrastructure via the cloud API", 0.4);
|
|
71
|
+
}
|
|
72
|
+
wait(0.2);
|
|
73
|
+
par {
|
|
74
|
+
show(packet, 0.2);
|
|
75
|
+
say(cap, "one node update: kubelet -> API server -> etcd", 0.4);
|
|
76
|
+
}
|
|
77
|
+
seq {
|
|
78
|
+
travel(packet, lN1, 0.9, smooth);
|
|
79
|
+
travel(packet, lEtcd, 0.9, smooth);
|
|
80
|
+
}
|
|
81
|
+
pulse(api, 0.7);
|
|
82
|
+
wait(1.4);
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
title("A Stateful Set on Kubernetes — Pods, Claims, and Volumes");
|
|
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.045), "Made With Manic");
|
|
7
|
+
text(kicker, (cx, h*0.05), "KUBERNETES · STATEFUL ARCHITECTURE");
|
|
8
|
+
text(headline, (cx, h*0.11), "Every replica keeps its own storage.");
|
|
9
|
+
text(caption, (cx, h*0.94), "Dashed relationships show every route the architecture allows.");
|
|
10
|
+
size(kicker, 15*u); color(kicker, dim); bold(kicker);
|
|
11
|
+
size(headline, 26*u); bold(headline); wrap(headline, w*0.88);
|
|
12
|
+
size(caption, 17*u); color(caption, dim); wrap(caption, w*0.86);
|
|
13
|
+
|
|
14
|
+
architecture(stateful, (cx, h*0.52), w*0.94, h*0.72);
|
|
15
|
+
|
|
16
|
+
cluster(apps, stateful, "APPS");
|
|
17
|
+
node(svc, apps, "k8s:svc", "svc");
|
|
18
|
+
node(sts, apps, "k8s:sts", "sts");
|
|
19
|
+
|
|
20
|
+
cluster(pods, stateful, "PODS");
|
|
21
|
+
for i in 0..3 {
|
|
22
|
+
node(pod{i}, pods, "k8s:pod", "pod");
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
cluster(claims, stateful, "CLAIMS");
|
|
26
|
+
for i in 0..3 {
|
|
27
|
+
node(pvc{i}, claims, "k8s:pvc", "pvc");
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
cluster(storage, stateful, "STORAGE");
|
|
31
|
+
node(pv, storage, "k8s:pv", "pv");
|
|
32
|
+
node(sc, storage, "k8s:sc", "sc");
|
|
33
|
+
|
|
34
|
+
// topology: svc >> pod >> pvc, pod - sts - pvc, and sc >> pv >> pvc (provisioning)
|
|
35
|
+
for i in 0..3 {
|
|
36
|
+
connect(svcPod{i}, svc, pod{i});
|
|
37
|
+
connect(podPvc{i}, pod{i}, pvc{i});
|
|
38
|
+
connect(podSts{i}, pod{i}, sts);
|
|
39
|
+
connect(stsPvc{i}, sts, pvc{i});
|
|
40
|
+
connect(pvPvc{i}, pv, pvc{i});
|
|
41
|
+
}
|
|
42
|
+
connect(scPv, sc, pv);
|
|
43
|
+
|
|
44
|
+
// --- colour every path by its RELATIONSHIP (cold dashed line + hot overlay) ---
|
|
45
|
+
for i in 0..3 {
|
|
46
|
+
color(svcPod{i}, cyan); // ACCESS
|
|
47
|
+
color(podPvc{i}, cyan);
|
|
48
|
+
color(podSts{i}, magenta); // OWNERSHIP
|
|
49
|
+
color(stsPvc{i}, magenta);
|
|
50
|
+
color(pvPvc{i}, gold); // PROVISIONING
|
|
51
|
+
}
|
|
52
|
+
color(scPv, gold); color(scPv.hot, gold);
|
|
53
|
+
text(legAcc, (w*0.30, h*0.175), "ACCESS"); size(legAcc, 13); color(legAcc, cyan); bold(legAcc);
|
|
54
|
+
text(legOwn, (w*0.46, h*0.175), "OWNERSHIP"); size(legOwn, 13); color(legOwn, magenta); bold(legOwn);
|
|
55
|
+
text(legProv, (w*0.64, h*0.175), "PROVISIONING"); size(legProv, 13); color(legProv, gold); bold(legProv);
|
|
56
|
+
hidden(legAcc); hidden(legOwn); hidden(legProv);
|
|
57
|
+
|
|
58
|
+
hidden(stateful.nodes);
|
|
59
|
+
hidden(apps.parts); hidden(pods.parts); hidden(claims.parts); hidden(storage.parts);
|
|
60
|
+
for i in 0..3 {
|
|
61
|
+
untraced(svcPod{i}); untraced(podPvc{i}); untraced(podSts{i});
|
|
62
|
+
untraced(stsPvc{i}); untraced(pvPvc{i});
|
|
63
|
+
}
|
|
64
|
+
untraced(scPv);
|
|
65
|
+
|
|
66
|
+
step("apps") {
|
|
67
|
+
par {
|
|
68
|
+
show(apps.parts, 0.5);
|
|
69
|
+
show(svc, 0.4); show(sts, 0.4);
|
|
70
|
+
show(pods.parts, 0.4);
|
|
71
|
+
stagger(0.08) { show(pod0, 0.35); show(pod1, 0.35); show(pod2, 0.35); }
|
|
72
|
+
show(claims.parts, 0.4);
|
|
73
|
+
stagger(0.08) { show(pvc0, 0.35); show(pvc1, 0.35); show(pvc2, 0.35); }
|
|
74
|
+
say(caption, "A Service fronts three pods; a StatefulSet gives each pod a stable identity and claim.", 0.40);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
wait(0.20);
|
|
78
|
+
|
|
79
|
+
step("storage") {
|
|
80
|
+
par {
|
|
81
|
+
show(storage.parts, 0.45);
|
|
82
|
+
show(pv, 0.4); show(sc, 0.4);
|
|
83
|
+
say(caption, "A StorageClass provisions PersistentVolumes that back each PersistentVolumeClaim.", 0.40);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
wait(0.25);
|
|
87
|
+
|
|
88
|
+
step("possible-topology") {
|
|
89
|
+
par {
|
|
90
|
+
stagger(0.05) {
|
|
91
|
+
draw(svcPod0, 0.35); draw(svcPod1, 0.35); draw(svcPod2, 0.35);
|
|
92
|
+
draw(podPvc0, 0.35); draw(podPvc1, 0.35); draw(podPvc2, 0.35);
|
|
93
|
+
draw(podSts0, 0.35); draw(podSts1, 0.35); draw(podSts2, 0.35);
|
|
94
|
+
draw(stsPvc0, 0.35); draw(stsPvc1, 0.35); draw(stsPvc2, 0.35);
|
|
95
|
+
draw(scPv, 0.35);
|
|
96
|
+
draw(pvPvc0, 0.35); draw(pvPvc1, 0.35); draw(pvPvc2, 0.35);
|
|
97
|
+
}
|
|
98
|
+
show(legAcc, 0.3); show(legOwn, 0.3); show(legProv, 0.3);
|
|
99
|
+
say(caption, "Every dashed edge is a relationship: routing, ownership, and storage binding together.", 0.40);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
wait(0.30);
|
|
103
|
+
|
|
104
|
+
step("app-access") {
|
|
105
|
+
par {
|
|
106
|
+
stagger(0.12) {
|
|
107
|
+
seq { flow(svcPod0, 0.7); flow(podPvc0, 0.7); }
|
|
108
|
+
seq { flow(svcPod1, 0.7); flow(podPvc1, 0.7); }
|
|
109
|
+
seq { flow(svcPod2, 0.7); flow(podPvc2, 0.7); }
|
|
110
|
+
}
|
|
111
|
+
say(caption, "Traffic: the Service reaches a pod, which reads and writes its own claim.", 0.40);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
wait(0.25);
|
|
115
|
+
|
|
116
|
+
step("provisioning") {
|
|
117
|
+
par {
|
|
118
|
+
seq {
|
|
119
|
+
flow(scPv, 0.8);
|
|
120
|
+
par { flow(pvPvc0, 0.8); flow(pvPvc1, 0.8); flow(pvPvc2, 0.8); }
|
|
121
|
+
}
|
|
122
|
+
say(caption, "Provisioning: the StorageClass creates PVs that bind to each claim.", 0.40);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
wait(0.30);
|
|
126
|
+
|
|
127
|
+
step("takeaway") {
|
|
128
|
+
par {
|
|
129
|
+
pulse(apps.parts, 0.7);
|
|
130
|
+
pulse(storage.parts, 0.7);
|
|
131
|
+
say(caption, "Stateful means identity plus durable storage—one claim and volume per replica.", 0.45);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
wait(1.40);
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
title("A Three-Tier Application on Kubernetes — Following One Request");
|
|
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.06), "Made With Manic");
|
|
7
|
+
text(kicker, (cx, h*0.065), "KUBERNETES · THREE TIERS · ONE DATA FLOW");
|
|
8
|
+
text(headline, (cx, h*0.145), "A Three-Tier App on Kubernetes");
|
|
9
|
+
text(caption, (cx, h*0.91), "Ingress in, pods compute, state persists — 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(ingress, presentation, "k8s:ing", "Ingress");
|
|
36
|
+
node(web, presentation, "k8s:deploy", "web Deployment x3");
|
|
37
|
+
node(apisvc, application, "k8s:svc", "api Service");
|
|
38
|
+
node(api, application, "k8s:deploy", "api Deployment x3");
|
|
39
|
+
node(cache, dataTier, "onprem:redis", "Redis");
|
|
40
|
+
node(database, dataTier, "onprem:postgresql", "PostgreSQL (StatefulSet)");
|
|
41
|
+
|
|
42
|
+
connect(toWeb, ingress, web);
|
|
43
|
+
connect(toApiSvc, web, apisvc);
|
|
44
|
+
connect(toApi, apisvc, api);
|
|
45
|
+
connect(toCache, api, cache);
|
|
46
|
+
connect(toDatabase, cache, database);
|
|
47
|
+
request(userRequest, ingress, "GET /checkout");
|
|
48
|
+
|
|
49
|
+
// --- colour every path by its RELATIONSHIP (cold dashed line + hot overlay) ---
|
|
50
|
+
color(toWeb, cyan); color(toWeb.hot, cyan);
|
|
51
|
+
color(toApiSvc, cyan); color(toApiSvc.hot, cyan);
|
|
52
|
+
color(toApi, cyan); color(toApi.hot, cyan);
|
|
53
|
+
color(toCache, magenta); color(toCache.hot, magenta);
|
|
54
|
+
color(toDatabase, gold); color(toDatabase.hot, gold);
|
|
55
|
+
// legend
|
|
56
|
+
text(legReq, (w*0.30, h*0.175), "REQUEST"); size(legReq, 13); color(legReq, cyan); bold(legReq);
|
|
57
|
+
text(legCache, (w*0.48, h*0.175), "CACHE"); size(legCache, 13); color(legCache, magenta); bold(legCache);
|
|
58
|
+
text(legDb, (w*0.62, h*0.175), "PERSIST"); size(legDb, 13); color(legDb, gold); bold(legDb);
|
|
59
|
+
hidden(legReq); hidden(legCache); hidden(legDb);
|
|
60
|
+
hidden(presentation.nodes); hidden(application.nodes); hidden(dataTier.nodes);
|
|
61
|
+
untraced(toWeb); untraced(toApiSvc); untraced(toApi);
|
|
62
|
+
untraced(toCache); untraced(toDatabase);
|
|
63
|
+
hidden(userRequest.parts);
|
|
64
|
+
|
|
65
|
+
step("presentation-tier") {
|
|
66
|
+
par {
|
|
67
|
+
show(presentation.nodes, 0.55);
|
|
68
|
+
say(caption, "Presentation: the Ingress terminates traffic and routes it to the web pods.", 0.40);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
wait(0.20);
|
|
72
|
+
|
|
73
|
+
step("application-tier") {
|
|
74
|
+
par {
|
|
75
|
+
show(application.nodes, 0.55);
|
|
76
|
+
say(caption, "Application: a Service load-balances across stateless api pods that scale on demand.", 0.40);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
wait(0.20);
|
|
80
|
+
|
|
81
|
+
step("data-tier") {
|
|
82
|
+
par {
|
|
83
|
+
show(dataTier.nodes, 0.55);
|
|
84
|
+
say(caption, "Data: Redis serves hot reads; a PostgreSQL StatefulSet holds durable state.", 0.40);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
wait(0.25);
|
|
88
|
+
|
|
89
|
+
step("connect-the-tiers") {
|
|
90
|
+
par {
|
|
91
|
+
stagger(0.10) {
|
|
92
|
+
draw(toWeb, 0.35); draw(toApiSvc, 0.35); draw(toApi, 0.35);
|
|
93
|
+
draw(toCache, 0.35); draw(toDatabase, 0.35);
|
|
94
|
+
}
|
|
95
|
+
show(userRequest.parts, 0.30);
|
|
96
|
+
show(legReq, 0.3); show(legCache, 0.3); show(legDb, 0.3);
|
|
97
|
+
say(caption, "Now follow one checkout request through the whole cluster.", 0.40);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
wait(0.20);
|
|
101
|
+
|
|
102
|
+
step("ingress-to-web") {
|
|
103
|
+
par {
|
|
104
|
+
route(userRequest, toWeb, 0.85, smooth);
|
|
105
|
+
say(caption, "The Ingress forwards the request to a web pod via the Service.", 0.40);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
step("web-to-api") {
|
|
110
|
+
par {
|
|
111
|
+
route(userRequest, toApiSvc, 0.90, smooth);
|
|
112
|
+
say(caption, "The web tier calls the api Service — one controlled entry into business logic.", 0.40);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
step("into-a-pod") {
|
|
117
|
+
par {
|
|
118
|
+
route(userRequest, toApi, 0.80, smooth);
|
|
119
|
+
say(caption, "The Service load-balances into one replicated api pod.", 0.40);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
step("read-fast") {
|
|
124
|
+
par {
|
|
125
|
+
route(userRequest, toCache, 0.90, smooth);
|
|
126
|
+
say(caption, "Redis answers the hot read first, shielding the database from repeated work.", 0.40);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
step("persist-safely") {
|
|
131
|
+
par {
|
|
132
|
+
route(userRequest, toDatabase, 0.85, smooth);
|
|
133
|
+
say(caption, "On a miss, the PostgreSQL StatefulSet is the durable source of truth.", 0.40);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
wait(0.30);
|
|
137
|
+
|
|
138
|
+
step("takeaway") {
|
|
139
|
+
par {
|
|
140
|
+
pulse(presentation.nodes, 0.70);
|
|
141
|
+
pulse(application.nodes, 0.70);
|
|
142
|
+
pulse(dataTier.nodes, 0.70);
|
|
143
|
+
say(caption, "Ingress, Services, Deployments and a StatefulSet keep delivery, compute, and state independent.", 0.45);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
wait(1.40);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// kapitza.manic — vibrate the pivot fast enough and the pendulum stands UP.
|
|
2
|
+
// kapitza(id,[center],[angle0deg],[vibeamp],[unit]) — a driven (Kapitza) pendulum;
|
|
3
|
+
// with a strong enough vibration the INVERTED position becomes stable.
|
|
4
|
+
title("Kapitza pendulum — stable upside-down");
|
|
5
|
+
canvas("16:9");
|
|
6
|
+
text(hdr,(cx,44),"Kapitza pendulum — fast pivot vibration stabilises 'up'");
|
|
7
|
+
size(hdr,23); color(hdr,cyan); bold(hdr); display(hdr);
|
|
8
|
+
kapitza(kp, (640,430), 165, 240, 150); // start near inverted, strong vibration
|
|
9
|
+
untraced(kp.path);
|
|
10
|
+
text(cap,(cx,h-32),"the gold pivot bobs fast; the bob hovers near the top (inverted)"); size(cap,16); color(cap,dim); display(cap);
|
|
11
|
+
par { run(kp, 9); draw(kp.path, 9); }
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
// A semantic LaTeX story: notation changes, meaning becomes position, and the
|
|
2
|
+
// final symbols may disappear without taking the mathematical result with them.
|
|
3
|
+
|
|
4
|
+
title("The Equation Disappears. The Roots Remain.");
|
|
5
|
+
canvas("9:16");
|
|
6
|
+
template("blank");
|
|
7
|
+
|
|
8
|
+
watermark(mark,(w*0.16,h*0.050),"Made With Manic");
|
|
9
|
+
text(kicker,(cx,h*0.085),"ALGEBRA · SYMBOLS → STRUCTURE");
|
|
10
|
+
text(headline,(cx,h*0.145),"What survives when an equation disappears?");
|
|
11
|
+
text(caption,(cx,h*0.77),"Two solutions are hiding inside one quadratic.");
|
|
12
|
+
text(cta,(cx,h*0.90),"MAKE MEANING MOVE → 8gwifi.org/manic");
|
|
13
|
+
size(kicker,19); color(kicker,dim); bold(kicker); hidden(kicker);
|
|
14
|
+
size(headline,33); bold(headline); wrap(headline,w*0.84); hidden(headline);
|
|
15
|
+
size(caption,22); color(caption,dim); wrap(caption,w*0.82); hidden(caption);
|
|
16
|
+
size(cta,22); color(cta,cyan); bold(cta); hidden(cta);
|
|
17
|
+
|
|
18
|
+
text(symbolLabel,(w*0.18,h*0.29),"THE SYMBOLS");
|
|
19
|
+
text(meaningLabel,(w*0.18,h*0.54),"THE MEANING");
|
|
20
|
+
size(symbolLabel,18); color(symbolLabel,dim); bold(symbolLabel); hidden(symbolLabel);
|
|
21
|
+
size(meaningLabel,18); color(meaningLabel,dim); bold(meaningLabel); hidden(meaningLabel);
|
|
22
|
+
|
|
23
|
+
equation(work,(cx,h*0.39),`x^2-5x+6=0`,66);
|
|
24
|
+
hidden(work);
|
|
25
|
+
|
|
26
|
+
let axisY = h*0.63;
|
|
27
|
+
let axisLeft = w*0.16;
|
|
28
|
+
let axisRight = w*0.84;
|
|
29
|
+
let x0 = w*0.20;
|
|
30
|
+
let dx = w*0.15;
|
|
31
|
+
|
|
32
|
+
arrow(numberAxis,(axisLeft,axisY),(axisRight,axisY));
|
|
33
|
+
color(numberAxis,dim); stroke(numberAxis,3);
|
|
34
|
+
tag(numberAxis,numberLine);
|
|
35
|
+
|
|
36
|
+
for i in 0..5 {
|
|
37
|
+
line(tick{i},(x0+i*dx,axisY-13),(x0+i*dx,axisY+13));
|
|
38
|
+
color(tick{i},dim); stroke(tick{i},3);
|
|
39
|
+
tag(tick{i},numberLine);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
text(n0,(x0,axisY+42),"0");
|
|
43
|
+
text(n1,(x0+dx,axisY+42),"1");
|
|
44
|
+
text(n2,(x0+2*dx,axisY+42),"2");
|
|
45
|
+
text(n3,(x0+3*dx,axisY+42),"3");
|
|
46
|
+
text(n4,(x0+4*dx,axisY+42),"4");
|
|
47
|
+
size(n0,18); size(n1,18); size(n2,18); size(n3,18); size(n4,18);
|
|
48
|
+
color(n0,dim); color(n1,dim); color(n2,dim); color(n3,dim); color(n4,dim);
|
|
49
|
+
tag(n0,numberLine); tag(n1,numberLine); tag(n2,numberLine);
|
|
50
|
+
tag(n3,numberLine); tag(n4,numberLine);
|
|
51
|
+
|
|
52
|
+
circle(root2,(x0+2*dx,axisY),15);
|
|
53
|
+
circle(root3,(x0+3*dx,axisY),15);
|
|
54
|
+
filled(root2); filled(root3);
|
|
55
|
+
color(root2,cyan); color(root3,orange);
|
|
56
|
+
glow(root2,0.72); glow(root3,0.72);
|
|
57
|
+
tag(root2,solutions); tag(root3,solutions);
|
|
58
|
+
|
|
59
|
+
equation(root2Label,(x0+2*dx,axisY-62),`x=2`,30);
|
|
60
|
+
equation(root3Label,(x0+3*dx,axisY-62),`x=3`,30);
|
|
61
|
+
color(root2Label,cyan); color(root3Label,orange);
|
|
62
|
+
tag(root2Label,solutions); tag(root3Label,solutions);
|
|
63
|
+
|
|
64
|
+
hidden(numberLine);
|
|
65
|
+
hidden(solutions);
|
|
66
|
+
|
|
67
|
+
step("find what is hiding") {
|
|
68
|
+
par {
|
|
69
|
+
show(kicker,0.30);
|
|
70
|
+
show(headline,0.45);
|
|
71
|
+
show(symbolLabel,0.35);
|
|
72
|
+
show(caption,0.40);
|
|
73
|
+
show(work,0.55);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
wait(0.55);
|
|
77
|
+
|
|
78
|
+
step("expose the two conditions") {
|
|
79
|
+
par {
|
|
80
|
+
rewrite(work,`\textcolor{cyan}{(x-2)}\textcolor{orange}{(x-3)}=0`,1.15,smooth);
|
|
81
|
+
say(caption,"Factoring reveals two independent ways for the product to become zero.",0.45);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
wait(0.55);
|
|
85
|
+
|
|
86
|
+
step("turn answers into positions") {
|
|
87
|
+
par {
|
|
88
|
+
rewrite(work,`\textcolor{cyan}{x=2}\qquad\text{or}\qquad\textcolor{orange}{x=3}`,1.05,smooth);
|
|
89
|
+
seq {
|
|
90
|
+
show(meaningLabel,0.30);
|
|
91
|
+
show(numberLine,0.55);
|
|
92
|
+
show(root2,0.35);
|
|
93
|
+
show(root2Label,0.30);
|
|
94
|
+
wait(0.18);
|
|
95
|
+
show(root3,0.35);
|
|
96
|
+
show(root3Label,0.30);
|
|
97
|
+
}
|
|
98
|
+
say(caption,"The answers are no longer only symbols—they now occupy exact locations.",0.45);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
wait(0.70);
|
|
102
|
+
|
|
103
|
+
step("remove the notation, keep the result") {
|
|
104
|
+
par {
|
|
105
|
+
disintegrate(work,1.60);
|
|
106
|
+
seq {
|
|
107
|
+
wait(0.35);
|
|
108
|
+
pulse(root2,0.60);
|
|
109
|
+
pulse(root3,0.60);
|
|
110
|
+
}
|
|
111
|
+
say(caption,"The notation can turn to dust. The two solutions remain exactly where they belong.",0.45);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
wait(0.75);
|
|
115
|
+
|
|
116
|
+
step("create explanations that preserve meaning") {
|
|
117
|
+
par {
|
|
118
|
+
pulse(solutions,0.75);
|
|
119
|
+
show(cta,0.45);
|
|
120
|
+
say(caption,"Great visual explanations do more than move symbols—they reveal what those symbols mean.",0.45);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
wait(1.45);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// lens-paper.manic — a converging lens as a textbook figure (annotated)
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// The `lens` sim inked on paper, narrated by a TYPEWRITER caption (a different
|
|
5
|
+
// elevation lens from refraction-paper's camera), with labelled parallel rays
|
|
6
|
+
// and focal point while `run` sweeps the focal length. Ideal thin lens.
|
|
7
|
+
// ============================================================================
|
|
8
|
+
|
|
9
|
+
title("Converging Lens");
|
|
10
|
+
canvas("16:9");
|
|
11
|
+
template("paper");
|
|
12
|
+
|
|
13
|
+
lens(l, (640, 360));
|
|
14
|
+
|
|
15
|
+
// ---- textbook annotations (screen-fixed) ----
|
|
16
|
+
text(inlab, (150, 250), "parallel rays"); color(inlab, dim); size(inlab, 22); sticky(inlab);
|
|
17
|
+
text(flab, (980, 300), "focal point F"); color(flab, dim); size(flab, 22); sticky(flab);
|
|
18
|
+
arrow(farr, (980, 320), (900, 356)); color(farr, dim); sticky(farr);
|
|
19
|
+
|
|
20
|
+
// a typewriter caption performs the narration (untraced → type reveals it)
|
|
21
|
+
text(cap, (cx, h - 48), "a lens bends parallel light to a single point"); color(cap, fg); size(cap, 26); bold(cap); untraced(cap); sticky(cap);
|
|
22
|
+
|
|
23
|
+
// ================= THE SCENE =================
|
|
24
|
+
type(cap, 1.6); // type the line out
|
|
25
|
+
wait(0.4);
|
|
26
|
+
|
|
27
|
+
par {
|
|
28
|
+
run(l, 8);
|
|
29
|
+
seq {
|
|
30
|
+
wait(0.6);
|
|
31
|
+
say(cap, "every ray meets at the focus, F", 0.3);
|
|
32
|
+
wait(2.8);
|
|
33
|
+
say(cap, "a shorter focal length is a stronger lens — F slides in", 0.3);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
wait(1.2);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// lens-prescription.manic — type your OWN lens (real prescription)
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// `lenssystem` takes a lens two ways: pick a real design by NAME
|
|
5
|
+
// ("plano-convex" / "meniscus" / "doublet" / "triplet" / …), or write a CUSTOM
|
|
6
|
+
// prescription — the lens designer's surface table — as "radius thickness glass"
|
|
7
|
+
// per surface, separated by "|". Here: a cemented crown+flint achromat, traced
|
|
8
|
+
// through its actual spherical surfaces with real glass (Sellmeier).
|
|
9
|
+
// ============================================================================
|
|
10
|
+
|
|
11
|
+
title("A Lens, By Prescription");
|
|
12
|
+
canvas("16:9");
|
|
13
|
+
|
|
14
|
+
// surface table: radius thickness glass (| between surfaces; "flat"/"air" allowed)
|
|
15
|
+
lenssystem(l, (600, 380), "160 26 bk7 | -140 8 f2 | -420 0 air");
|
|
16
|
+
|
|
17
|
+
text(cap, (cx, h - 46), ""); color(cap, fg); size(cap, 24); bold(cap); display(cap); sticky(cap);
|
|
18
|
+
|
|
19
|
+
// ================= THE SCENE =================
|
|
20
|
+
say(cap, "a lens written as a prescription: radius · thickness · glass", 0.5);
|
|
21
|
+
draw(l.rays, 2.2); // trace the real surfaces
|
|
22
|
+
wait(0.4);
|
|
23
|
+
|
|
24
|
+
par {
|
|
25
|
+
run(l, 6); // sweep the sensor to best focus
|
|
26
|
+
seq {
|
|
27
|
+
say(cap, "crown + flint, cemented — the same table a designer would type", 0.3);
|
|
28
|
+
wait(2.6);
|
|
29
|
+
say(cap, "traced through the true spherical surfaces (real Sellmeier glass)", 0.3);
|
|
30
|
+
wait(2.0);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
wait(1.0);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// lens-system.manic — a REAL lens, ray-traced (best of physics + manic)
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// `lenssystem` traces a parallel beam through the ACTUAL spherical surfaces of
|
|
5
|
+
// a lens (not the ideal thin lens of `lens`). Here the fast singlet reveals
|
|
6
|
+
// SPHERICAL ABERRATION: sketch the rays on with `draw`, then `run` sweeps a
|
|
7
|
+
// sensor plane along the axis while the live spot read-out dips to its minimum
|
|
8
|
+
// — which never reaches a point, because the outer rays focus short. Then swap
|
|
9
|
+
// the caption's promise: that's the flaw a doublet/triplet is built to fix.
|
|
10
|
+
// ============================================================================
|
|
11
|
+
|
|
12
|
+
title("Spherical Aberration — a Real Lens Traced");
|
|
13
|
+
canvas("16:9");
|
|
14
|
+
|
|
15
|
+
lenssystem(ls, (620, 380), "singlet");
|
|
16
|
+
|
|
17
|
+
text(cap, (cx, h - 42), ""); color(cap, fg); size(cap, 24); bold(cap); display(cap); sticky(cap);
|
|
18
|
+
|
|
19
|
+
// ================= THE SCENE =================
|
|
20
|
+
say(cap, "a parallel beam into a real, fast single lens…", 0.5);
|
|
21
|
+
draw(ls.rays, 2.2); // the rays sketch through the glass
|
|
22
|
+
wait(0.3);
|
|
23
|
+
|
|
24
|
+
par {
|
|
25
|
+
run(ls, 6); // the sensor plane sweeps the axis
|
|
26
|
+
seq {
|
|
27
|
+
say(cap, "a sensor hunts for focus — watch the spot size", 0.3);
|
|
28
|
+
wait(2.4);
|
|
29
|
+
say(cap, "the outer rays focus SHORT — it never reaches a point", 0.3);
|
|
30
|
+
wait(2.0);
|
|
31
|
+
say(cap, "that blur is spherical aberration (a doublet/triplet fixes it)", 0.3);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
wait(1.2);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// lens.manic — a converging lens, and where it focuses (real optics)
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// The `optics` kit's `lens` builtin: a beam of parallel rays is bent by a
|
|
5
|
+
// converging lens to meet at the focal point F. `run` SWEEPS the focal length,
|
|
6
|
+
// so you watch the focus slide in toward the lens — a shorter focal length is
|
|
7
|
+
// a stronger lens. Ideal thin lens (every parallel ray passes through F).
|
|
8
|
+
// ============================================================================
|
|
9
|
+
|
|
10
|
+
title("Converging Lens");
|
|
11
|
+
canvas("16:9");
|
|
12
|
+
|
|
13
|
+
lens(l, (620, 360));
|
|
14
|
+
|
|
15
|
+
text(cap, (cx, h - 46), ""); color(cap, fg); size(cap, 24); bold(cap); display(cap); sticky(cap);
|
|
16
|
+
|
|
17
|
+
// ================= THE SCENE =================
|
|
18
|
+
say(cap, "parallel light meets a converging lens…", 0.5);
|
|
19
|
+
wait(0.5);
|
|
20
|
+
|
|
21
|
+
par {
|
|
22
|
+
run(l, 7);
|
|
23
|
+
seq {
|
|
24
|
+
say(cap, "every ray bends to the SAME point — the focus, F", 0.3);
|
|
25
|
+
wait(2.6);
|
|
26
|
+
say(cap, "shorter focal length = a stronger lens → the focus slides IN", 0.3);
|
|
27
|
+
wait(2.4);
|
|
28
|
+
say(cap, "past F the rays cross and spread apart again", 0.3);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
wait(1.2);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
title("A limit at infinity — limit(id, curve, inf)");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
|
|
4
|
+
let ox = 90; // x = 0 near the left
|
|
5
|
+
let oy = cy + 250; // y = 0 baseline
|
|
6
|
+
|
|
7
|
+
text(hdr, (cx, 52), "(5x^3 - 2x + 7) / (x^3 + 4x^2 + 3) -> 5 as x -> infinity");
|
|
8
|
+
size(hdr, 24); color(hdr, cyan); bold(hdr); display(hdr); hidden(hdr);
|
|
9
|
+
|
|
10
|
+
text(sub, (cx, 92), "same degree top and bottom: the ratio of leading coefficients, 5/1");
|
|
11
|
+
size(sub, 17); color(sub, dim); display(sub); hidden(sub);
|
|
12
|
+
|
|
13
|
+
// the x-axis (y = 0)
|
|
14
|
+
line(xaxis, (ox, oy), (ox + 1130, oy));
|
|
15
|
+
color(xaxis, dim); untraced(xaxis);
|
|
16
|
+
|
|
17
|
+
// the rational function, climbing toward its asymptote
|
|
18
|
+
plot(f, (ox, oy), 9, 88, "(5*x*x*x - 2*x + 7)/(x*x*x + 4*x*x + 3)", (0.5, 125));
|
|
19
|
+
color(f, cyan); stroke(f, 4); untraced(f);
|
|
20
|
+
|
|
21
|
+
// the limit at infinity: auto-detects the horizontal asymptote y = 5
|
|
22
|
+
limit(lim, f, inf);
|
|
23
|
+
color(lim, gold); hidden(lim);
|
|
24
|
+
|
|
25
|
+
// ---- timeline ----
|
|
26
|
+
show(hdr, 0.6);
|
|
27
|
+
show(sub, 0.4);
|
|
28
|
+
draw(xaxis, 0.5);
|
|
29
|
+
draw(f, 2.4);
|
|
30
|
+
show(lim, 0.7);
|