@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,158 @@
|
|
|
1
|
+
title("Integral Area");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
|
|
4
|
+
let gx = cx - 210;
|
|
5
|
+
let gy = cy + 170;
|
|
6
|
+
let sx = 120;
|
|
7
|
+
let sy = 45;
|
|
8
|
+
let n = 8;
|
|
9
|
+
let dx = 2/n;
|
|
10
|
+
|
|
11
|
+
text(head, (cx, 70), "integral as area under a curve");
|
|
12
|
+
display(head);
|
|
13
|
+
color(head, cyan);
|
|
14
|
+
size(head, 30);
|
|
15
|
+
hidden(head);
|
|
16
|
+
|
|
17
|
+
text(cap, (cx, h - 55), "");
|
|
18
|
+
display(cap);
|
|
19
|
+
color(cap, fg);
|
|
20
|
+
size(cap, 22);
|
|
21
|
+
hidden(cap);
|
|
22
|
+
|
|
23
|
+
axes(ax, (gx, gy), 330, 240, 60);
|
|
24
|
+
color(ax, dim);
|
|
25
|
+
stroke(ax, 2);
|
|
26
|
+
untraced(ax);
|
|
27
|
+
|
|
28
|
+
plot(curve, (gx, gy), sx, sy, "x^2", (0, 2.15));
|
|
29
|
+
color(curve, lime);
|
|
30
|
+
stroke(curve, 4);
|
|
31
|
+
glow(curve, 8);
|
|
32
|
+
untraced(curve);
|
|
33
|
+
|
|
34
|
+
text(flabel, (gx + 285, gy - 205), "y = x^2");
|
|
35
|
+
display(flabel);
|
|
36
|
+
color(flabel, lime);
|
|
37
|
+
size(flabel, 24);
|
|
38
|
+
hidden(flabel);
|
|
39
|
+
|
|
40
|
+
text(x0lbl, (gx, gy + 28), "0");
|
|
41
|
+
display(x0lbl);
|
|
42
|
+
color(x0lbl, fg);
|
|
43
|
+
hidden(x0lbl);
|
|
44
|
+
|
|
45
|
+
text(x2lbl, (gx + 2*sx, gy + 28), "2");
|
|
46
|
+
display(x2lbl);
|
|
47
|
+
color(x2lbl, fg);
|
|
48
|
+
hidden(x2lbl);
|
|
49
|
+
|
|
50
|
+
line(bound2, (gx + 2*sx, gy), (gx + 2*sx, gy - 4*sy));
|
|
51
|
+
color(bound2, magenta);
|
|
52
|
+
stroke(bound2, 3);
|
|
53
|
+
untraced(bound2);
|
|
54
|
+
|
|
55
|
+
bracelabel(interval, (gx, gy + 48), (gx + 2*sx, gy + 48), "0..2", 18);
|
|
56
|
+
color(interval, cyan);
|
|
57
|
+
hidden(interval);
|
|
58
|
+
|
|
59
|
+
dot(point2, (gx + 2*sx, gy - 4*sy), 7);
|
|
60
|
+
color(point2, magenta);
|
|
61
|
+
glow(point2, 8);
|
|
62
|
+
hidden(point2);
|
|
63
|
+
|
|
64
|
+
text(eq, (cx + 275, cy - 110), "integral 0..2 x^2 dx");
|
|
65
|
+
display(eq);
|
|
66
|
+
color(eq, cyan);
|
|
67
|
+
size(eq, 25);
|
|
68
|
+
hidden(eq);
|
|
69
|
+
|
|
70
|
+
text(areaNote, (cx + 275, cy - 70), "= signed area");
|
|
71
|
+
display(areaNote);
|
|
72
|
+
color(areaNote, fg);
|
|
73
|
+
size(areaNote, 23);
|
|
74
|
+
hidden(areaNote);
|
|
75
|
+
|
|
76
|
+
counter(approx, (cx + 275, cy + 15), 0, 2, "rect sum = ", "");
|
|
77
|
+
display(approx);
|
|
78
|
+
color(approx, magenta);
|
|
79
|
+
size(approx, 24);
|
|
80
|
+
hidden(approx);
|
|
81
|
+
|
|
82
|
+
text(rule, (cx + 275, cy + 85), "power rule: x^2 -> x^3/3");
|
|
83
|
+
display(rule);
|
|
84
|
+
color(rule, lime);
|
|
85
|
+
size(rule, 22);
|
|
86
|
+
hidden(rule);
|
|
87
|
+
|
|
88
|
+
counter(exact, (cx + 275, cy + 130), 0, 2, "exact area = ", "");
|
|
89
|
+
display(exact);
|
|
90
|
+
color(exact, lime);
|
|
91
|
+
size(exact, 26);
|
|
92
|
+
hidden(exact);
|
|
93
|
+
|
|
94
|
+
text(finalEq, (cx + 275, cy + 175), "8/3 = 2.67");
|
|
95
|
+
display(finalEq);
|
|
96
|
+
color(finalEq, cyan);
|
|
97
|
+
size(finalEq, 24);
|
|
98
|
+
hidden(finalEq);
|
|
99
|
+
|
|
100
|
+
for i in 0..n {
|
|
101
|
+
rect(r{i}, (gx + (i*dx + dx/2)*sx, gy - (((i + 1)*dx)^2)*sy/2), dx*sx, (((i + 1)*dx)^2)*sy);
|
|
102
|
+
color(r{i}, cyan);
|
|
103
|
+
outline(r{i}, cyan);
|
|
104
|
+
filled(r{i});
|
|
105
|
+
opacity(r{i}, 0.28);
|
|
106
|
+
z(r{i}, -1);
|
|
107
|
+
hidden(r{i});
|
|
108
|
+
tag(r{i}, rects);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
show(head, 0.6);
|
|
112
|
+
show(cap, 0.4);
|
|
113
|
+
say(cap, "An integral measures accumulated area.", 0.7);
|
|
114
|
+
|
|
115
|
+
par {
|
|
116
|
+
draw(ax, 0.8);
|
|
117
|
+
show(x0lbl, 0.4);
|
|
118
|
+
show(x2lbl, 0.4);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
par {
|
|
122
|
+
draw(curve, 1.1);
|
|
123
|
+
show(flabel, 0.6);
|
|
124
|
+
}
|
|
125
|
+
say(cap, "Here the curve is y = x^2.", 0.6);
|
|
126
|
+
|
|
127
|
+
par {
|
|
128
|
+
show(eq, 0.5);
|
|
129
|
+
show(areaNote, 0.5);
|
|
130
|
+
draw(bound2, 0.6);
|
|
131
|
+
show(point2, 0.5);
|
|
132
|
+
show(interval, 0.5);
|
|
133
|
+
}
|
|
134
|
+
say(cap, "We want the area from x = 0 to x = 2.", 0.7);
|
|
135
|
+
|
|
136
|
+
stagger(0.08) {
|
|
137
|
+
for i in 0..n {
|
|
138
|
+
show(r{i}, 0.25);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
show(approx, 0.4);
|
|
142
|
+
to(approx, value, 3.19, 1.2, smooth);
|
|
143
|
+
flash(rects, cyan);
|
|
144
|
+
say(cap, "Rectangles approximate the area. More rectangles get closer.", 0.8);
|
|
145
|
+
|
|
146
|
+
fade(rects, 0.7);
|
|
147
|
+
say(cap, "Calculus gives the exact accumulated area.", 0.7);
|
|
148
|
+
|
|
149
|
+
par {
|
|
150
|
+
show(rule, 0.6);
|
|
151
|
+
show(exact, 0.5);
|
|
152
|
+
}
|
|
153
|
+
to(exact, value, 2.67, 1.2, smooth);
|
|
154
|
+
|
|
155
|
+
show(finalEq, 0.5);
|
|
156
|
+
pulse(exact, 0.6);
|
|
157
|
+
say(cap, "So integral 0..2 x^2 dx = 8/3.", 0.8);
|
|
158
|
+
wait(0.8);
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// pulley-annotated.manic — ELEVATE a sim: CAMERA work (cam + zoom)
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// A different elevation flavour from spring-annotated (typewriter) — here the
|
|
5
|
+
// camera does the storytelling: `cam` + `zoom` push in on the two masses for
|
|
6
|
+
// the "imbalance" beat, glow the heavier one, then pull back for the release.
|
|
7
|
+
// A live `counter` ticks the acceleration up. No stage-covering section cards,
|
|
8
|
+
// so the motion is always visible. All base manic over the `pulley` parts.
|
|
9
|
+
// ============================================================================
|
|
10
|
+
|
|
11
|
+
title("The Atwood Machine — Why the Heavier Side Falls");
|
|
12
|
+
canvas("16:9");
|
|
13
|
+
|
|
14
|
+
text(hdr, (cx, 40), "The Atwood Machine"); size(hdr, 28); color(hdr, cyan); bold(hdr); display(hdr); hidden(hdr);
|
|
15
|
+
|
|
16
|
+
// ---- the sim, centred so the camera can push in ----
|
|
17
|
+
pulley(pl, (cx, 190), 3, 2);
|
|
18
|
+
hidden(pl.wheel); hidden(pl.hub); hidden(pl.ropeL); hidden(pl.ropeR); hidden(pl.mass1); hidden(pl.mass2);
|
|
19
|
+
|
|
20
|
+
text(wheelL, (cx, 118), "frictionless pulley"); size(wheelL, 17); color(wheelL, dim); display(wheelL); hidden(wheelL);
|
|
21
|
+
text(m1L, (cx - 150, 320), "m₁ = 3 kg"); size(m1L, 19); color(m1L, cyan); display(m1L); hidden(m1L);
|
|
22
|
+
text(m2L, (cx + 150, 320), "m₂ = 2 kg"); size(m2L, 19); color(m2L, magenta); display(m2L); hidden(m2L);
|
|
23
|
+
counter(aC, (cx, 250), 0, 2, "a = ", " m/s²"); size(aC, 26); color(aC, gold); display(aC); hidden(aC); sticky(aC);
|
|
24
|
+
|
|
25
|
+
// caption is `sticky` — it stays pinned to the screen through the camera push-in
|
|
26
|
+
text(cap, (cx, h - 44), ""); size(cap, 21); color(cap, dim); display(cap); sticky(cap);
|
|
27
|
+
|
|
28
|
+
// ============================== SCRIPT ==============================
|
|
29
|
+
show(hdr, 0.5);
|
|
30
|
+
|
|
31
|
+
say(cap, "one rope over one frictionless pulley …", 0.4);
|
|
32
|
+
show(pl.wheel, 0.4); show(pl.hub, 0.3); pulse(pl.wheel); show(wheelL, 0.4);
|
|
33
|
+
wait(0.3);
|
|
34
|
+
say(cap, "… a heavier mass on the left, a lighter one on the right", 0.4);
|
|
35
|
+
show(pl.ropeL, 0.3); show(pl.mass1, 0.4); pulse(pl.mass1); show(m1L, 0.4);
|
|
36
|
+
show(pl.ropeR, 0.3); show(pl.mass2, 0.4); pulse(pl.mass2); show(m2L, 0.4);
|
|
37
|
+
wait(0.5);
|
|
38
|
+
|
|
39
|
+
// ---- CAMERA: push in on the masses for the imbalance beat ----
|
|
40
|
+
// cap + aC are sticky, so they stay put on screen while the world zooms
|
|
41
|
+
say(cap, "look closely — the net pull favours the heavier side", 0.4);
|
|
42
|
+
par { cam((cx, 330), 1.4, smooth); zoom(1.7, 1.4, smooth); }
|
|
43
|
+
glow(pl.mass1, 1.9); flash(pl.mass1, gold); pulse(pl.mass1);
|
|
44
|
+
wait(1.0);
|
|
45
|
+
par { cam((cx, cy), 1.2, smooth); zoom(1, 1.2, smooth); } // pull back out
|
|
46
|
+
wait(0.2);
|
|
47
|
+
|
|
48
|
+
// the acceleration, as a live readout
|
|
49
|
+
show(aC, 0.3); to(aC, value, 1.96, 1.0); // a = (m₁−m₂)g/(m₁+m₂)
|
|
50
|
+
fade(wheelL, 0.3); fade(m1L, 0.3); fade(m2L, 0.3);
|
|
51
|
+
wait(0.5);
|
|
52
|
+
|
|
53
|
+
say(cap, "release: m₁ sinks, m₂ rises", 0.4);
|
|
54
|
+
run(pl, 4);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// pulley-paper.manic — an ANIMATED sim in textbook paper style
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// The Atwood `pulley` sim, dressed as a physics-textbook figure AND run: the
|
|
5
|
+
// `template("paper")` page (its palette remap inks the sim automatically), a
|
|
6
|
+
// hatched `support` ceiling, a forest-green wheel, outlined mass boxes, and a
|
|
7
|
+
// base-manic reveal (`say`/`show`/`draw`/`fade`) — then `run` plays the motion.
|
|
8
|
+
// Proof the paper/support treatment composes with a live, animated simulation.
|
|
9
|
+
// ============================================================================
|
|
10
|
+
|
|
11
|
+
title("The Atwood machine — textbook style");
|
|
12
|
+
canvas("16:9");
|
|
13
|
+
template("paper"); // white page; the theme remaps neon → ink
|
|
14
|
+
|
|
15
|
+
text(hdr, (cx, 46), "The Atwood machine"); color(hdr, fg); size(hdr, 27); bold(hdr); display(hdr); hidden(hdr);
|
|
16
|
+
|
|
17
|
+
// hatched ceiling + suspension rope (traced on)
|
|
18
|
+
support(ceil, (cx, 108), 320); untraced(ceil);
|
|
19
|
+
line(sus, (cx, 108), (cx, 160)); color(sus, fg); stroke(sus, 2); untraced(sus);
|
|
20
|
+
|
|
21
|
+
// the sim, restyled to textbook ink (parts hidden, revealed in order)
|
|
22
|
+
pulley(pl, (cx, 192), 3, 2);
|
|
23
|
+
color(pl.wheel, lime); // lime → forest green on the paper palette
|
|
24
|
+
color(pl.hub, fg); color(pl.ropeL, fg); color(pl.ropeR, fg);
|
|
25
|
+
outlined(pl.mass1); outline(pl.mass1, fg);
|
|
26
|
+
outlined(pl.mass2); outline(pl.mass2, fg);
|
|
27
|
+
hidden(pl.wheel); hidden(pl.hub); hidden(pl.ropeL); hidden(pl.ropeR); hidden(pl.mass1); hidden(pl.mass2);
|
|
28
|
+
|
|
29
|
+
// annotations
|
|
30
|
+
text(m1L, (cx - 150, 316), "m₁ = 3 kg"); color(m1L, fg); size(m1L, 20); display(m1L); hidden(m1L);
|
|
31
|
+
text(m2L, (cx + 150, 316), "m₂ = 2 kg"); color(m2L, fg); size(m2L, 20); display(m2L); hidden(m2L);
|
|
32
|
+
text(acc, (cx, 604), "a = (m₁ − m₂)·g / (m₁ + m₂)"); color(acc, fg); size(acc, 22); display(acc); hidden(acc);
|
|
33
|
+
text(cap, (cx, h - 40), ""); color(cap, fg); size(cap, 20); display(cap);
|
|
34
|
+
|
|
35
|
+
// ============================== SCRIPT ==============================
|
|
36
|
+
show(hdr, 0.5);
|
|
37
|
+
say(cap, "a rope over one frictionless pulley, hung from the ceiling", 0.4);
|
|
38
|
+
draw(ceil, 0.4); draw(sus, 0.4); show(pl.wheel, 0.4); show(pl.hub, 0.3);
|
|
39
|
+
wait(0.4);
|
|
40
|
+
|
|
41
|
+
say(cap, "a heavier mass on the left, a lighter one on the right", 0.4);
|
|
42
|
+
show(pl.ropeL, 0.3); show(pl.mass1, 0.4); show(m1L, 0.3);
|
|
43
|
+
show(pl.ropeR, 0.3); show(pl.mass2, 0.4); show(m2L, 0.3);
|
|
44
|
+
wait(0.5);
|
|
45
|
+
|
|
46
|
+
say(cap, "the system accelerates toward the heavier side", 0.4);
|
|
47
|
+
show(acc, 0.5);
|
|
48
|
+
wait(0.7);
|
|
49
|
+
fade(m1L, 0.3); fade(m2L, 0.3);
|
|
50
|
+
|
|
51
|
+
say(cap, "release: m₁ sinks, m₂ rises", 0.4);
|
|
52
|
+
run(pl, 4);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// pulley-scale.manic — what does the scale read? (physics Layer 1)
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// `pulleyscale(id, [center], [m1], [m2], [unit])` — an Atwood machine over two
|
|
5
|
+
// pulleys with a spring scale in the rope between them. The classic surprise:
|
|
6
|
+
// the scale reads the rope TENSION 2·m₁·m₂·g/(m₁+m₂), NOT the sum of the two
|
|
7
|
+
// weights. PRE-SIMULATED with RK4; `run(id,[dur])` replays it.
|
|
8
|
+
//
|
|
9
|
+
// TO ADAPT: set m1 = m2 — the system balances and the scale reads exactly m·g.
|
|
10
|
+
// ============================================================================
|
|
11
|
+
|
|
12
|
+
title("Pulley scale — it reads the tension, not the weight");
|
|
13
|
+
canvas("16:9");
|
|
14
|
+
|
|
15
|
+
text(hdr, (cx, 46), "The scale reads the rope tension T = 2·m₁·m₂·g / (m₁+m₂)");
|
|
16
|
+
size(hdr, 22); color(hdr, cyan); bold(hdr); display(hdr);
|
|
17
|
+
|
|
18
|
+
pulleyscale(ps, (cx, 200), 4, 3);
|
|
19
|
+
|
|
20
|
+
text(cap, (cx, h - 32), "not (m₁+m₂)g, not the heavier weight — the tension sits between the two weights");
|
|
21
|
+
size(cap, 16); color(cap, dim); display(cap);
|
|
22
|
+
|
|
23
|
+
run(ps, 5);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// pulley.manic — the Atwood machine, on the physics baseline (Layer 1)
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// `pulley(id, [center], [m1], [m2], [unit])` — two masses over one pulley. The
|
|
5
|
+
// heavier one accelerates down at a = (m₁−m₂)g/(m₁+m₂). PRE-SIMULATED with RK4;
|
|
6
|
+
// `run(id,[dur])` replays it. `energygraph` shows the KE↔PE trade as the system
|
|
7
|
+
// speeds up (total is conserved — no friction).
|
|
8
|
+
//
|
|
9
|
+
// TO ADAPT: set m1 and m2 closer together for a gentler acceleration.
|
|
10
|
+
// ============================================================================
|
|
11
|
+
|
|
12
|
+
title("Atwood machine — unequal masses accelerate");
|
|
13
|
+
canvas("16:9");
|
|
14
|
+
|
|
15
|
+
text(hdr, (cx, 44), "Atwood machine — a = (m₁−m₂)g / (m₁+m₂)");
|
|
16
|
+
size(hdr, 24); color(hdr, cyan); bold(hdr); display(hdr);
|
|
17
|
+
|
|
18
|
+
pulley(pl, (440, 170), 3, 2);
|
|
19
|
+
energygraph(pl, (960, 330), 120);
|
|
20
|
+
|
|
21
|
+
text(cap, (cx, h - 32), "cyan m₁ (heavier) sinks, magenta m₂ rises; kinetic energy climbs as potential falls");
|
|
22
|
+
size(cap, 16); color(cap, dim); display(cap);
|
|
23
|
+
|
|
24
|
+
run(pl, 5);
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// quadratic-formula-continuity.manic — structured LaTeX rewrite benchmark
|
|
2
|
+
//
|
|
3
|
+
// The author supplies correct mathematical states. `rewrite` does not solve
|
|
4
|
+
// algebra: it keeps equal RaTeX parts alive, moves them to their new roles,
|
|
5
|
+
// introduces only new notation, and settles on the exact target formula.
|
|
6
|
+
|
|
7
|
+
title("The Quadratic Formula by Completing the Square");
|
|
8
|
+
canvas("16:9");
|
|
9
|
+
template("plain");
|
|
10
|
+
watermark(manicMark, (1135, 30), "Made With Manic");
|
|
11
|
+
|
|
12
|
+
text(kicker, (cx, 72), "COMPLETING THE SQUARE · ONE CONTINUOUS EQUATION");
|
|
13
|
+
size(kicker, 18); color(kicker, dim); bold(kicker); hidden(kicker);
|
|
14
|
+
|
|
15
|
+
text(guide, (cx, 620), "Stable symbols stay. Only the mathematical change moves.");
|
|
16
|
+
size(guide, 19); color(guide, dim); hidden(guide);
|
|
17
|
+
|
|
18
|
+
equation(
|
|
19
|
+
work,
|
|
20
|
+
(cx, 330),
|
|
21
|
+
`\textcolor{orange}{a}x^2+\textcolor{cyan}{b}x+\textcolor{lime}{c}=0`,
|
|
22
|
+
48
|
|
23
|
+
);
|
|
24
|
+
hidden(work);
|
|
25
|
+
|
|
26
|
+
show(kicker, 0.45);
|
|
27
|
+
show(guide, 0.45);
|
|
28
|
+
show(work, 0.65);
|
|
29
|
+
wait(1.20);
|
|
30
|
+
|
|
31
|
+
// Divide through by a.
|
|
32
|
+
rewrite(
|
|
33
|
+
work,
|
|
34
|
+
`x^2+\frac{\textcolor{cyan}{b}}{\textcolor{orange}{a}}x+\frac{\textcolor{lime}{c}}{\textcolor{orange}{a}}=0`,
|
|
35
|
+
1.00,
|
|
36
|
+
smooth
|
|
37
|
+
);
|
|
38
|
+
wait(1.00);
|
|
39
|
+
|
|
40
|
+
// Move c/a across the equality.
|
|
41
|
+
rewrite(
|
|
42
|
+
work,
|
|
43
|
+
`x^2+\frac{\textcolor{cyan}{b}}{\textcolor{orange}{a}}x=-\frac{\textcolor{lime}{c}}{\textcolor{orange}{a}}`,
|
|
44
|
+
0.95,
|
|
45
|
+
smooth
|
|
46
|
+
);
|
|
47
|
+
wait(0.95);
|
|
48
|
+
|
|
49
|
+
// Split the middle coefficient into two equal halves.
|
|
50
|
+
rewrite(
|
|
51
|
+
work,
|
|
52
|
+
`x^2+\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}x+\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}x=-\frac{\textcolor{lime}{c}}{\textcolor{orange}{a}}`,
|
|
53
|
+
1.05,
|
|
54
|
+
smooth
|
|
55
|
+
);
|
|
56
|
+
wait(0.95);
|
|
57
|
+
|
|
58
|
+
// Add the completing-square term to both sides.
|
|
59
|
+
rewrite(
|
|
60
|
+
work,
|
|
61
|
+
`x^2+\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}x+\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}x+\left(\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}\right)^2=\left(\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}\right)^2-\frac{\textcolor{lime}{c}}{\textcolor{orange}{a}}`,
|
|
62
|
+
1.10,
|
|
63
|
+
smooth
|
|
64
|
+
);
|
|
65
|
+
wait(1.05);
|
|
66
|
+
|
|
67
|
+
// Simplify the right side locally.
|
|
68
|
+
rewrite(
|
|
69
|
+
work,
|
|
70
|
+
`x^2+\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}x+\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}x+\left(\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}\right)^2=\frac{\textcolor{cyan}{b}^2-4\textcolor{orange}{a}\textcolor{lime}{c}}{4\textcolor{orange}{a}^2}`,
|
|
71
|
+
1.00,
|
|
72
|
+
smooth
|
|
73
|
+
);
|
|
74
|
+
wait(1.00);
|
|
75
|
+
|
|
76
|
+
// Expose the repeated factor, then contract it into a square.
|
|
77
|
+
rewrite(
|
|
78
|
+
work,
|
|
79
|
+
`x\left(x+\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}\right)+\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}\left(x+\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}\right)=\frac{\textcolor{cyan}{b}^2-4\textcolor{orange}{a}\textcolor{lime}{c}}{4\textcolor{orange}{a}^2}`,
|
|
80
|
+
1.05,
|
|
81
|
+
smooth
|
|
82
|
+
);
|
|
83
|
+
wait(0.90);
|
|
84
|
+
|
|
85
|
+
rewrite(
|
|
86
|
+
work,
|
|
87
|
+
`\left(x+\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}\right)^2=\frac{\textcolor{cyan}{b}^2-4\textcolor{orange}{a}\textcolor{lime}{c}}{4\textcolor{orange}{a}^2}`,
|
|
88
|
+
0.95,
|
|
89
|
+
smooth
|
|
90
|
+
);
|
|
91
|
+
wait(1.00);
|
|
92
|
+
|
|
93
|
+
// Take square roots.
|
|
94
|
+
rewrite(
|
|
95
|
+
work,
|
|
96
|
+
`x+\frac{\textcolor{cyan}{b}}{2\textcolor{orange}{a}}=\pm\frac{\sqrt{\textcolor{cyan}{b}^2-4\textcolor{orange}{a}\textcolor{lime}{c}}}{2\textcolor{orange}{a}}`,
|
|
97
|
+
1.05,
|
|
98
|
+
smooth
|
|
99
|
+
);
|
|
100
|
+
wait(1.10);
|
|
101
|
+
|
|
102
|
+
// Isolate x. The fraction moves across; the discriminant remains itself.
|
|
103
|
+
rewrite(
|
|
104
|
+
work,
|
|
105
|
+
`x=\frac{-\textcolor{cyan}{b}\pm\sqrt{\textcolor{cyan}{b}^2-4\textcolor{orange}{a}\textcolor{lime}{c}}}{2\textcolor{orange}{a}}`,
|
|
106
|
+
1.10,
|
|
107
|
+
smooth
|
|
108
|
+
);
|
|
109
|
+
pulse(work, 0.65);
|
|
110
|
+
wait(2.50);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// quiz-euler.manic — the SAME quiz Short, now via the `creator` kit
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// Compare with quiz-geometry.manic (≈60 hand-authored lines): the question,
|
|
5
|
+
// four option cards, the countdown, and the whole ask→countdown→reveal beat
|
|
6
|
+
// are now `quiz` / `option` / `run`. The creator's footer is `creator`/`socials`.
|
|
7
|
+
// Only the figure is hand-drawn (author-supplied — any manic entity/kit).
|
|
8
|
+
// ============================================================================
|
|
9
|
+
|
|
10
|
+
title("Quiz — the Euler Line");
|
|
11
|
+
canvas("9:16");
|
|
12
|
+
template("paper");
|
|
13
|
+
|
|
14
|
+
creator(me, "@anish2good yt=zarigatongy x=@anish2good web=8gwifi.org/manic accent=magenta");
|
|
15
|
+
|
|
16
|
+
// --- the quiz: question + four answers (kit handles layout + the beat) ---
|
|
17
|
+
quiz(q, "3 triangle centres are always collinear — on WHICH line?");
|
|
18
|
+
option(q, "the Euler line", correct);
|
|
19
|
+
option(q, "a perpendicular bisector");
|
|
20
|
+
option(q, "an angle bisector");
|
|
21
|
+
option(q, "a median");
|
|
22
|
+
|
|
23
|
+
// --- the figure (author-supplied): the geo kit constructs the Euler line ---
|
|
24
|
+
point(pA, (335, 760)); point(pB, (745, 745)); point(pC, (540, 470));
|
|
25
|
+
hidden(pA); hidden(pB); hidden(pC);
|
|
26
|
+
segment(sa, pA, pB); segment(sb, pB, pC); segment(sc, pC, pA);
|
|
27
|
+
untraced(sa); untraced(sb); untraced(sc);
|
|
28
|
+
circumcircle(cc, pA, pB, pC); color(cc, dim); untraced(cc);
|
|
29
|
+
circumcenter(oo, pA, pB, pC); color(oo, magenta); hidden(oo);
|
|
30
|
+
centroid(gg, pA, pB, pC); color(gg, lime); hidden(gg);
|
|
31
|
+
orthocenter(hh, pA, pB, pC); color(hh, cyan); hidden(hh);
|
|
32
|
+
segment(eu, oo, hh); color(eu, fg); stroke(eu, 7); glow(eu, 1.5); untraced(eu);
|
|
33
|
+
|
|
34
|
+
// tag every figure part, then AUTO-FIT the whole group into the zone between
|
|
35
|
+
// the question header and the answer cards — no hand-tuning coordinates.
|
|
36
|
+
tag(pA, fig); tag(pB, fig); tag(pC, fig); tag(sa, fig); tag(sb, fig); tag(sc, fig);
|
|
37
|
+
tag(cc, fig); tag(oo, fig); tag(gg, fig); tag(hh, fig); tag(eu, fig);
|
|
38
|
+
figure(fig, (540, 645), (720, 360));
|
|
39
|
+
|
|
40
|
+
// ================= THE BEAT =================
|
|
41
|
+
socials(me);
|
|
42
|
+
par {
|
|
43
|
+
run(q, 14); // ask · countdown · reveal — the whole beat
|
|
44
|
+
seq { // the figure builds while the question sits
|
|
45
|
+
wait(1.6);
|
|
46
|
+
par { show(pA, 0.2); show(pB, 0.2); show(pC, 0.2); }
|
|
47
|
+
par { draw(sa, 0.5); draw(sb, 0.5); draw(sc, 0.5); }
|
|
48
|
+
draw(cc, 0.5);
|
|
49
|
+
par { show(oo); show(gg); show(hh); }
|
|
50
|
+
draw(eu, 0.9); pulse(eu);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// ============================================================================
|
|
2
|
+
// quiz-geometry-2.manic — a second QUIZ SHORT (olympiad geometry)
|
|
3
|
+
// ----------------------------------------------------------------------------
|
|
4
|
+
// A layout STRESS TEST: same 9:16 quiz scaffold as quiz-geometry.manic, but a
|
|
5
|
+
// different olympiad question with TWO figures side-by-side (acute vs obtuse
|
|
6
|
+
// triangle) — to prove the spacing + visibility hold for richer figure content.
|
|
7
|
+
// Template-agnostic (palette-semantic colours), drawn social icons, 2×2 options.
|
|
8
|
+
// ============================================================================
|
|
9
|
+
|
|
10
|
+
title("Quiz — Circumcentre");
|
|
11
|
+
canvas("9:16");
|
|
12
|
+
template("terminal");
|
|
13
|
+
|
|
14
|
+
// ---- the question (two typewriter lines) ----
|
|
15
|
+
text(q1, (cx, 210), "A triangle's CIRCUMCENTRE falls"); color(q1, fg); size(q1, 42); bold(q1); untraced(q1);
|
|
16
|
+
text(q2, (cx, 283), "outside it — when is it…?"); color(q2, cyan); size(q2, 42); bold(q2); untraced(q2);
|
|
17
|
+
|
|
18
|
+
// ---- figure ① : an ACUTE triangle (circumcentre INSIDE) ----
|
|
19
|
+
point(a1, (190, 800)); point(b1, (455, 800)); point(c1, (320, 560));
|
|
20
|
+
hidden(a1); hidden(b1); hidden(c1);
|
|
21
|
+
segment(s1a, a1, b1); segment(s1b, b1, c1); segment(s1c, c1, a1);
|
|
22
|
+
untraced(s1a); untraced(s1b); untraced(s1c);
|
|
23
|
+
circumcenter(o1, a1, b1, c1); color(o1, magenta); hidden(o1);
|
|
24
|
+
text(lab1, (322, 865), "acute · inside"); color(lab1, dim); size(lab1, 26);
|
|
25
|
+
|
|
26
|
+
// ---- figure ② : an OBTUSE triangle (circumcentre OUTSIDE) ----
|
|
27
|
+
// c2 sits LEFT of a2, so the angle at a2 is obtuse → circumcentre lands outside
|
|
28
|
+
point(a2, (735, 800)); point(b2, (965, 800)); point(c2, (700, 600));
|
|
29
|
+
hidden(a2); hidden(b2); hidden(c2);
|
|
30
|
+
segment(s2a, a2, b2); segment(s2b, b2, c2); segment(s2c, c2, a2);
|
|
31
|
+
untraced(s2a); untraced(s2b); untraced(s2c);
|
|
32
|
+
circumcenter(o2, a2, b2, c2); color(o2, magenta); hidden(o2);
|
|
33
|
+
text(lab2, (830, 865), "obtuse · outside"); color(lab2, dim); size(lab2, 26);
|
|
34
|
+
|
|
35
|
+
// ---- four option cards, 2×2 (correct = C, obtuse → c3) ----
|
|
36
|
+
rect(c1c, (305, 1010), 428, 120); color(c1c, panel); filled(c1c); hidden(c1c);
|
|
37
|
+
rect(c2c, (775, 1010), 428, 120); color(c2c, panel); filled(c2c); hidden(c2c);
|
|
38
|
+
rect(c3c, (305, 1150), 428, 120); color(c3c, panel); filled(c3c); hidden(c3c);
|
|
39
|
+
rect(c4c, (775, 1150), 428, 120); color(c4c, panel); filled(c4c); hidden(c4c);
|
|
40
|
+
text(t1, (305, 1010), "A Acute"); color(t1, fg); size(t1, 34); hidden(t1);
|
|
41
|
+
text(t2, (775, 1010), "B Right"); color(t2, fg); size(t2, 34); hidden(t2);
|
|
42
|
+
text(t3, (305, 1150), "C Obtuse"); color(t3, fg); size(t3, 34); hidden(t3);
|
|
43
|
+
text(t4, (775, 1150), "D Equilateral"); color(t4, fg); size(t4, 34); hidden(t4);
|
|
44
|
+
|
|
45
|
+
// ---- countdown ring + digit ----
|
|
46
|
+
circle(ring, (cx, 1400), 62); color(ring, cyan); stroke(ring, 6); outlined(ring); hidden(ring);
|
|
47
|
+
text(timer, (cx, 1400), "5"); color(timer, fg); size(timer, 62); bold(timer); hidden(timer);
|
|
48
|
+
|
|
49
|
+
// ---- socials footer (drawn vector icons — template-safe) ----
|
|
50
|
+
line(rule, (150, 1740), (930, 1740)); color(rule, dim); stroke(rule, 2);
|
|
51
|
+
rect(yt, (312, 1815), 58, 40); color(yt, magenta); filled(yt);
|
|
52
|
+
polygon(ytp, (300, 1802), (300, 1828), (326, 1815), bg);
|
|
53
|
+
rect(xb, (404, 1815), 46, 46); color(xb, fg); outlined(xb);
|
|
54
|
+
line(x1, (392, 1803), (416, 1827)); color(x1, fg); stroke(x1, 4);
|
|
55
|
+
line(x2, (416, 1803), (392, 1827)); color(x2, fg); stroke(x2, 4);
|
|
56
|
+
rect(ig, (496, 1815), 46, 46); color(ig, fg); outlined(ig);
|
|
57
|
+
circle(igc, (496, 1815), 13); color(igc, fg); outlined(igc);
|
|
58
|
+
circle(igd, (509, 1802), 3); color(igd, fg); filled(igd);
|
|
59
|
+
text(foot, (740, 1815), "@manic · 8gwifi.org/manic"); color(foot, dim); size(foot, 28);
|
|
60
|
+
tag(rule, footer); tag(yt, footer); tag(ytp, footer); tag(xb, footer); tag(x1, footer);
|
|
61
|
+
tag(x2, footer); tag(ig, footer); tag(igc, footer); tag(igd, footer); tag(foot, footer);
|
|
62
|
+
hidden(footer);
|
|
63
|
+
|
|
64
|
+
// ================= THE BEAT =================
|
|
65
|
+
// 1) ask
|
|
66
|
+
type(q1, 1.1);
|
|
67
|
+
type(q2, 1.0);
|
|
68
|
+
wait(0.2);
|
|
69
|
+
|
|
70
|
+
// 2) both figures construct (side by side)
|
|
71
|
+
par { show(a1, 0.2); show(b1, 0.2); show(c1, 0.2); show(a2, 0.2); show(b2, 0.2); show(c2, 0.2); }
|
|
72
|
+
par {
|
|
73
|
+
draw(s1a, 0.5); draw(s1b, 0.5); draw(s1c, 0.5);
|
|
74
|
+
draw(s2a, 0.5); draw(s2b, 0.5); draw(s2c, 0.5);
|
|
75
|
+
}
|
|
76
|
+
par { show(o1); show(o2); pulse(o1); pulse(o2); }
|
|
77
|
+
par { show(lab1, 0.3); show(lab2, 0.3); }
|
|
78
|
+
wait(0.3);
|
|
79
|
+
|
|
80
|
+
// 3) options fly in, 2×2 reading order
|
|
81
|
+
seq {
|
|
82
|
+
par { show(c1c, 0.2); show(t1, 0.2); }
|
|
83
|
+
par { show(c2c, 0.2); show(t2, 0.2); }
|
|
84
|
+
par { show(c3c, 0.2); show(t3, 0.2); }
|
|
85
|
+
par { show(c4c, 0.2); show(t4, 0.2); }
|
|
86
|
+
}
|
|
87
|
+
show(footer, 0.3);
|
|
88
|
+
|
|
89
|
+
// 4) countdown 5 → 1
|
|
90
|
+
par { show(ring, 0.2); show(timer, 0.2); }
|
|
91
|
+
wait(0.8); say(timer, "4", 0.15);
|
|
92
|
+
wait(0.8); say(timer, "3", 0.15);
|
|
93
|
+
wait(0.8); say(timer, "2", 0.15);
|
|
94
|
+
wait(0.8); say(timer, "1", 0.15);
|
|
95
|
+
wait(0.8);
|
|
96
|
+
|
|
97
|
+
// 5) TIME OUT → reveal: card C (Obtuse) glows, the rest fade
|
|
98
|
+
say(timer, "0", 0.15); flash(ring, gold);
|
|
99
|
+
par {
|
|
100
|
+
recolor(c3c, lime); flash(c3c, gold); pulse(c3c);
|
|
101
|
+
recolor(t3, void);
|
|
102
|
+
fade(c1c, 0.5); fade(t1, 0.5);
|
|
103
|
+
fade(c2c, 0.5); fade(t2, 0.5);
|
|
104
|
+
fade(c4c, 0.5); fade(t4, 0.5);
|
|
105
|
+
flash(o2, gold); // the obtuse triangle's outside centre
|
|
106
|
+
}
|
|
107
|
+
wait(1.6);
|