@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,61 @@
|
|
|
1
|
+
title("Why Thanos Feels Powerful");
|
|
2
|
+
canvas("9:16");
|
|
3
|
+
template("shorts");
|
|
4
|
+
|
|
5
|
+
creator(brand,"name=Endgame_Feat_Breakdown footer=none safe=shorts accent=violet secondary=gold");
|
|
6
|
+
|
|
7
|
+
text(head,(cx,110),"Why Thanos feels unstoppable"); size(head,58); color(head,fg); hidden(head);
|
|
8
|
+
text(sub,(cx,175),"Endgame battle-feat breakdown"); size(sub,30); color(sub,dim); hidden(sub);
|
|
9
|
+
|
|
10
|
+
equation(thesis,(cx,315),`\textcolor{violet}{\mathrm{POWER}} \approx \textcolor{gold}{\mathrm{STRENGTH}} + \textcolor{cyan}{\mathrm{DURABILITY}} + \textcolor{lime}{\mathrm{CONTROL}}`,52);
|
|
11
|
+
hidden(thesis);
|
|
12
|
+
|
|
13
|
+
line(rule,(cx-300,380),(cx+300,380)); color(rule,dim); hidden(rule);
|
|
14
|
+
|
|
15
|
+
text(cap,(cx,h-120),""); size(cap,30); color(cap,dim); sticky(cap); hidden(cap);
|
|
16
|
+
|
|
17
|
+
rect(r1,(cx,540),920,150); outlined(r1); color(r1,violet); hidden(r1);
|
|
18
|
+
rect(bar1,(170,540),12,112); color(bar1,violet); hidden(bar1);
|
|
19
|
+
text(n1,(245,520),"01"); size(n1,42); color(n1,violet); hidden(n1);
|
|
20
|
+
text(d1,(320,515),"RAW STRENGTH\nHe wins the shove and the clinch."); size(d1,33); color(d1,fg); hidden(d1);
|
|
21
|
+
tag(r1,feat1); tag(bar1,feat1); tag(n1,feat1); tag(d1,feat1);
|
|
22
|
+
|
|
23
|
+
rect(r2,(cx,740),920,150); outlined(r2); color(r2,gold); hidden(r2);
|
|
24
|
+
rect(bar2,(170,740),12,112); color(bar2,gold); hidden(bar2);
|
|
25
|
+
text(n2,(245,720),"02"); size(n2,42); color(n2,gold); hidden(n2);
|
|
26
|
+
text(d2,(320,715),"DURABILITY\nHe keeps fighting after heavy hits."); size(d2,33); color(d2,fg); hidden(d2);
|
|
27
|
+
tag(r2,feat2); tag(bar2,feat2); tag(n2,feat2); tag(d2,feat2);
|
|
28
|
+
|
|
29
|
+
rect(r3,(cx,940),920,150); outlined(r3); color(r3,cyan); hidden(r3);
|
|
30
|
+
rect(bar3,(170,940),12,112); color(bar3,cyan); hidden(bar3);
|
|
31
|
+
text(n3,(245,920),"03"); size(n3,42); color(n3,cyan); hidden(n3);
|
|
32
|
+
text(d3,(320,915),"CONTROL\nWeapon skill, timing, and battlefield pressure."); size(d3,33); color(d3,fg); hidden(d3);
|
|
33
|
+
tag(r3,feat3); tag(bar3,feat3); tag(n3,feat3); tag(d3,feat3);
|
|
34
|
+
|
|
35
|
+
rect(endbox,(cx,1160),920,138); outlined(endbox); color(endbox,fg); hidden(endbox);
|
|
36
|
+
text(endtxt,(cx,1140),"THAT COMBO IS WHY HE FEELS SO DANGEROUS"); size(endtxt,30); color(endtxt,fg); hidden(endtxt);
|
|
37
|
+
text(endsub,(cx,1190),"Not one power — a stack of advantages."); size(endsub,28); color(endsub,dim); hidden(endsub);
|
|
38
|
+
tag(endbox,final); tag(endtxt,final); tag(endsub,final);
|
|
39
|
+
|
|
40
|
+
show(head,0.45);
|
|
41
|
+
show(sub,0.35);
|
|
42
|
+
show(thesis,0.55);
|
|
43
|
+
show(rule,0.25);
|
|
44
|
+
show(cap,0.2);
|
|
45
|
+
say(cap,"He looks unstoppable because the whole fight stacks in his favor.");
|
|
46
|
+
wait(0.25);
|
|
47
|
+
|
|
48
|
+
show(feat1,0.45);
|
|
49
|
+
say(cap,"First: raw strength. He can overpower the push.");
|
|
50
|
+
wait(0.2);
|
|
51
|
+
|
|
52
|
+
show(feat2,0.45);
|
|
53
|
+
say(cap,"Second: durability. He absorbs punishment and keeps moving.");
|
|
54
|
+
wait(0.2);
|
|
55
|
+
|
|
56
|
+
show(feat3,0.45);
|
|
57
|
+
say(cap,"Third: control. He uses weapons, timing, and space.");
|
|
58
|
+
wait(0.2);
|
|
59
|
+
|
|
60
|
+
show(final,0.5);
|
|
61
|
+
say(cap,"That is why the Endgame battle feels so overwhelming.");
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
// How text works — a guide you can watch
|
|
2
|
+
//
|
|
3
|
+
// Text is the one primitive every scene uses, and the one with the most behaviour hiding behind it.
|
|
4
|
+
// This is that behaviour, demonstrated: what a bare `text` does, what happens to a line too long for
|
|
5
|
+
// where it sits, how to pin an edge, how to set line height, the two different ways to run text
|
|
6
|
+
// downwards, and why `caption` exists beside `text` at all.
|
|
7
|
+
//
|
|
8
|
+
// Each section shows the call and the result side by side, so the guide is also its own worked
|
|
9
|
+
// example — read the source next to the frame it produces.
|
|
10
|
+
|
|
11
|
+
title("how text works");
|
|
12
|
+
canvas("16:9");
|
|
13
|
+
template("black");
|
|
14
|
+
|
|
15
|
+
text(brand, (640, 26), "maniclang.com");
|
|
16
|
+
display(brand);
|
|
17
|
+
size(brand, 15);
|
|
18
|
+
color(brand, dim);
|
|
19
|
+
|
|
20
|
+
text(head, (640, 74), "How text works");
|
|
21
|
+
size(head, 34);
|
|
22
|
+
bold(head);
|
|
23
|
+
color(head, fg);
|
|
24
|
+
|
|
25
|
+
// ── 1 · the default ──
|
|
26
|
+
|
|
27
|
+
text(s1, (640, 150), "1 · a bare label is one line, centred on its point");
|
|
28
|
+
size(s1, 20);
|
|
29
|
+
color(s1, gold);
|
|
30
|
+
hidden(s1);
|
|
31
|
+
|
|
32
|
+
text(c1, (640, 200), "text(hello, (640, 300), \"one line\", 30)");
|
|
33
|
+
size(c1, 19);
|
|
34
|
+
color(c1, dim);
|
|
35
|
+
hidden(c1);
|
|
36
|
+
|
|
37
|
+
text(hello, (640, 300), "one line");
|
|
38
|
+
size(hello, 30);
|
|
39
|
+
color(hello, fg);
|
|
40
|
+
hidden(hello);
|
|
41
|
+
|
|
42
|
+
dot(anchor1, (640, 300), 4);
|
|
43
|
+
color(anchor1, coral);
|
|
44
|
+
hidden(anchor1);
|
|
45
|
+
|
|
46
|
+
// ── 2 · too long for its room ──
|
|
47
|
+
|
|
48
|
+
text(s2, (640, 150), "2 · a line too long for its room wraps — it is never clipped");
|
|
49
|
+
size(s2, 20);
|
|
50
|
+
color(s2, gold);
|
|
51
|
+
hidden(s2);
|
|
52
|
+
|
|
53
|
+
text(c2, (640, 200), "no wrap set: the renderer uses the room the point actually has");
|
|
54
|
+
size(c2, 19);
|
|
55
|
+
color(c2, dim);
|
|
56
|
+
hidden(c2);
|
|
57
|
+
|
|
58
|
+
text(longone, (400, 320), "This label sits left of centre, so it can only use twice its distance to the near edge — and that is exactly what it wraps to.");
|
|
59
|
+
size(longone, 21);
|
|
60
|
+
color(longone, cyan);
|
|
61
|
+
hidden(longone);
|
|
62
|
+
|
|
63
|
+
rect(room, (400, 320), 760, 130);
|
|
64
|
+
outlined(room);
|
|
65
|
+
outline(room, dim);
|
|
66
|
+
stroke(room, 1);
|
|
67
|
+
hidden(room);
|
|
68
|
+
|
|
69
|
+
text(c2b, (640, 470), "wrap(id, 300) chooses a narrower column than the frame allows");
|
|
70
|
+
size(c2b, 19);
|
|
71
|
+
color(c2b, dim);
|
|
72
|
+
hidden(c2b);
|
|
73
|
+
|
|
74
|
+
text(narrow, (980, 340), "A column you chose yourself, three hundred pixels wide.");
|
|
75
|
+
size(narrow, 19);
|
|
76
|
+
color(narrow, magenta);
|
|
77
|
+
wrap(narrow, 300);
|
|
78
|
+
hidden(narrow);
|
|
79
|
+
|
|
80
|
+
// ── 3 · which edge is pinned ──
|
|
81
|
+
|
|
82
|
+
text(s3, (640, 150), "3 · align pins an edge to the point");
|
|
83
|
+
size(s3, 20);
|
|
84
|
+
color(s3, gold);
|
|
85
|
+
hidden(s3);
|
|
86
|
+
|
|
87
|
+
line(rule3, (640, 230), (640, 560));
|
|
88
|
+
color(rule3, dim);
|
|
89
|
+
stroke(rule3, 1);
|
|
90
|
+
untraced(rule3);
|
|
91
|
+
|
|
92
|
+
text(al, (640, 270), "align(id, left)\nboth lines start here");
|
|
93
|
+
size(al, 21);
|
|
94
|
+
color(al, cyan);
|
|
95
|
+
align(al, left);
|
|
96
|
+
hidden(al);
|
|
97
|
+
|
|
98
|
+
text(ac, (640, 390), "align(id, center)\nthe default");
|
|
99
|
+
size(ac, 21);
|
|
100
|
+
color(ac, fg);
|
|
101
|
+
hidden(ac);
|
|
102
|
+
|
|
103
|
+
text(ar, (640, 510), "align(id, right)\nboth lines end here");
|
|
104
|
+
size(ar, 21);
|
|
105
|
+
color(ar, coral);
|
|
106
|
+
align(ar, right);
|
|
107
|
+
hidden(ar);
|
|
108
|
+
|
|
109
|
+
// ── 4 · line height ──
|
|
110
|
+
|
|
111
|
+
text(s4, (640, 150), "4 · leading is line height, as a multiple of the size");
|
|
112
|
+
size(s4, 20);
|
|
113
|
+
color(s4, gold);
|
|
114
|
+
hidden(s4);
|
|
115
|
+
|
|
116
|
+
text(l1, (300, 380), "leading\n1.0\ntight");
|
|
117
|
+
size(l1, 22);
|
|
118
|
+
color(l1, cyan);
|
|
119
|
+
leading(l1, 1.0);
|
|
120
|
+
hidden(l1);
|
|
121
|
+
|
|
122
|
+
text(l2, (640, 380), "default\n1.4\nprose");
|
|
123
|
+
size(l2, 22);
|
|
124
|
+
color(l2, fg);
|
|
125
|
+
hidden(l2);
|
|
126
|
+
|
|
127
|
+
text(l3, (980, 380), "leading\n2.2\nairy");
|
|
128
|
+
size(l3, 22);
|
|
129
|
+
color(l3, magenta);
|
|
130
|
+
leading(l3, 2.2);
|
|
131
|
+
hidden(l3);
|
|
132
|
+
|
|
133
|
+
// ── 5 · downwards, two different ways ──
|
|
134
|
+
|
|
135
|
+
text(s5, (640, 150), "5 · downwards: rotate the line, or stack the letters");
|
|
136
|
+
size(s5, 20);
|
|
137
|
+
color(s5, gold);
|
|
138
|
+
hidden(s5);
|
|
139
|
+
|
|
140
|
+
text(c5a, (300, 250), "rot(id, -90)");
|
|
141
|
+
size(c5a, 19);
|
|
142
|
+
color(c5a, dim);
|
|
143
|
+
hidden(c5a);
|
|
144
|
+
|
|
145
|
+
text(rotated, (300, 420), "ROTATED", 34);
|
|
146
|
+
color(rotated, cyan);
|
|
147
|
+
rot(rotated, -90);
|
|
148
|
+
hidden(rotated);
|
|
149
|
+
|
|
150
|
+
text(c5b, (640, 250), "rot(id, 90)");
|
|
151
|
+
size(c5b, 19);
|
|
152
|
+
color(c5b, dim);
|
|
153
|
+
hidden(c5b);
|
|
154
|
+
|
|
155
|
+
text(rotated2, (640, 420), "ROTATED", 34);
|
|
156
|
+
color(rotated2, teal);
|
|
157
|
+
rot(rotated2, 90);
|
|
158
|
+
hidden(rotated2);
|
|
159
|
+
|
|
160
|
+
text(c5c, (980, 250), "vertical(id)");
|
|
161
|
+
size(c5c, 19);
|
|
162
|
+
color(c5c, dim);
|
|
163
|
+
hidden(c5c);
|
|
164
|
+
|
|
165
|
+
text(stacked, (980, 420), "UPRIGHT", 34);
|
|
166
|
+
color(stacked, gold);
|
|
167
|
+
vertical(stacked);
|
|
168
|
+
hidden(stacked);
|
|
169
|
+
|
|
170
|
+
text(s5b, (640, 610), "the letters turn with the line, or stay the right way up — that is the whole difference");
|
|
171
|
+
size(s5b, 17);
|
|
172
|
+
color(s5b, fg);
|
|
173
|
+
hidden(s5b);
|
|
174
|
+
|
|
175
|
+
// ── 6 · caption is text per word ──
|
|
176
|
+
|
|
177
|
+
text(s6, (640, 150), "6 · caption makes one entity PER WORD, so words can be timed");
|
|
178
|
+
size(s6, 20);
|
|
179
|
+
color(s6, gold);
|
|
180
|
+
hidden(s6);
|
|
181
|
+
|
|
182
|
+
text(c6, (640, 210), "text(id, …) is one entity · caption(id, …) is {id}.w0, {id}.w1, …");
|
|
183
|
+
size(c6, 19);
|
|
184
|
+
color(c6, dim);
|
|
185
|
+
hidden(c6);
|
|
186
|
+
|
|
187
|
+
text(oneunit, (640, 320), "one entity, moves and fades as a whole");
|
|
188
|
+
size(oneunit, 22);
|
|
189
|
+
color(oneunit, cyan);
|
|
190
|
+
hidden(oneunit);
|
|
191
|
+
|
|
192
|
+
caption(perword, "one entity per word so each can be timed", (640, 440), 22, gold);
|
|
193
|
+
hidden(perword);
|
|
194
|
+
|
|
195
|
+
text(s6b, (640, 560), "which is what karaoke and wordpop need — and why a caption cannot wrap");
|
|
196
|
+
size(s6b, 17);
|
|
197
|
+
color(s6b, fg);
|
|
198
|
+
hidden(s6b);
|
|
199
|
+
|
|
200
|
+
// ── 7 · colour by hue, and per word ──
|
|
201
|
+
|
|
202
|
+
text(s7, (640, 150), "7 · hue colours text by angle — and a caption word by word");
|
|
203
|
+
size(s7, 20);
|
|
204
|
+
color(s7, gold);
|
|
205
|
+
hidden(s7);
|
|
206
|
+
|
|
207
|
+
text(c7, (640, 210), "hue(id, degrees, [saturation], [lightness]) · to(id, hue, 320, 2) cycles it");
|
|
208
|
+
size(c7, 19);
|
|
209
|
+
color(c7, dim);
|
|
210
|
+
hidden(c7);
|
|
211
|
+
|
|
212
|
+
text(h1, (330, 300), "hue(h1, 200)", 26);
|
|
213
|
+
hue(h1, 200);
|
|
214
|
+
hidden(h1);
|
|
215
|
+
|
|
216
|
+
text(h2, (950, 300), "hue(h2, 40, 0.9, 0.55)", 26);
|
|
217
|
+
hue(h2, 40, 0.9, 0.55);
|
|
218
|
+
hidden(h2);
|
|
219
|
+
|
|
220
|
+
caption(spectrum, "one hue per word across a caption", (640, 420), 26, fg);
|
|
221
|
+
for i in 0..6 { hue(spectrum.w{i}, i*54, 0.95, 0.62); }
|
|
222
|
+
hidden(spectrum);
|
|
223
|
+
|
|
224
|
+
text(s7b, (640, 530), "a caption is words, so each word can take its own colour");
|
|
225
|
+
size(s7b, 17);
|
|
226
|
+
color(s7b, fg);
|
|
227
|
+
hidden(s7b);
|
|
228
|
+
|
|
229
|
+
text(s7c, (640, 585), "gradients are shapes-and-strokes only — text is tinted, not filled");
|
|
230
|
+
size(s7c, 18);
|
|
231
|
+
color(s7c, dim);
|
|
232
|
+
hidden(s7c);
|
|
233
|
+
|
|
234
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
235
|
+
// the run
|
|
236
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
237
|
+
|
|
238
|
+
wait(0.6);
|
|
239
|
+
|
|
240
|
+
// 1 · the default
|
|
241
|
+
par { show(s1, 0.5); show(c1, 0.4); }
|
|
242
|
+
par { show(hello, 0.5); show(anchor1, 0.3); }
|
|
243
|
+
wait(2.4);
|
|
244
|
+
|
|
245
|
+
// 2 · overflow
|
|
246
|
+
par { fade(s1, 0.4); fade(c1, 0.4); fade(hello, 0.4); fade(anchor1, 0.3); }
|
|
247
|
+
par { show(s2, 0.5); show(c2, 0.4); }
|
|
248
|
+
par { show(room, 0.5); show(longone, 0.6); }
|
|
249
|
+
wait(2.6);
|
|
250
|
+
par { show(c2b, 0.4); show(narrow, 0.6); }
|
|
251
|
+
wait(2.6);
|
|
252
|
+
|
|
253
|
+
// 3 · alignment
|
|
254
|
+
par { fade(s2, 0.4); fade(c2, 0.4); fade(c2b, 0.4); fade(room, 0.4); fade(longone, 0.4); fade(narrow, 0.4); }
|
|
255
|
+
show(s3, 0.5);
|
|
256
|
+
draw(rule3, 0.6);
|
|
257
|
+
show(al, 0.5);
|
|
258
|
+
show(ac, 0.5);
|
|
259
|
+
show(ar, 0.5);
|
|
260
|
+
wait(2.6);
|
|
261
|
+
|
|
262
|
+
// 4 · leading
|
|
263
|
+
par { fade(s3, 0.4); fade(rule3, 0.4); fade(al, 0.4); fade(ac, 0.4); fade(ar, 0.4); }
|
|
264
|
+
show(s4, 0.5);
|
|
265
|
+
par { show(l1, 0.5); show(l2, 0.5); show(l3, 0.5); }
|
|
266
|
+
wait(2.6);
|
|
267
|
+
|
|
268
|
+
// 5 · downwards
|
|
269
|
+
par { fade(s4, 0.4); fade(l1, 0.4); fade(l2, 0.4); fade(l3, 0.4); }
|
|
270
|
+
show(s5, 0.5);
|
|
271
|
+
par { show(c5a, 0.4); show(rotated, 0.5); }
|
|
272
|
+
par { show(c5b, 0.4); show(rotated2, 0.5); }
|
|
273
|
+
par { show(c5c, 0.4); show(stacked, 0.5); }
|
|
274
|
+
wait(0.6);
|
|
275
|
+
show(s5b, 0.5);
|
|
276
|
+
wait(2.6);
|
|
277
|
+
|
|
278
|
+
// 6 · caption
|
|
279
|
+
par {
|
|
280
|
+
fade(s5, 0.4); fade(c5a, 0.4); fade(c5b, 0.4); fade(c5c, 0.4);
|
|
281
|
+
fade(rotated, 0.4); fade(rotated2, 0.4); fade(stacked, 0.4); fade(s5b, 0.4);
|
|
282
|
+
}
|
|
283
|
+
par { show(s6, 0.5); show(c6, 0.4); }
|
|
284
|
+
par { show(oneunit, 0.5); pulse(oneunit); }
|
|
285
|
+
wait(0.8);
|
|
286
|
+
show(perword, 0.4);
|
|
287
|
+
karaoke(perword, 3.2);
|
|
288
|
+
wait(0.4);
|
|
289
|
+
show(s6b, 0.5);
|
|
290
|
+
wait(2.4);
|
|
291
|
+
|
|
292
|
+
// 7 · hue
|
|
293
|
+
par { fade(s6, 0.4); fade(c6, 0.4); fade(oneunit, 0.4); fade(perword, 0.4); fade(s6b, 0.4); }
|
|
294
|
+
par { show(s7, 0.5); show(c7, 0.4); }
|
|
295
|
+
par { show(h1, 0.5); show(h2, 0.5); }
|
|
296
|
+
wait(0.5);
|
|
297
|
+
show(spectrum, 0.5);
|
|
298
|
+
wait(0.6);
|
|
299
|
+
par { show(s7b, 0.4); show(s7c, 0.4); }
|
|
300
|
+
to(h1, hue, 320, 2.4);
|
|
301
|
+
wait(2.6);
|
|
302
|
+
|
|
303
|
+
dot(dot, (616, 336), 6);
|
|
304
|
+
color(dot, cyan);
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// textbook-coordinate-worlds.manic — number line → coordinate plane → space
|
|
3
|
+
// ============================================================================
|
|
4
|
+
|
|
5
|
+
title("A Point Gets an Address — From 1D to 3D");
|
|
6
|
+
canvas("9:16");
|
|
7
|
+
template("blueprint");
|
|
8
|
+
watermark(manicMark, (220, 175), "Made With Manic");
|
|
9
|
+
creator(me, "@anish2good name=Manic_Math tagline=Textbooks_in_motion yt=zarigatongy x=@anish2good web=8gwifi.org/manic accent=cyan secondary=magenta footer=social safe=reels");
|
|
10
|
+
socials(me);
|
|
11
|
+
|
|
12
|
+
text(kicker,(540,164),"COORDINATE GEOMETRY"); size(kicker,21); bold(kicker); color(kicker,cyan); hidden(kicker);
|
|
13
|
+
text(headline,(540,228),"A point gains one coordinate at a time"); size(headline,32); bold(headline); hidden(headline);
|
|
14
|
+
text(phase,(540,300),"1D · THE NUMBER LINE"); size(phase,23); bold(phase); color(phase,gold); hidden(phase);
|
|
15
|
+
text(narration,(540,1328),"One direction needs one number: move three units along x."); size(narration,26); bold(narration); wrap(narration,850); hidden(narration);
|
|
16
|
+
text(principle,(540,1392),"Every new perpendicular direction adds one coordinate."); size(principle,20); color(principle,dim); hidden(principle);
|
|
17
|
+
equation(address,(540,1490),`P=\textcolor{cyan}{(3)}`,44); hidden(address);
|
|
18
|
+
text(takeaway,(540,1572),"THE POINT STAYS THE SAME · ITS ADDRESS BECOMES MORE PRECISE"); size(takeaway,18); bold(takeaway); color(takeaway,gold); hidden(takeaway);
|
|
19
|
+
|
|
20
|
+
camera3((0,0,14),(0,0,0),38);
|
|
21
|
+
|
|
22
|
+
// One persistent point begins at the origin, then gains y and z coordinates.
|
|
23
|
+
point3(P,(0,0,0),0.18); color(P,gold); hidden(P);
|
|
24
|
+
text(pLabel,(0,0),"P"); size(pLabel,34); bold(pLabel); color(pLabel,gold); hidden(pLabel); label3(pLabel,P,0.34);
|
|
25
|
+
point3(origin,(0,0,0),0.10); color(origin,fg); hidden(origin);
|
|
26
|
+
text(originLabel,(0,0),"O"); size(originLabel,34); color(originLabel,dim); hidden(originLabel); label3(originLabel,origin,0.36);
|
|
27
|
+
|
|
28
|
+
line3(xAxis,(-4,0,0),(4,0,0)); color(xAxis,cyan); thick(xAxis,0.045); untraced(xAxis); hidden(xAxis); tag(xAxis,axes);
|
|
29
|
+
line3(yAxis,(0,-3,0),(0,3,0)); color(yAxis,magenta); thick(yAxis,0.045); untraced(yAxis); hidden(yAxis); tag(yAxis,axes);
|
|
30
|
+
line3(zAxis,(0,0,0),(0,0,4)); color(zAxis,lime); thick(zAxis,0.045); untraced(zAxis); hidden(zAxis); tag(zAxis,axes);
|
|
31
|
+
|
|
32
|
+
point3(xEnd,(4,0,0),0.01); hidden(xEnd);
|
|
33
|
+
point3(yEnd,(0,3,0),0.01); hidden(yEnd);
|
|
34
|
+
point3(zEnd,(0,0,4),0.01); hidden(zEnd);
|
|
35
|
+
text(xLabel,(0,0),"x"); size(xLabel,34); bold(xLabel); color(xLabel,cyan); hidden(xLabel); label3(xLabel,xEnd,0.38);
|
|
36
|
+
text(yLabel,(0,0),"y"); size(yLabel,34); bold(yLabel); color(yLabel,magenta); hidden(yLabel); label3(yLabel,yEnd,0.38);
|
|
37
|
+
text(zLabel,(0,0),"z"); size(zLabel,34); bold(zLabel); color(zLabel,lime); hidden(zLabel); label3(zLabel,zEnd,0.38);
|
|
38
|
+
|
|
39
|
+
// Tick marks remain quiet so the address, rather than decoration, leads.
|
|
40
|
+
for i in -4..5 {
|
|
41
|
+
line3(xTick{i},(i,-0.10,0),(i,0.10,0)); color(xTick{i},cyan); thick(xTick{i},0.025); untraced(xTick{i}); hidden(xTick{i}); tag(xTick{i},xTicks);
|
|
42
|
+
}
|
|
43
|
+
for i in -3..4 {
|
|
44
|
+
line3(yTick{i},(-0.10,i,0),(0.10,i,0)); color(yTick{i},magenta); thick(yTick{i},0.025); untraced(yTick{i}); hidden(yTick{i}); tag(yTick{i},yTicks);
|
|
45
|
+
}
|
|
46
|
+
for i in 1..5 {
|
|
47
|
+
line3(zTick{i},(-0.10,0,i),(0.10,0,i)); color(zTick{i},lime); thick(zTick{i},0.025); untraced(zTick{i}); hidden(zTick{i}); tag(zTick{i},zTicks);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
grid3(plane,(0,0,0),4,1); color(plane,blue); opacity(plane,0.22); hidden(plane); tag(plane,world2d);
|
|
51
|
+
cube3(space,(0,0,2),(8,6,4)); color(space,blue); hidden(space); tag(space,world3d);
|
|
52
|
+
finish3(space,"material=glass shading=flat mesh=0.18 depth=0.22 shadow=0.10");
|
|
53
|
+
|
|
54
|
+
// Guides expose how each coordinate is read from the axes.
|
|
55
|
+
line3(xGuide,(0,0,0),(3,0,0)); color(xGuide,cyan); thick(xGuide,0.065); untraced(xGuide); hidden(xGuide); tag(xGuide,guides);
|
|
56
|
+
line3(yGuide,(3,0,0),(3,2,0)); color(yGuide,magenta); thick(yGuide,0.065); untraced(yGuide); hidden(yGuide); tag(yGuide,guides);
|
|
57
|
+
line3(zGuide,(3,2,0),(3,2,3)); color(zGuide,lime); thick(zGuide,0.065); untraced(zGuide); hidden(zGuide); tag(zGuide,guides);
|
|
58
|
+
|
|
59
|
+
point3(xFoot,(3,0,0),0.11); color(xFoot,cyan); hidden(xFoot);
|
|
60
|
+
point3(xyFoot,(3,2,0),0.11); color(xyFoot,magenta); hidden(xyFoot);
|
|
61
|
+
project3(shadow,P,"xy"); color(shadow,magenta); hidden(shadow);
|
|
62
|
+
link3(drop,P,shadow,0.12); color(drop,lime); thick(drop,0.025); hidden(drop);
|
|
63
|
+
|
|
64
|
+
step("one number locates the point") {
|
|
65
|
+
seq {
|
|
66
|
+
par { show(kicker,0.35); show(headline,0.55); show(phase,0.40); show(narration,0.45); show(principle,0.40); show(address,0.50); view3(xAxis,"top",0.9,smooth,1.65); }
|
|
67
|
+
par { show(origin,0.20); show(originLabel,0.25); show(P,0.25); show(pLabel,0.25); draw(xAxis,1.10,smooth); show(xLabel,0.25); show(xTicks,0.35); }
|
|
68
|
+
par { shift3(P,(3,0,0),1.65,smooth); draw(xGuide,1.65,smooth); }
|
|
69
|
+
par { show(xFoot,0.25); pulse(P,0.65); pulse(address,0.65); }
|
|
70
|
+
wait(0.60);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
step("the plane adds a second direction") {
|
|
75
|
+
seq {
|
|
76
|
+
par {
|
|
77
|
+
say(phase,"2D · THE COORDINATE PLANE",0.45,smooth);
|
|
78
|
+
say(narration,"Open a perpendicular y-direction, then move two units sideways.",0.55,smooth);
|
|
79
|
+
rewrite(address,`P=\textcolor{cyan}{(3},\textcolor{magenta}{2)}`,0.95,smooth);
|
|
80
|
+
show(plane,0.80); draw(yAxis,1.35,smooth); show(yLabel,0.30); show(yTicks,0.40);
|
|
81
|
+
view3(plane,"top",1.55,smooth,1.55);
|
|
82
|
+
}
|
|
83
|
+
par { shift3(P,(0,2,0),1.75,smooth); draw(yGuide,1.75,smooth); }
|
|
84
|
+
par { show(xyFoot,0.25); pulse(guides,0.80); pulse(address,0.80); }
|
|
85
|
+
wait(0.70);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
step("read the ordered pair") {
|
|
90
|
+
seq {
|
|
91
|
+
say(narration,"First read x, then y. Order matters: (3,2) is not (2,3).",0.50,smooth);
|
|
92
|
+
par { pulse(xGuide,0.60); pulse(yGuide,0.60); }
|
|
93
|
+
wait(0.85);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
step("space adds height") {
|
|
98
|
+
seq {
|
|
99
|
+
par {
|
|
100
|
+
say(phase,"3D · COORDINATE SPACE",0.45,smooth);
|
|
101
|
+
say(narration,"Raise a z-axis out of the plane and lift the point three units.",0.55,smooth);
|
|
102
|
+
rewrite(address,`P=\textcolor{cyan}{(3},\textcolor{magenta}{2},\textcolor{lime}{3)}`,1.05,smooth);
|
|
103
|
+
to(space,opacity,0.14,2.40,smooth);
|
|
104
|
+
draw(zAxis,1.55,smooth); show(zLabel,0.30); show(zTicks,0.40);
|
|
105
|
+
view3(space,"isometric",2.35,smooth,1.48);
|
|
106
|
+
}
|
|
107
|
+
par {
|
|
108
|
+
shift3(P,(0,0,3),2.15,smooth);
|
|
109
|
+
draw(zGuide,2.15,smooth);
|
|
110
|
+
show(shadow,0.30); show(drop,0.30);
|
|
111
|
+
}
|
|
112
|
+
par { pulse(P,0.70); pulse(address,0.70); }
|
|
113
|
+
wait(0.70);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
step("one point three coordinates") {
|
|
118
|
+
seq {
|
|
119
|
+
par {
|
|
120
|
+
show(takeaway,0.45);
|
|
121
|
+
say(phase,"ONE ADDRESS · THREE DIRECTIONS",0.50,smooth);
|
|
122
|
+
say(narration,"x says across, y says sideways, and z says how high.",0.55,smooth);
|
|
123
|
+
say(principle,"1D: (x) · 2D: (x,y) · 3D: (x,y,z)",0.55,smooth);
|
|
124
|
+
view3(space,"fit",1.70,smooth,1.55);
|
|
125
|
+
}
|
|
126
|
+
par { pulse(axes,0.90); pulse(P,0.90); roll3(3,1.55,smooth); }
|
|
127
|
+
wait(1.80);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// textbook-doubly-list.manic — the paper/support treatment on the ALGO kit
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// Proof the textbook look is DOMAIN-AGNOSTIC: the same `template("paper")` page,
|
|
5
|
+
// the same std `support` hatch primitive, and the same `color`/`say` staging —
|
|
6
|
+
// here on the algo kit's doubly linked list instead of a physics sim. Nothing
|
|
7
|
+
// about `support`/`paper` knows about physics; they compose over any kit.
|
|
8
|
+
// ============================================================================
|
|
9
|
+
|
|
10
|
+
title("Doubly linked list — textbook style");
|
|
11
|
+
canvas("16:9");
|
|
12
|
+
template("paper"); // the white exam-paper page (engine theme)
|
|
13
|
+
|
|
14
|
+
text(hdr, (cx, 66), "Doubly linked list");
|
|
15
|
+
color(hdr, fg); size(hdr, 30); bold(hdr); display(hdr);
|
|
16
|
+
support(rule, (cx, 102), 380, "down"); // a hatched section rule — a std primitive, in an ALGO scene
|
|
17
|
+
|
|
18
|
+
// the algo-kit structure — the paper theme's palette REMAP turns the sim's
|
|
19
|
+
// neon colours into ink automatically (light boxes, dark text, muted pointers),
|
|
20
|
+
// so no recolouring is needed. The bare id `dll` also broadcasts now, e.g.
|
|
21
|
+
// `hidden(dll)` / `flash(dll, cyan)` address the whole list at once.
|
|
22
|
+
list(dll, "3 8 5 2", (cx, 340), doubly, 80, 58);
|
|
23
|
+
|
|
24
|
+
text(cap, (cx, 628), ""); color(cap, fg); size(cap, 22); display(cap);
|
|
25
|
+
|
|
26
|
+
say(cap, "each node = [ ·prev | data | next· ] — data plus two pointers");
|
|
27
|
+
wait(1.1);
|
|
28
|
+
say(cap, "insert 7 after node 1: the prev/next pointers re-thread — nothing shifts");
|
|
29
|
+
insert(dll, 1, "7");
|
|
30
|
+
wait(0.9);
|
|
31
|
+
say(cap, "remove the head: the list simply re-points past it");
|
|
32
|
+
remove(dll, 0);
|
|
33
|
+
wait(1.2);
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// textbook-function-to-solid.manic — interval → graph → solid of revolution
|
|
3
|
+
// ============================================================================
|
|
4
|
+
|
|
5
|
+
title("The Revolving Semicircle — From 1D to 3D");
|
|
6
|
+
canvas("9:16");
|
|
7
|
+
template("neon");
|
|
8
|
+
watermark(manicMark,(220,175),"Made With Manic");
|
|
9
|
+
creator(me,"@anish2good name=Manic_Math tagline=Textbooks_in_motion yt=zarigatongy x=@anish2good web=8gwifi.org/manic accent=cyan secondary=magenta footer=social safe=reels");
|
|
10
|
+
socials(me);
|
|
11
|
+
|
|
12
|
+
text(kicker,(540,164),"SOLIDS OF REVOLUTION"); size(kicker,21); bold(kicker); color(kicker,cyan); hidden(kicker);
|
|
13
|
+
text(headline,(540,228),"A 1D domain grows into a 3D sphere"); size(headline,41); bold(headline); hidden(headline);
|
|
14
|
+
text(phase,(540,300),"1D · CHOOSE THE DOMAIN"); size(phase,23); bold(phase); color(phase,gold); hidden(phase);
|
|
15
|
+
text(narration,(540,1328),"Begin with every x-value from −2 to 2 on a number line."); size(narration,26); bold(narration); wrap(narration,850); hidden(narration);
|
|
16
|
+
text(principle,(540,1392),"The interval controls where the graph exists."); size(principle,20); color(principle,dim); hidden(principle);
|
|
17
|
+
equation(formula,(540,1488),`x\in\textcolor{cyan}{[-2,2]}`,44); hidden(formula);
|
|
18
|
+
text(takeaway,(540,1572),"DOMAIN → PROFILE → ROTATION → VOLUME"); size(takeaway,18); bold(takeaway); color(takeaway,gold); hidden(takeaway);
|
|
19
|
+
|
|
20
|
+
camera3((0,-14,1.8),(0,0,0.7),39);
|
|
21
|
+
|
|
22
|
+
// The x-axis and interval are the 1D seed for the whole construction.
|
|
23
|
+
line3(xAxis,(-2.6,0,0),(2.6,0,0)); color(xAxis,dim); thick(xAxis,0.035); untraced(xAxis); hidden(xAxis);
|
|
24
|
+
line3(domain,(-2,0,0),(2,0,0)); color(domain,cyan); thick(domain,0.09); untraced(domain); hidden(domain); tag(domain,profile);
|
|
25
|
+
point3(leftEnd,(-2,0,0),0.13); color(leftEnd,cyan); hidden(leftEnd);
|
|
26
|
+
point3(rightEnd,(2,0,0),0.13); color(rightEnd,cyan); hidden(rightEnd);
|
|
27
|
+
point3(origin,(0,0,0),0.09); color(origin,fg); hidden(origin);
|
|
28
|
+
point3(xEnd,(2.6,0,0),0.01); hidden(xEnd);
|
|
29
|
+
text(xLabel,(0,0),"x"); size(xLabel,23); bold(xLabel); color(xLabel,fg); hidden(xLabel); label3(xLabel,xEnd,0.30);
|
|
30
|
+
|
|
31
|
+
// The upper semicircle is a textbook profile: y = sqrt(4 - x^2).
|
|
32
|
+
curve3(semicircle,"-2+4*t","0","sqrt(4-(-2+4*t)^2)",(0,1)); color(semicircle,magenta); thick(semicircle,0.065); untraced(semicircle); hidden(semicircle); tag(semicircle,profile);
|
|
33
|
+
param3(region,
|
|
34
|
+
"-2+4*u",
|
|
35
|
+
"0",
|
|
36
|
+
"v*sqrt(4-(-2+4*u)^2)",
|
|
37
|
+
(0,1),(0,1),32);
|
|
38
|
+
color(region,magenta); hidden(region); tag(region,profile);
|
|
39
|
+
finish3(region,"material=glass shading=flat mesh=0.18 depth=0.18 shadow=0.08");
|
|
40
|
+
|
|
41
|
+
// Three sample heights explain how the graph rises from the domain.
|
|
42
|
+
line3(heightA,(-1,0,0),(-1,0,1.732)); color(heightA,gold); thick(heightA,0.035); untraced(heightA); hidden(heightA); tag(heightA,samples); tag(heightA,profile);
|
|
43
|
+
line3(heightB,(0,0,0),(0,0,2)); color(heightB,gold); thick(heightB,0.035); untraced(heightB); hidden(heightB); tag(heightB,samples); tag(heightB,profile);
|
|
44
|
+
line3(heightC,(1,0,0),(1,0,1.732)); color(heightC,gold); thick(heightC,0.035); untraced(heightC); hidden(heightC); tag(heightC,samples); tag(heightC,profile);
|
|
45
|
+
point3(apex,(0,0,2),0.10); color(apex,gold); hidden(apex); tag(apex,profile);
|
|
46
|
+
|
|
47
|
+
// Rotating the filled profile around x generates a radius-2 sphere.
|
|
48
|
+
param3(sphere,
|
|
49
|
+
"2*cos(u)",
|
|
50
|
+
"2*sin(u)*cos(v)",
|
|
51
|
+
"2*sin(u)*sin(v)",
|
|
52
|
+
(0,3.1416),(0,6.2832),38);
|
|
53
|
+
color(sphere,blue); hidden(sphere); tag(sphere,solid);
|
|
54
|
+
finish3(sphere,"material=glass shading=smooth mesh=0.24 depth=0.34 shadow=0.16");
|
|
55
|
+
curve3(equator,"0","2*cos(t)","2*sin(t)",(0,6.2832)); color(equator,cyan); thick(equator,0.035); untraced(equator); hidden(equator); tag(equator,solid);
|
|
56
|
+
curve3(meridian,"2*cos(t)","0","2*sin(t)",(0,6.2832)); color(meridian,magenta); thick(meridian,0.035); untraced(meridian); hidden(meridian); tag(meridian,solid);
|
|
57
|
+
|
|
58
|
+
step("mark the one dimensional domain") {
|
|
59
|
+
seq {
|
|
60
|
+
par { show(kicker,0.35); show(headline,0.55); show(phase,0.40); show(narration,0.45); show(principle,0.40); show(formula,0.50); view3(domain,"front",0.9,smooth,1.72); }
|
|
61
|
+
par { draw(xAxis,0.90,smooth); draw(domain,1.35,smooth); show(leftEnd,0.25); show(rightEnd,0.25); show(origin,0.25); show(xLabel,0.25); }
|
|
62
|
+
par { pulse(domain,0.75); pulse(formula,0.75); }
|
|
63
|
+
wait(0.65);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
step("the function supplies height") {
|
|
68
|
+
seq {
|
|
69
|
+
par {
|
|
70
|
+
say(phase,"2D · DRAW THE PROFILE",0.45,smooth);
|
|
71
|
+
say(narration,"At each x, the function supplies a height above the axis.",0.55,smooth);
|
|
72
|
+
say(principle,"The interval becomes the base of an upper semicircle.",0.45,smooth);
|
|
73
|
+
rewrite(formula,`y=\textcolor{magenta}{\sqrt{4-x^2}},\quad -2\le x\le2`,1.05,smooth);
|
|
74
|
+
draw(semicircle,2.10,smooth);
|
|
75
|
+
stagger(0.22) { show(heightA,0.20); show(heightB,0.20); show(heightC,0.20); }
|
|
76
|
+
stagger(0.22) { draw(heightA,0.65,smooth); draw(heightB,0.65,smooth); draw(heightC,0.65,smooth); }
|
|
77
|
+
}
|
|
78
|
+
par { show(apex,0.25); pulse(samples,0.75); }
|
|
79
|
+
wait(0.70);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
step("fill the generating region") {
|
|
84
|
+
seq {
|
|
85
|
+
par {
|
|
86
|
+
say(narration,"The curve and the x-axis enclose the region that will rotate.",0.50,smooth);
|
|
87
|
+
to(region,opacity,0.26,1.65,smooth);
|
|
88
|
+
view3(region,"front",1.40,smooth,1.62);
|
|
89
|
+
}
|
|
90
|
+
par { pulse(region,0.75); pulse(semicircle,0.75); }
|
|
91
|
+
wait(0.75);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
step("rotate the profile into space") {
|
|
96
|
+
seq {
|
|
97
|
+
par {
|
|
98
|
+
say(phase,"3D · ROTATE ABOUT THE x-AXIS",0.45,smooth);
|
|
99
|
+
say(narration,"Sweep the entire semicircle through 360° around its diameter.",0.55,smooth);
|
|
100
|
+
say(principle,"Every point traces a circle; together those circles form a sphere.",0.50,smooth);
|
|
101
|
+
rewrite(formula,`x^2+y^2+z^2=\textcolor{gold}{4}`,1.05,smooth);
|
|
102
|
+
turn3(profile,(0,0,0),x,360,3.10,smooth);
|
|
103
|
+
to(sphere,opacity,0.34,3.10,smooth);
|
|
104
|
+
show(equator,0.45); draw(equator,2.15,smooth);
|
|
105
|
+
show(meridian,0.45); draw(meridian,2.15,smooth);
|
|
106
|
+
view3(solid,"isometric",2.60,smooth,1.55);
|
|
107
|
+
}
|
|
108
|
+
par { pulse(solid,0.85); roll3(4,1.50,smooth); }
|
|
109
|
+
wait(0.75);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
step("read the solid of revolution") {
|
|
114
|
+
seq {
|
|
115
|
+
par {
|
|
116
|
+
show(takeaway,0.45);
|
|
117
|
+
say(phase,"THE SAME RADIUS · A NEW DIMENSION",0.50,smooth);
|
|
118
|
+
say(narration,"The 2D radius is still 2, but rotation has filled 3D volume.",0.55,smooth);
|
|
119
|
+
say(principle,"A semicircle rotated about its diameter generates a sphere.",0.50,smooth);
|
|
120
|
+
rewrite(formula,`V=\frac{4}{3}\pi(2)^3=\textcolor{gold}{\frac{32\pi}{3}}`,1.15,smooth);
|
|
121
|
+
view3(solid,"fit",1.65,smooth,1.58);
|
|
122
|
+
}
|
|
123
|
+
par { pulse(sphere,0.90); pulse(formula,0.90); roll3(3,1.50,smooth); }
|
|
124
|
+
wait(1.90);
|
|
125
|
+
}
|
|
126
|
+
}
|