@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,151 @@
|
|
|
1
|
+
title("Systems Foundation — Arrow Patterns");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
template("mono");
|
|
4
|
+
|
|
5
|
+
let u = (w+h-abs(w-h))/1440;
|
|
6
|
+
let pw = w*0.27;
|
|
7
|
+
let ph = h*0.25;
|
|
8
|
+
let x1 = w*0.18;
|
|
9
|
+
let x2 = w*0.50;
|
|
10
|
+
let x3 = w*0.82;
|
|
11
|
+
let y1 = h*0.34;
|
|
12
|
+
let y2 = h*0.68;
|
|
13
|
+
|
|
14
|
+
watermark(mark, (w*0.09, h*0.045), "Made With Manic");
|
|
15
|
+
text(kicker, (cx, h*0.045), "SYSTEMS FOUNDATION · DIRECTION IS VISIBLE");
|
|
16
|
+
text(headline, (cx, h*0.12), "One arrow grammar, many delivery stories");
|
|
17
|
+
text(caption, (cx, h*0.925), "Arrows describe paths. seq, par, travel, and flow describe what moves through them.");
|
|
18
|
+
size(kicker, 16*u); color(kicker, dim); bold(kicker);
|
|
19
|
+
size(headline, 31*u); bold(headline); wrap(headline, w*0.86);
|
|
20
|
+
size(caption, 18*u); color(caption, dim); wrap(caption, w*0.88);
|
|
21
|
+
|
|
22
|
+
rect(p1, (x1,y1), pw,ph); outlined(p1); color(p1, dim); stroke(p1, 2*u);
|
|
23
|
+
rect(p2, (x2,y1), pw,ph); outlined(p2); color(p2, dim); stroke(p2, 2*u);
|
|
24
|
+
rect(p3, (x3,y1), pw,ph); outlined(p3); color(p3, dim); stroke(p3, 2*u);
|
|
25
|
+
rect(p4, (x1,y2), pw,ph); outlined(p4); color(p4, dim); stroke(p4, 2*u);
|
|
26
|
+
rect(p5, (x2,y2), pw,ph); outlined(p5); color(p5, dim); stroke(p5, 2*u);
|
|
27
|
+
rect(p6, (x3,y2), pw,ph); outlined(p6); color(p6, dim); stroke(p6, 2*u);
|
|
28
|
+
|
|
29
|
+
text(t1, (x1,y1-ph*0.36), "ONE WAY");
|
|
30
|
+
text(t2, (x2,y1-ph*0.36), "ROUND TRIP");
|
|
31
|
+
text(t3, (x3,y1-ph*0.36), "ORTHOGONAL");
|
|
32
|
+
text(t4, (x1,y2-ph*0.36), "VERTICAL PORTS");
|
|
33
|
+
text(t5, (x2,y2-ph*0.36), "FAN OUT");
|
|
34
|
+
text(t6, (x3,y2-ph*0.36), "DIAGONAL DUPLEX");
|
|
35
|
+
size(t1, 16*u); size(t2, 16*u); size(t3, 16*u);
|
|
36
|
+
size(t4, 16*u); size(t5, 16*u); size(t6, 16*u);
|
|
37
|
+
color(t1, dim); color(t2, dim); color(t3, dim);
|
|
38
|
+
color(t4, dim); color(t5, dim); color(t6, dim);
|
|
39
|
+
bold(t1); bold(t2); bold(t3); bold(t4); bold(t5); bold(t6);
|
|
40
|
+
|
|
41
|
+
// 1 — one source, one destination.
|
|
42
|
+
arrow(one, (x1-pw*0.34,y1+ph*0.08), (x1+pw*0.34,y1+ph*0.08));
|
|
43
|
+
color(one, cyan); stroke(one, 4*u); untraced(one);
|
|
44
|
+
circle(oneDot, (x1-pw*0.34,y1+ph*0.08), 8*u); color(oneDot, cyan); hidden(oneDot);
|
|
45
|
+
|
|
46
|
+
// 2 — request and response remain separate, honest directions.
|
|
47
|
+
arrow(outbound, (x2-pw*0.34,y1), (x2+pw*0.34,y1));
|
|
48
|
+
arrow(inbound, (x2+pw*0.34,y1+ph*0.17), (x2-pw*0.34,y1+ph*0.17));
|
|
49
|
+
color(outbound, cyan); color(inbound, magenta);
|
|
50
|
+
stroke(outbound, 4*u); stroke(inbound, 4*u);
|
|
51
|
+
untraced(outbound); untraced(inbound);
|
|
52
|
+
circle(requestDot, (x2-pw*0.34,y1), 8*u); color(requestDot, cyan); hidden(requestDot);
|
|
53
|
+
circle(responseDot, (x2+pw*0.34,y1+ph*0.17), 8*u); color(responseDot, magenta); hidden(responseDot);
|
|
54
|
+
|
|
55
|
+
// 3 — generic geometry can draw a stepped path; Systems nodes use one
|
|
56
|
+
// `connect(path, a, b, orthogonal)` declaration for the same routed identity.
|
|
57
|
+
line(elbowA, (x3-pw*0.34,y1-ph*0.02), (x3,y1-ph*0.02));
|
|
58
|
+
line(elbowB, (x3,y1-ph*0.02), (x3,y1+ph*0.20));
|
|
59
|
+
arrow(elbowC, (x3,y1+ph*0.20), (x3+pw*0.34,y1+ph*0.20));
|
|
60
|
+
color(elbowA, gold); color(elbowB, gold); color(elbowC, gold);
|
|
61
|
+
stroke(elbowA, 4*u); stroke(elbowB, 4*u); stroke(elbowC, 4*u);
|
|
62
|
+
untraced(elbowA); untraced(elbowB); untraced(elbowC);
|
|
63
|
+
circle(elbowDot, (x3-pw*0.34,y1-ph*0.02), 8*u); color(elbowDot, gold); hidden(elbowDot);
|
|
64
|
+
|
|
65
|
+
// 4 — ports can face vertically without changing motion semantics.
|
|
66
|
+
arrow(downLane, (x1-pw*0.12,y2-ph*0.20), (x1-pw*0.12,y2+ph*0.25));
|
|
67
|
+
arrow(upLane, (x1+pw*0.12,y2+ph*0.25), (x1+pw*0.12,y2-ph*0.20));
|
|
68
|
+
color(downLane, cyan); color(upLane, magenta);
|
|
69
|
+
stroke(downLane, 4*u); stroke(upLane, 4*u);
|
|
70
|
+
untraced(downLane); untraced(upLane);
|
|
71
|
+
circle(downDot, (x1-pw*0.12,y2-ph*0.20), 8*u); color(downDot, cyan); hidden(downDot);
|
|
72
|
+
circle(upDot, (x1+pw*0.12,y2+ph*0.25), 8*u); color(upDot, magenta); hidden(upDot);
|
|
73
|
+
|
|
74
|
+
// 5 — fan-out is three explicitly authored deliveries, not inferred broadcast.
|
|
75
|
+
arrow(fanA, (x2-pw*0.34,y2+ph*0.04), (x2+pw*0.34,y2-ph*0.22));
|
|
76
|
+
arrow(fanB, (x2-pw*0.34,y2+ph*0.04), (x2+pw*0.34,y2+ph*0.04));
|
|
77
|
+
arrow(fanC, (x2-pw*0.34,y2+ph*0.04), (x2+pw*0.34,y2+ph*0.30));
|
|
78
|
+
color(fanA, cyan); color(fanB, cyan); color(fanC, cyan);
|
|
79
|
+
stroke(fanA, 3*u); stroke(fanB, 3*u); stroke(fanC, 3*u);
|
|
80
|
+
untraced(fanA); untraced(fanB); untraced(fanC);
|
|
81
|
+
circle(fanDotA, (x2-pw*0.34,y2+ph*0.04), 7*u); color(fanDotA, cyan); hidden(fanDotA);
|
|
82
|
+
circle(fanDotB, (x2-pw*0.34,y2+ph*0.04), 7*u); color(fanDotB, cyan); hidden(fanDotB);
|
|
83
|
+
circle(fanDotC, (x2-pw*0.34,y2+ph*0.04), 7*u); color(fanDotC, cyan); hidden(fanDotC);
|
|
84
|
+
|
|
85
|
+
// 6 — diagonal request/return lanes use different styling and directions.
|
|
86
|
+
arrow(diagOut, (x3-pw*0.32,y2+ph*0.24), (x3+pw*0.27,y2-ph*0.22));
|
|
87
|
+
arrow(diagBack, (x3+pw*0.34,y2-ph*0.12), (x3-pw*0.25,y2+ph*0.34));
|
|
88
|
+
color(diagOut, cyan); color(diagBack, magenta); dashed(diagBack);
|
|
89
|
+
stroke(diagOut, 4*u); stroke(diagBack, 4*u);
|
|
90
|
+
untraced(diagOut); untraced(diagBack);
|
|
91
|
+
circle(diagRequest, (x3-pw*0.32,y2+ph*0.24), 8*u); color(diagRequest, cyan); hidden(diagRequest);
|
|
92
|
+
circle(diagResponse, (x3+pw*0.34,y2-ph*0.12), 8*u); color(diagResponse, magenta); hidden(diagResponse);
|
|
93
|
+
|
|
94
|
+
tag(p1, cards); tag(p2, cards); tag(p3, cards); tag(p4, cards); tag(p5, cards); tag(p6, cards);
|
|
95
|
+
tag(t1, cards); tag(t2, cards); tag(t3, cards); tag(t4, cards); tag(t5, cards); tag(t6, cards);
|
|
96
|
+
tag(one, paths); tag(outbound, paths); tag(inbound, paths);
|
|
97
|
+
tag(elbowA, paths); tag(elbowB, paths); tag(elbowC, paths);
|
|
98
|
+
tag(downLane, paths); tag(upLane, paths);
|
|
99
|
+
tag(fanA, paths); tag(fanB, paths); tag(fanC, paths);
|
|
100
|
+
tag(diagOut, paths); tag(diagBack, paths);
|
|
101
|
+
|
|
102
|
+
hidden(kicker); hidden(headline); hidden(caption); hidden(cards);
|
|
103
|
+
|
|
104
|
+
step("arrow-grammar") {
|
|
105
|
+
par {
|
|
106
|
+
show(kicker, 0.30);
|
|
107
|
+
show(headline, 0.45);
|
|
108
|
+
show(caption, 0.40);
|
|
109
|
+
show(cards, 0.45);
|
|
110
|
+
draw(paths, 1.10, smooth);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
wait(0.35);
|
|
114
|
+
|
|
115
|
+
step("traffic") {
|
|
116
|
+
par {
|
|
117
|
+
show(oneDot, 0.15); travel(oneDot, one, 1.20, linear); flow(one, 1.20);
|
|
118
|
+
seq {
|
|
119
|
+
show(requestDot, 0.15); travel(requestDot, outbound, 0.65, linear);
|
|
120
|
+
show(responseDot, 0.15); travel(responseDot, inbound, 0.65, linear);
|
|
121
|
+
}
|
|
122
|
+
seq {
|
|
123
|
+
show(elbowDot, 0.15);
|
|
124
|
+
travel(elbowDot, elbowA, 0.40, linear);
|
|
125
|
+
travel(elbowDot, elbowB, 0.35, linear);
|
|
126
|
+
travel(elbowDot, elbowC, 0.45, linear);
|
|
127
|
+
}
|
|
128
|
+
par {
|
|
129
|
+
show(downDot, 0.15); travel(downDot, downLane, 1.20, linear);
|
|
130
|
+
show(upDot, 0.15); travel(upDot, upLane, 1.20, linear);
|
|
131
|
+
}
|
|
132
|
+
par {
|
|
133
|
+
show(fanDotA, 0.15); travel(fanDotA, fanA, 1.20, linear);
|
|
134
|
+
show(fanDotB, 0.15); travel(fanDotB, fanB, 1.20, linear);
|
|
135
|
+
show(fanDotC, 0.15); travel(fanDotC, fanC, 1.20, linear);
|
|
136
|
+
}
|
|
137
|
+
par {
|
|
138
|
+
show(diagRequest, 0.15); travel(diagRequest, diagOut, 1.20, linear);
|
|
139
|
+
show(diagResponse, 0.15); travel(diagResponse, diagBack, 1.20, linear);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
wait(0.55);
|
|
144
|
+
|
|
145
|
+
step("creator-controls-semantics") {
|
|
146
|
+
par {
|
|
147
|
+
pulse(paths, 0.75);
|
|
148
|
+
say(caption, "The same paths can mean request, response, queue delivery, broadcast, or pure motion—the creator decides.", 0.40);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
wait(1.20);
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
title("Systems Foundation — One Request, One Return");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
template("mono");
|
|
4
|
+
|
|
5
|
+
watermark(mark, (160, 54), "Made With Manic");
|
|
6
|
+
text(kicker, (cx, 54), "PROVIDER-NEUTRAL SYSTEMS");
|
|
7
|
+
text(headline, (cx, 104), "Structure is not behaviour");
|
|
8
|
+
text(caption, (cx, h-58), "Cold paths show what is possible. One persistent dot shows what actually happened.");
|
|
9
|
+
size(kicker, 18); color(kicker, dim); bold(kicker);
|
|
10
|
+
size(headline, 34); bold(headline);
|
|
11
|
+
size(caption, 20); color(caption, dim); wrap(caption, w*0.86);
|
|
12
|
+
|
|
13
|
+
architecture(platform, (cx, cy+15), w*0.88, h*0.58);
|
|
14
|
+
node(user, platform, "client", "User");
|
|
15
|
+
node(edge, platform, "gateway", "Gateway");
|
|
16
|
+
node(api, platform, "service", "API Service");
|
|
17
|
+
node(cache, platform, "cache", "Cache");
|
|
18
|
+
node(db, platform, "database", "Database");
|
|
19
|
+
|
|
20
|
+
connect(toEdge, user, edge);
|
|
21
|
+
connect(toApi, edge, api);
|
|
22
|
+
connect(toCache, api, cache);
|
|
23
|
+
// One semantic connection: Manic chooses node-boundary ports and keeps the
|
|
24
|
+
// packet continuous across every internal orthogonal segment.
|
|
25
|
+
connect(toDb, cache, db, orthogonal, right, top);
|
|
26
|
+
connect(dbReturn, db, api, 95);
|
|
27
|
+
connect(apiReturn, api, edge, 75);
|
|
28
|
+
connect(edgeReturn, edge, user, 55);
|
|
29
|
+
|
|
30
|
+
message(packet, user, "GET");
|
|
31
|
+
hidden(kicker); hidden(headline); hidden(caption);
|
|
32
|
+
untraced(platform.connections);
|
|
33
|
+
hidden(packet);
|
|
34
|
+
|
|
35
|
+
step("structure") {
|
|
36
|
+
par {
|
|
37
|
+
show(kicker, 0.35);
|
|
38
|
+
show(headline, 0.45);
|
|
39
|
+
show(caption, 0.45);
|
|
40
|
+
draw(platform.connections, 1.20, smooth);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
wait(0.45);
|
|
44
|
+
|
|
45
|
+
step("continuous-round-trip") {
|
|
46
|
+
par {
|
|
47
|
+
show(packet, 0.20);
|
|
48
|
+
say(caption, "One dot moves continuously end to end. Every route hand-off preserves its identity.", 0.35);
|
|
49
|
+
seq {
|
|
50
|
+
route(packet, toEdge, 0.70, linear);
|
|
51
|
+
route(packet, toApi, 0.70, linear);
|
|
52
|
+
route(packet, toCache, 0.70, linear);
|
|
53
|
+
route(packet, toDb, 0.70, linear);
|
|
54
|
+
par {
|
|
55
|
+
recolor(packet, magenta, 0.30);
|
|
56
|
+
route(packet, dbReturn, 0.80, linear);
|
|
57
|
+
}
|
|
58
|
+
route(packet, apiReturn, 0.75, linear);
|
|
59
|
+
route(packet, edgeReturn, 0.75, linear);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
wait(0.45);
|
|
64
|
+
|
|
65
|
+
step("proof") {
|
|
66
|
+
par {
|
|
67
|
+
pulse(packet, 0.70);
|
|
68
|
+
say(caption, "The same dot is back at the User: one identity, seven connected journeys, zero animation gaps.", 0.40);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
wait(1.10);
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
title("RabbitMQ Consumers — One Message, One Worker");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
template("mono");
|
|
4
|
+
|
|
5
|
+
let u = (w+h-abs(w-h))/1440;
|
|
6
|
+
watermark(mark, (w*0.14, h*0.035), "Made With Manic");
|
|
7
|
+
text(kicker, (cx, h*0.055), "SYSTEMS KIT · COMPETING CONSUMERS");
|
|
8
|
+
text(headline, (cx, h*0.125), "One queue. Three workers. One owner per message.");
|
|
9
|
+
text(caption, (cx, h*0.94), "Cold paths show every legal route; the moving job shows the route selected 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(runtime, (cx, h*0.52), w*0.84, h*0.70);
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
architecture(runtime, (cx, h*0.52), w*0.90, h*0.68);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
node(queue, runtime, "queue", "RabbitMQ Queue");
|
|
22
|
+
|
|
23
|
+
cluster(consumers, runtime, "RABBITMQ CONSUMERS");
|
|
24
|
+
node(worker1, consumers, "service", "Pod Worker 1");
|
|
25
|
+
node(worker2, consumers, "service", "Pod Worker 2");
|
|
26
|
+
node(worker3, consumers, "service", "Pod Worker 3");
|
|
27
|
+
|
|
28
|
+
node(database, runtime, "database", "Database");
|
|
29
|
+
|
|
30
|
+
// Every lane is structural possibility. Explicit ports keep the upper and
|
|
31
|
+
// lower routes orthogonal without changing the semantic connection identity.
|
|
32
|
+
connect(queueToWorker1, queue, worker1, orthogonal, right, left);
|
|
33
|
+
connect(queueToWorker2, queue, worker2);
|
|
34
|
+
connect(queueToWorker3, queue, worker3, orthogonal, right, left);
|
|
35
|
+
connect(worker1ToDatabase, worker1, database, orthogonal, right, left);
|
|
36
|
+
connect(worker2ToDatabase, worker2, database);
|
|
37
|
+
connect(worker3ToDatabase, worker3, database, orthogonal, right, left);
|
|
38
|
+
|
|
39
|
+
message(job101, queue, "101");
|
|
40
|
+
message(job102, queue, "102");
|
|
41
|
+
message(job103, queue, "103");
|
|
42
|
+
|
|
43
|
+
hidden(kicker); hidden(headline); hidden(caption);
|
|
44
|
+
hidden(runtime.nodes); hidden(consumers.parts);
|
|
45
|
+
hidden(job101.parts); hidden(job102.parts); hidden(job103.parts);
|
|
46
|
+
untraced(runtime.connections);
|
|
47
|
+
|
|
48
|
+
step("queue-and-consumer-pool") {
|
|
49
|
+
par {
|
|
50
|
+
show(kicker, 0.30); show(headline, 0.45); show(caption, 0.40);
|
|
51
|
+
show(queue, 0.35);
|
|
52
|
+
show(consumers.parts, 0.45);
|
|
53
|
+
stagger(0.10) {
|
|
54
|
+
show(worker1, 0.32);
|
|
55
|
+
show(worker2, 0.32);
|
|
56
|
+
show(worker3, 0.32);
|
|
57
|
+
}
|
|
58
|
+
say(caption, "The queue and three workers are structure only. No delivery policy is inferred from their icons.", 0.40);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
wait(0.25);
|
|
62
|
+
|
|
63
|
+
step("shared-database") {
|
|
64
|
+
par {
|
|
65
|
+
show(database, 0.38);
|
|
66
|
+
draw(runtime.connections, 1.10, smooth);
|
|
67
|
+
say(caption, "Each worker can consume from RabbitMQ and write its result to the same database.", 0.40);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
wait(0.35);
|
|
71
|
+
|
|
72
|
+
step("message-101-selects-worker-2") {
|
|
73
|
+
par {
|
|
74
|
+
seq {
|
|
75
|
+
show(job101.parts, 0.18);
|
|
76
|
+
route(job101, queueToWorker2, 0.90, linear);
|
|
77
|
+
route(job101, worker2ToDatabase, 0.90, linear);
|
|
78
|
+
}
|
|
79
|
+
say(caption, "Message 101 is delivered to Worker 2 only. The upper and lower consumer routes stay cold.", 0.40);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
wait(0.35);
|
|
83
|
+
|
|
84
|
+
step("message-102-selects-worker-1") {
|
|
85
|
+
par {
|
|
86
|
+
fade(job101.parts, 0.20);
|
|
87
|
+
fade(queueToWorker2.hot, 0.25); fade(worker2ToDatabase.hot, 0.25);
|
|
88
|
+
seq {
|
|
89
|
+
show(job102.parts, 0.18);
|
|
90
|
+
route(job102, queueToWorker1, 1.05, linear);
|
|
91
|
+
route(job102, worker1ToDatabase, 1.05, linear);
|
|
92
|
+
}
|
|
93
|
+
say(caption, "The next message can select Worker 1. Orthogonal turns preserve the same moving identity.", 0.40);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
wait(0.35);
|
|
97
|
+
|
|
98
|
+
step("message-103-selects-worker-3") {
|
|
99
|
+
par {
|
|
100
|
+
fade(job102.parts, 0.20);
|
|
101
|
+
fade(queueToWorker1.hot, 0.25); fade(worker1ToDatabase.hot, 0.25);
|
|
102
|
+
seq {
|
|
103
|
+
show(job103.parts, 0.18);
|
|
104
|
+
route(job103, queueToWorker3, 1.05, linear);
|
|
105
|
+
route(job103, worker3ToDatabase, 1.05, linear);
|
|
106
|
+
}
|
|
107
|
+
say(caption, "Message 103 selects Worker 3: three jobs were shared, never broadcast as three copies.", 0.40);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
wait(0.45);
|
|
111
|
+
|
|
112
|
+
step("takeaway") {
|
|
113
|
+
par {
|
|
114
|
+
pulse(queue, 0.65); pulse(consumers.parts, 0.75); pulse(database, 0.65);
|
|
115
|
+
say(caption, "Manic does not guess RabbitMQ semantics—the creator explicitly authors each selected delivery.", 0.45);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
wait(1.30);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Tables — a ruled grid of entries with row/column headers, manic's Table /
|
|
2
|
+
// MathTable / IntegerTable. This is an addition table: each body cell is
|
|
3
|
+
// row + column. We reveal it, then "look up" 2 + 5 by flashing that row and
|
|
4
|
+
// column and lighting the answer — a demo of the table's tag addressing
|
|
5
|
+
// (row{i} / col{j} / the labels / the grid lines are all recolourable).
|
|
6
|
+
//
|
|
7
|
+
// manic examples/table.manic
|
|
8
|
+
// manic examples/table.manic --record out --fps 60
|
|
9
|
+
|
|
10
|
+
title("Tables");
|
|
11
|
+
canvas(1280, 720);
|
|
12
|
+
|
|
13
|
+
text(head, (640, 110), "a grid you can read by row and column");
|
|
14
|
+
display(head); color(head, cyan); size(head, 28); hidden(head);
|
|
15
|
+
text(cap, (640, 620), ""); color(cap, dim); size(cap, 24);
|
|
16
|
+
|
|
17
|
+
// body cells are the sums; headers are the addends (top-left corner is blank)
|
|
18
|
+
table(t, "0 5 10; 2 7 12; 4 9 14", (640, 372), 120, 78, "0 5 10", "0 2 4");
|
|
19
|
+
untraced(t.lines);
|
|
20
|
+
hidden(t.labels); hidden(t.entries);
|
|
21
|
+
|
|
22
|
+
// --- reveal ---
|
|
23
|
+
show(head, 0.5);
|
|
24
|
+
say(cap, "rule the grid, then fill it in");
|
|
25
|
+
draw(t.lines, 1.0);
|
|
26
|
+
show(t.labels, 0.5);
|
|
27
|
+
show(t.entries, 0.5);
|
|
28
|
+
wait(0.5);
|
|
29
|
+
|
|
30
|
+
// --- a lookup: 2 + 5 = 7 ---
|
|
31
|
+
section("Look it up");
|
|
32
|
+
say(cap, "read a cell as row + column");
|
|
33
|
+
par { flash(t.rowlabel1, lime); flash(t.collabel1, lime); }
|
|
34
|
+
say(cap, "row 2, column 5 ...");
|
|
35
|
+
par { flash(t.row1, cyan); flash(t.col1, cyan); }
|
|
36
|
+
say(cap, "2 + 5 = 7");
|
|
37
|
+
recolor(t.r1c1, lime, 0.3);
|
|
38
|
+
pulse(t.r1c1);
|
|
39
|
+
wait(1.4);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Table + Braces — a quarterly sales table, annotated with curly braces that
|
|
2
|
+
// group its columns (the four quarters into two halves of the year) and its
|
|
3
|
+
// rows (the two regions). A practical pattern: use a table for the data and
|
|
4
|
+
// braces to call out how its rows/columns cluster.
|
|
5
|
+
//
|
|
6
|
+
// The brace coordinates are aligned to the table's grid lines by hand — the
|
|
7
|
+
// table is centred at (640,360) with 110x70 cells, so its vertical rules fall
|
|
8
|
+
// at x = 365 + k*110 and its rows span y = 325..465.
|
|
9
|
+
//
|
|
10
|
+
// manic examples/table_braces.manic
|
|
11
|
+
// manic examples/table_braces.manic --record out --fps 60
|
|
12
|
+
|
|
13
|
+
title("Sales by Region");
|
|
14
|
+
canvas(1280, 720);
|
|
15
|
+
|
|
16
|
+
text(head, (640, 96), "a data table, with its groups braced");
|
|
17
|
+
display(head); color(head, cyan); size(head, 26); hidden(head);
|
|
18
|
+
text(cap, (640, 640), ""); color(cap, dim); size(cap, 24);
|
|
19
|
+
|
|
20
|
+
// rows = regions, columns = quarters; body cells are sales (in $k)
|
|
21
|
+
table(t, "12 15 18 20; 9 11 14 16", (640, 360), 110, 70, "Q1 Q2 Q3 Q4", "North South");
|
|
22
|
+
untraced(t.lines);
|
|
23
|
+
hidden(t.labels); hidden(t.entries);
|
|
24
|
+
|
|
25
|
+
// column braces over the header row (bulge up: points run right -> left)
|
|
26
|
+
bracelabel(h1, (695, 248), (475, 248), "H1", 26); color(h1, magenta); hidden(h1);
|
|
27
|
+
bracelabel(h2, (915, 248), (695, 248), "H2", 26); color(h2, lime); hidden(h2);
|
|
28
|
+
|
|
29
|
+
// a vertical brace to the left of the row labels, grouping the two regions
|
|
30
|
+
bracelabel(reg, (356, 325), (356, 465), "Regions", 26); color(reg, cyan); hidden(reg);
|
|
31
|
+
|
|
32
|
+
// --- reveal the table ---
|
|
33
|
+
show(head, 0.5);
|
|
34
|
+
say(cap, "quarterly sales for two regions");
|
|
35
|
+
draw(t.lines, 1.0);
|
|
36
|
+
show(t.labels, 0.5);
|
|
37
|
+
show(t.entries, 0.5);
|
|
38
|
+
wait(0.4);
|
|
39
|
+
|
|
40
|
+
// --- brace the columns into halves of the year ---
|
|
41
|
+
section("Halves of the year");
|
|
42
|
+
say(cap, "Q1-Q2 are the first half, Q3-Q4 the second");
|
|
43
|
+
par { flash(t.col0, magenta); flash(t.col1, magenta); }
|
|
44
|
+
show(h1, 0.5);
|
|
45
|
+
par { flash(t.col2, lime); flash(t.col3, lime); }
|
|
46
|
+
show(h2, 0.5);
|
|
47
|
+
wait(0.4);
|
|
48
|
+
|
|
49
|
+
// --- brace the rows into regions ---
|
|
50
|
+
section("The regions");
|
|
51
|
+
say(cap, "and the two rows are the regions");
|
|
52
|
+
par { flash(t.rowlabel0, cyan); flash(t.rowlabel1, cyan); }
|
|
53
|
+
show(reg, 0.6);
|
|
54
|
+
wait(1.4);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// tangent-length-short — 9:16 quiz Short (~23s): tangent from an external
|
|
2
|
+
// point. Radius 5, distance 13 - the hidden 5-12-13 right triangle. The
|
|
3
|
+
// tangent line and its touch point come from the geo kit (exact, not eyeballed).
|
|
4
|
+
title("The Tangent Length Trick");
|
|
5
|
+
canvas("9:16");
|
|
6
|
+
template("black");
|
|
7
|
+
|
|
8
|
+
creator(me, "@anish2good name=Science_Lab yt=zarigatongy x=@anish2good web=8gwifi.org/manic footer=social accent=cyan");
|
|
9
|
+
|
|
10
|
+
quiz(q, `$P$ is 13 cm from the centre of a circle of radius 5 cm. How long is the tangent from $P$?`, "layout=media-first");
|
|
11
|
+
option(q, "8 cm");
|
|
12
|
+
option(q, "11 cm");
|
|
13
|
+
option(q, "12 cm", correct);
|
|
14
|
+
option(q, `$\sqrt{194}$ cm`);
|
|
15
|
+
timing(q, "ask=4 options=4 think=8 reveal=3 hold=4");
|
|
16
|
+
explain(q, `Radius meets tangent at $90^\circ$, so $x^2 = 13^2 - 5^2 = 144$: the 5-12-13 triple.`);
|
|
17
|
+
|
|
18
|
+
// ---------- the figure (unit: 28 px per cm) ----------
|
|
19
|
+
point(O, (cx - 160, 900), "O"); size(O.label, 30); hidden(O);
|
|
20
|
+
point(P, (cx + 204, 900), "P"); size(P.label, 34); hidden(P);
|
|
21
|
+
point(Q, (cx - 20, 900)); hidden(Q); // helper: a point on the circle
|
|
22
|
+
circle2(circ, O, Q); outlined(circ); stroke(circ, 3); untraced(circ);
|
|
23
|
+
tangent(T, P, O, Q); hidden(T0); hidden(T1); // touch points, kit-computed
|
|
24
|
+
segment(hyp, O, P); stroke(hyp, 3); dashed(hyp); color(hyp, dim); untraced(hyp);
|
|
25
|
+
segment(rad, O, T0); stroke(rad, 4); color(rad, gold); untraced(rad);
|
|
26
|
+
segment(tanseg, P, T0); stroke(tanseg, 4); color(tanseg, cyan); untraced(tanseg);
|
|
27
|
+
rightangle(ra, O, T0, P); color(ra, magenta); hidden(ra);
|
|
28
|
+
text(n5, (cx - 185, 828), "5"); size(n5, 32); color(n5, gold); hidden(n5);
|
|
29
|
+
text(n13, (cx + 22, 942), "13"); size(n13, 32); color(n13, dim); hidden(n13);
|
|
30
|
+
text(nx, (cx + 70, 786), "x = ?"); size(nx, 32); color(nx, cyan); hidden(nx);
|
|
31
|
+
text(n12, (cx + 70, 786), "x = 12"); size(n12, 32); color(n12, lime); hidden(n12);
|
|
32
|
+
|
|
33
|
+
socials(me);
|
|
34
|
+
|
|
35
|
+
// ================= timeline =================
|
|
36
|
+
par {
|
|
37
|
+
run(q);
|
|
38
|
+
seq {
|
|
39
|
+
wait(0.8);
|
|
40
|
+
par { show(O, 0.4); show(P, 0.4); }
|
|
41
|
+
draw(circ, 1.2);
|
|
42
|
+
par { draw(hyp, 0.8); show(n13, 0.4); }
|
|
43
|
+
show(T0, 0.4);
|
|
44
|
+
draw(tanseg, 0.9);
|
|
45
|
+
show(nx, 0.4);
|
|
46
|
+
par { draw(rad, 0.8); show(n5, 0.4); }
|
|
47
|
+
// the given right angle IS the hint - show it during the think phase
|
|
48
|
+
show(ra, 0.4);
|
|
49
|
+
pulse(ra, 0.8);
|
|
50
|
+
// answer stamps in at the reveal (t = 16s)
|
|
51
|
+
wait(7.2);
|
|
52
|
+
par { fade(nx, 0.3); show(n12, 0.4); }
|
|
53
|
+
flash(tanseg, lime);
|
|
54
|
+
cue(pop);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
wait(0.5);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
title("The Tangent Line — a curve's slope, made visible");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
|
|
4
|
+
text(hdr, (cx, 60), "The slope of sin x, everywhere at once");
|
|
5
|
+
size(hdr, 30); color(hdr, cyan); bold(hdr); display(hdr); hidden(hdr);
|
|
6
|
+
|
|
7
|
+
// the curve — plot remembers its function, so tangent can ask it questions.
|
|
8
|
+
// center the domain 0..6.3 across the canvas (midpoint x=3.15 sits at cx)
|
|
9
|
+
plot(f, (cx - 440, cy + 40), 140, 120, "sin(x)", (0, 6.3));
|
|
10
|
+
color(f, cyan); stroke(f, 3); untraced(f);
|
|
11
|
+
|
|
12
|
+
// a tangent that touches f where x = 0.5 (line + contact dot, one call)
|
|
13
|
+
tangent(tan, f, 0.5, 260);
|
|
14
|
+
color(tan, gold); untraced(tan);
|
|
15
|
+
|
|
16
|
+
text(cap, (cx, h - 60), "watch the tilt follow the curve");
|
|
17
|
+
size(cap, 20); color(cap, dim); display(cap); hidden(cap);
|
|
18
|
+
|
|
19
|
+
// ---- timeline ----
|
|
20
|
+
show(hdr, 0.5);
|
|
21
|
+
draw(f, 1.4);
|
|
22
|
+
show(tan, 0.6);
|
|
23
|
+
show(cap, 0.4);
|
|
24
|
+
wait(0.4);
|
|
25
|
+
|
|
26
|
+
// slide the touch point along the whole curve — the slope is derived live
|
|
27
|
+
to(tan, x, 5.8, 5);
|
|
28
|
+
wait(0.3);
|
|
29
|
+
to(tan, x, 1.6, 2.5); // back toward the first peak, where the slope is 0
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Tangent Lines — the two tangents from an external point P to a circle, and
|
|
2
|
+
// the theorem that each tangent is perpendicular to the radius at its touch
|
|
3
|
+
// point. Everything is a DYNAMIC construction: move P and the touch points,
|
|
4
|
+
// tangent lines, radii, and right-angle marks all recompute live.
|
|
5
|
+
//
|
|
6
|
+
// New geo builtins: circle2 (circle by centre + a point on it), tangent
|
|
7
|
+
// (touch points from an external point), plus segment/rightangle tracking them.
|
|
8
|
+
//
|
|
9
|
+
// manic examples/tangents.manic
|
|
10
|
+
|
|
11
|
+
title("Tangent Lines");
|
|
12
|
+
canvas("16:9");
|
|
13
|
+
|
|
14
|
+
text(head, (cx, 96), "two tangents from a point -- each meets the radius at 90 degrees");
|
|
15
|
+
color(head, cyan); size(head, 24); hidden(head);
|
|
16
|
+
|
|
17
|
+
point(O, (520, 400), "O");
|
|
18
|
+
point(A, (520, 200)); // a point on the circle -> radius 200
|
|
19
|
+
point(P, (940, 380), "P");
|
|
20
|
+
hidden(A); // A just defines the radius; don't show it
|
|
21
|
+
|
|
22
|
+
circle2(circ, O, A); color(circ, dim); stroke(circ, 2); untraced(circ);
|
|
23
|
+
|
|
24
|
+
// the two touch points t0 / t1, and the tangent lines to them
|
|
25
|
+
tangent(t, P, O, A);
|
|
26
|
+
segment(l0, P, t0); color(l0, cyan); stroke(l0, 3); untraced(l0);
|
|
27
|
+
segment(l1, P, t1); color(l1, cyan); stroke(l1, 3); untraced(l1);
|
|
28
|
+
|
|
29
|
+
// radius to each touch point + the right-angle marks
|
|
30
|
+
segment(r0, O, t0); color(r0, dim); untraced(r0);
|
|
31
|
+
segment(r1, O, t1); color(r1, dim); untraced(r1);
|
|
32
|
+
rightangle(ra0, O, t0, P); color(ra0, lime); hidden(ra0);
|
|
33
|
+
rightangle(ra1, O, t1, P); color(ra1, lime); hidden(ra1);
|
|
34
|
+
|
|
35
|
+
// --- reveal ---
|
|
36
|
+
show(head, 0.5);
|
|
37
|
+
draw(circ, 0.8);
|
|
38
|
+
show(O, 0.3); show(P, 0.3);
|
|
39
|
+
section("The tangents");
|
|
40
|
+
par { draw(l0, 0.7); draw(l1, 0.7); }
|
|
41
|
+
show(t0, 0.3); show(t1, 0.3);
|
|
42
|
+
section("Radius meets tangent");
|
|
43
|
+
par { draw(r0, 0.5); draw(r1, 0.5); }
|
|
44
|
+
par { show(ra0, 0.4); show(ra1, 0.4); }
|
|
45
|
+
wait(0.6);
|
|
46
|
+
|
|
47
|
+
// --- prove it's dynamic: move P, everything tracks ---
|
|
48
|
+
section("Move the point");
|
|
49
|
+
move(P, (820, 230), 1.6, smooth);
|
|
50
|
+
wait(0.4);
|
|
51
|
+
move(P, (980, 470), 1.6, smooth);
|
|
52
|
+
wait(0.8);
|
|
53
|
+
move(P, (940, 380), 1.2, smooth);
|
|
54
|
+
wait(1.0);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
title("Taylor series — polynomials closing in on a curve");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
|
|
4
|
+
let ox = cx; // x=0 at centre
|
|
5
|
+
let oy = cy + 10;
|
|
6
|
+
|
|
7
|
+
text(hdr, (cx, 52), "Add one more term, and the polynomial hugs more of the curve");
|
|
8
|
+
size(hdr, 24); color(hdr, cyan); bold(hdr); display(hdr); hidden(hdr);
|
|
9
|
+
|
|
10
|
+
axes(ax, (ox, oy), 640, 260, 1);
|
|
11
|
+
color(ax, dim); untraced(ax);
|
|
12
|
+
|
|
13
|
+
// the target function
|
|
14
|
+
plot(f, (ox, oy), 95, 120, "sin(x)", (-6.2, 6.2));
|
|
15
|
+
color(f, cyan); stroke(f, 5); untraced(f);
|
|
16
|
+
|
|
17
|
+
// Taylor polynomials about x = 0, growing in degree
|
|
18
|
+
taylor(p1, f, 0, 1);
|
|
19
|
+
color(p1, dim); stroke(p1, 3); untraced(p1);
|
|
20
|
+
taylor(p3, f, 0, 3);
|
|
21
|
+
color(p3, gold); stroke(p3, 3); untraced(p3);
|
|
22
|
+
taylor(p5, f, 0, 5);
|
|
23
|
+
color(p5, magenta); stroke(p5, 3); untraced(p5);
|
|
24
|
+
taylor(p7, f, 0, 7);
|
|
25
|
+
color(p7, lime); stroke(p7, 3); untraced(p7);
|
|
26
|
+
|
|
27
|
+
text(l1, (cx + 300, 150), "n = 1 (a line)");
|
|
28
|
+
size(l1, 18); color(l1, dim); display(l1); hidden(l1);
|
|
29
|
+
text(l3, (cx + 300, 186), "n = 3");
|
|
30
|
+
size(l3, 18); color(l3, gold); display(l3); hidden(l3);
|
|
31
|
+
text(l5, (cx + 300, 222), "n = 5");
|
|
32
|
+
size(l5, 18); color(l5, magenta); display(l5); hidden(l5);
|
|
33
|
+
text(l7, (cx + 300, 258), "n = 7");
|
|
34
|
+
size(l7, 18); color(l7, lime); display(l7); hidden(l7);
|
|
35
|
+
|
|
36
|
+
// ---- timeline ----
|
|
37
|
+
show(hdr, 0.6);
|
|
38
|
+
draw(ax, 0.7);
|
|
39
|
+
draw(f, 1.6);
|
|
40
|
+
wait(0.3);
|
|
41
|
+
draw(p1, 0.8); show(l1, 0.3); wait(0.3);
|
|
42
|
+
draw(p3, 0.9); show(l3, 0.3); wait(0.3);
|
|
43
|
+
draw(p5, 1.0); show(l5, 0.3); wait(0.3);
|
|
44
|
+
draw(p7, 1.1); show(l7, 0.3);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Terminal Boot — a fake boot sequence typed out line by line, ending at a live
|
|
2
|
+
// prompt with a blinking-style cursor. Shows off the `cursor` modifier, `type`
|
|
3
|
+
// typewriter reveal, an author-set `masthead`, and the `terminal` template.
|
|
4
|
+
//
|
|
5
|
+
// manic examples/terminal_boot.manic
|
|
6
|
+
// manic examples/terminal_boot.manic --record out --fps 60
|
|
7
|
+
|
|
8
|
+
title("manic");
|
|
9
|
+
canvas("16:9");
|
|
10
|
+
template("terminal");
|
|
11
|
+
masthead("manic ~ %", "READY"); // your own header text (no engine branding)
|
|
12
|
+
|
|
13
|
+
text(l1, (cx, 210), ""); color(l1, lime); size(l1, 24);
|
|
14
|
+
text(l2, (cx, 260), ""); color(l2, cyan); size(l2, 24); hidden(l2);
|
|
15
|
+
text(l3, (cx, 310), ""); color(l3, cyan); size(l3, 24); hidden(l3);
|
|
16
|
+
text(l4, (cx, 360), ""); color(l4, lime); size(l4, 24); hidden(l4);
|
|
17
|
+
text(prompt, (cx, 440), ""); color(prompt, fg); size(prompt, 28); display(prompt);
|
|
18
|
+
hidden(prompt); cursor(prompt); // only the live prompt gets the cursor
|
|
19
|
+
|
|
20
|
+
// --- boot log ---
|
|
21
|
+
say(l1, "> initializing manic engine", 0.1);
|
|
22
|
+
type(l1, 1.0);
|
|
23
|
+
|
|
24
|
+
show(l2, 0.2);
|
|
25
|
+
say(l2, " loaded kits: std math geo algo brand", 0.1);
|
|
26
|
+
type(l2, 1.3);
|
|
27
|
+
|
|
28
|
+
show(l3, 0.2);
|
|
29
|
+
say(l3, " timeline: deterministic @ 60fps", 0.1);
|
|
30
|
+
type(l3, 1.0);
|
|
31
|
+
|
|
32
|
+
show(l4, 0.2);
|
|
33
|
+
say(l4, " ready.", 0.1);
|
|
34
|
+
type(l4, 0.5);
|
|
35
|
+
|
|
36
|
+
// --- the prompt, awaiting input ---
|
|
37
|
+
show(prompt, 0.2);
|
|
38
|
+
say(prompt, "manic ~ % render my_idea", 0.1);
|
|
39
|
+
type(prompt, 1.2);
|
|
40
|
+
wait(1.6);
|