@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,186 @@
|
|
|
1
|
+
title("Clustered Web Services on Google Cloud");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
template("neon");
|
|
4
|
+
|
|
5
|
+
let u = (w+h-abs(w-h))/1440;
|
|
6
|
+
watermark(mark, (w*0.15, h*0.025), "Made With Manic");
|
|
7
|
+
text(kicker, (cx, h*0.055), "GOOGLE CLOUD ARCHITECTURE · CLUSTERED WEB SERVICES");
|
|
8
|
+
text(headline, (cx, h*0.115), "Requests in. Responses back.");
|
|
9
|
+
text(caption, (cx, h*0.935), "Dashed paths describe what is connected—not what is moving now.");
|
|
10
|
+
size(kicker, 16*u); color(kicker, dim); bold(kicker);
|
|
11
|
+
size(headline, 29*u); bold(headline); wrap(headline, w*0.88);
|
|
12
|
+
size(caption, 18*u); color(caption, dim); wrap(caption, w*0.86);
|
|
13
|
+
|
|
14
|
+
if h > 1.25*w {
|
|
15
|
+
architecture(clusteredWeb, (cx, h*0.51), w*0.84, h*0.70);
|
|
16
|
+
text(requestKey, (w*0.36, h*0.225), "REQUEST");
|
|
17
|
+
arrow(requestSample, (w*0.48, h*0.225), (w*0.64, h*0.225));
|
|
18
|
+
text(responseKey, (w*0.36, h*0.265), "RESPONSE");
|
|
19
|
+
arrow(responseSample, (w*0.48, h*0.265), (w*0.64, h*0.265));
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
architecture(clusteredWeb, (cx, h*0.51), w*0.94, h*0.69);
|
|
23
|
+
text(requestKey, (w*0.105, h*0.205), "REQUEST");
|
|
24
|
+
arrow(requestSample, (w*0.15, h*0.205), (w*0.205, h*0.205));
|
|
25
|
+
text(responseKey, (w*0.105, h*0.245), "RESPONSE");
|
|
26
|
+
arrow(responseSample, (w*0.15, h*0.245), (w*0.205, h*0.245));
|
|
27
|
+
}
|
|
28
|
+
size(requestKey, 15*u); color(requestKey, fg); bold(requestKey);
|
|
29
|
+
size(responseKey, 15*u); hue(responseKey, 328, 0.90, 0.62); bold(responseKey);
|
|
30
|
+
color(requestSample, fg); stroke(requestSample, 3*u);
|
|
31
|
+
hue(responseSample, 328, 0.90, 0.62); dashed(responseSample, 10*u, 7*u);
|
|
32
|
+
stroke(responseSample, 4*u); glow(responseSample, 0.85);
|
|
33
|
+
hidden(requestKey); hidden(requestSample);
|
|
34
|
+
hidden(responseKey); hidden(responseSample);
|
|
35
|
+
|
|
36
|
+
node(dns, clusteredWeb, "gcp:dns", "cloud dns");
|
|
37
|
+
node(lb, clusteredWeb, "gcp:load-balancing", "load balancing");
|
|
38
|
+
|
|
39
|
+
cluster(services, clusteredWeb, "SERVICES");
|
|
40
|
+
node(web1, services, "gcp:kubernetes-engine", "web1");
|
|
41
|
+
node(web2, services, "gcp:kubernetes-engine", "web2");
|
|
42
|
+
node(web3, services, "gcp:kubernetes-engine", "web3");
|
|
43
|
+
|
|
44
|
+
cluster(database, clusteredWeb, "DB CLUSTER");
|
|
45
|
+
node(dbPrimary, database, "gcp:sql", "userdb");
|
|
46
|
+
node(dbReplica, database, "gcp:sql", "userdb ro");
|
|
47
|
+
|
|
48
|
+
node(cache, clusteredWeb, "gcp:memorystore", "memorystore");
|
|
49
|
+
|
|
50
|
+
connect(dnsToLb, dns, lb);
|
|
51
|
+
connect(lbToServices, lb, services);
|
|
52
|
+
connect(servicesToDb, services, dbPrimary);
|
|
53
|
+
connect(servicesToCache, services, cache, 145*u);
|
|
54
|
+
connect(dbToServices, dbPrimary, services, 42*u);
|
|
55
|
+
connect(servicesToLb, services, lb, 42*u);
|
|
56
|
+
connect(cacheToWeb2, cache, web2, 145*u);
|
|
57
|
+
hue(dbToServices.hot, 328, 0.90, 0.62);
|
|
58
|
+
hue(servicesToLb.hot, 328, 0.90, 0.62);
|
|
59
|
+
hue(cacheToWeb2.hot, 328, 0.90, 0.62);
|
|
60
|
+
dashed(dbToServices.hot, 10*u, 7*u);
|
|
61
|
+
dashed(servicesToLb.hot, 10*u, 7*u);
|
|
62
|
+
dashed(cacheToWeb2.hot, 10*u, 7*u);
|
|
63
|
+
stroke(dbToServices.hot, 4.5*u); glow(dbToServices.hot, 0.95);
|
|
64
|
+
stroke(servicesToLb.hot, 4.5*u); glow(servicesToLb.hot, 0.95);
|
|
65
|
+
stroke(cacheToWeb2.hot, 4.5*u); glow(cacheToWeb2.hot, 0.95);
|
|
66
|
+
link(replication, dbPrimary.card, dbReplica.card);
|
|
67
|
+
dashed(replication); color(replication, dim); stroke(replication, 2.5*u);
|
|
68
|
+
|
|
69
|
+
message(pageRequest, dns, "GET");
|
|
70
|
+
message(cacheRead, web2, "READ");
|
|
71
|
+
|
|
72
|
+
hidden(clusteredWeb.nodes);
|
|
73
|
+
hidden(services.parts); hidden(database.parts);
|
|
74
|
+
hidden(pageRequest.parts); hidden(cacheRead.parts);
|
|
75
|
+
untraced(dnsToLb); untraced(lbToServices);
|
|
76
|
+
untraced(servicesToDb); untraced(servicesToCache);
|
|
77
|
+
untraced(dbToServices); untraced(servicesToLb); untraced(cacheToWeb2);
|
|
78
|
+
untraced(replication);
|
|
79
|
+
|
|
80
|
+
step("entry") {
|
|
81
|
+
par {
|
|
82
|
+
show(dns, 0.40);
|
|
83
|
+
show(lb, 0.40);
|
|
84
|
+
say(caption, "Cloud DNS and Cloud Load Balancing form the public entry into the design.", 0.40);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
wait(0.20);
|
|
88
|
+
|
|
89
|
+
step("service-pool") {
|
|
90
|
+
par {
|
|
91
|
+
show(services.parts, 0.45);
|
|
92
|
+
stagger(0.10) {
|
|
93
|
+
show(web1, 0.35);
|
|
94
|
+
show(web2, 0.35);
|
|
95
|
+
show(web3, 0.35);
|
|
96
|
+
}
|
|
97
|
+
say(caption, "Three GKE services share one ownership boundary; no runtime choice is implied yet.", 0.40);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
wait(0.20);
|
|
101
|
+
|
|
102
|
+
step("state") {
|
|
103
|
+
par {
|
|
104
|
+
show(database.parts, 0.45);
|
|
105
|
+
show(dbPrimary, 0.40);
|
|
106
|
+
show(dbReplica, 0.40);
|
|
107
|
+
show(cache, 0.40);
|
|
108
|
+
say(caption, "The Cloud SQL cluster and Memorystore complete the static architecture.", 0.40);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
wait(0.20);
|
|
112
|
+
|
|
113
|
+
step("possible-topology") {
|
|
114
|
+
par {
|
|
115
|
+
draw(dnsToLb, 0.40);
|
|
116
|
+
draw(lbToServices, 0.60);
|
|
117
|
+
draw(servicesToDb, 0.60);
|
|
118
|
+
draw(servicesToCache, 0.60);
|
|
119
|
+
draw(replication, 0.45);
|
|
120
|
+
show(requestKey, 0.35); show(requestSample, 0.35);
|
|
121
|
+
show(responseKey, 0.35); show(responseSample, 0.35);
|
|
122
|
+
say(caption, "Every dashed lane is possible. The next moving object will identify the path actually used.", 0.40);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
wait(0.30);
|
|
126
|
+
|
|
127
|
+
step("request-to-database") {
|
|
128
|
+
par {
|
|
129
|
+
seq {
|
|
130
|
+
show(pageRequest.parts, 0.20);
|
|
131
|
+
route(pageRequest, dnsToLb, 0.65, smooth);
|
|
132
|
+
route(pageRequest, lbToServices, 0.90, smooth);
|
|
133
|
+
route(pageRequest, servicesToDb, 0.90, smooth);
|
|
134
|
+
}
|
|
135
|
+
say(caption, "This request follows one authored lane: dns → lb → web1 → userdb.", 0.40);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
wait(0.35);
|
|
139
|
+
|
|
140
|
+
step("database-response") {
|
|
141
|
+
par {
|
|
142
|
+
seq {
|
|
143
|
+
par {
|
|
144
|
+
say(pageRequest.label, "200 OK", 0.25);
|
|
145
|
+
to(pageRequest.parts, hue, 328, 0.25, smooth);
|
|
146
|
+
}
|
|
147
|
+
route(pageRequest, dbToServices, 0.90, smooth);
|
|
148
|
+
route(pageRequest, servicesToLb, 0.90, smooth);
|
|
149
|
+
}
|
|
150
|
+
say(caption, "The same identity returns userdb → web1 → lb. Cloud DNS resolved the name; it is not the HTTP response path.", 0.40);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
wait(0.35);
|
|
154
|
+
|
|
155
|
+
step("cache-round-trip") {
|
|
156
|
+
par {
|
|
157
|
+
seq {
|
|
158
|
+
show(cacheRead.parts, 0.20);
|
|
159
|
+
route(cacheRead, servicesToCache, 1.05, smooth);
|
|
160
|
+
par {
|
|
161
|
+
say(cacheRead.label, "HIT", 0.25);
|
|
162
|
+
to(cacheRead.parts, hue, 328, 0.25, smooth);
|
|
163
|
+
}
|
|
164
|
+
route(cacheRead, cacheToWeb2, 1.05, smooth);
|
|
165
|
+
}
|
|
166
|
+
say(caption, "A separate cache read travels web2 → memorystore, becomes HIT, and returns to that same service.", 0.40);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
wait(0.35);
|
|
170
|
+
|
|
171
|
+
step("replica-relationship") {
|
|
172
|
+
par {
|
|
173
|
+
flow(replication, 3.20, both, continuous);
|
|
174
|
+
say(caption, "The neutral database link can carry a two-way visual pulse only because the creator asked for it.", 0.40);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
wait(0.35);
|
|
178
|
+
|
|
179
|
+
step("takeaway") {
|
|
180
|
+
par {
|
|
181
|
+
pulse(services.parts, 0.70);
|
|
182
|
+
pulse(database.parts, 0.70);
|
|
183
|
+
say(caption, "Architecture stays readable; objects, paths, timing, and composition tell the runtime story.", 0.45);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
wait(1.40);
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
title("Message Collecting on Google Cloud — IoT to Data Lake");
|
|
2
|
+
canvas("16:9");
|
|
3
|
+
template("neon");
|
|
4
|
+
|
|
5
|
+
let u = (w+h-abs(w-h))/1440;
|
|
6
|
+
watermark(mark, (w*0.15, h*0.045), "Made With Manic");
|
|
7
|
+
text(kicker, (cx, h*0.05), "GOOGLE CLOUD · IOT MESSAGE COLLECTING");
|
|
8
|
+
text(headline, (cx, h*0.11), "Devices publish once. The pipeline fans out.");
|
|
9
|
+
text(caption, (cx, h*0.94), "Dashed relationships show every route the architecture allows.");
|
|
10
|
+
size(kicker, 15*u); color(kicker, dim); bold(kicker);
|
|
11
|
+
size(headline, 26*u); bold(headline); wrap(headline, w*0.88);
|
|
12
|
+
size(caption, 17*u); color(caption, dim); wrap(caption, w*0.86);
|
|
13
|
+
|
|
14
|
+
architecture(collect, (cx, h*0.52), w*0.96, h*0.72);
|
|
15
|
+
|
|
16
|
+
cluster(sourceData, collect, "SOURCE OF DATA");
|
|
17
|
+
node(core1, sourceData, "gcp:iot-core", "core1");
|
|
18
|
+
node(core2, sourceData, "gcp:iot-core", "core2");
|
|
19
|
+
node(core3, sourceData, "gcp:iot-core", "core3");
|
|
20
|
+
|
|
21
|
+
node(pubsub, collect, "gcp:pubsub", "pubsub");
|
|
22
|
+
|
|
23
|
+
cluster(targets, collect, "TARGETS");
|
|
24
|
+
|
|
25
|
+
cluster(dataFlow, targets, "DATA FLOW");
|
|
26
|
+
node(df, dataFlow, "gcp:dataflow", "data flow");
|
|
27
|
+
|
|
28
|
+
cluster(dataLake, targets, "DATA LAKE");
|
|
29
|
+
node(bq, dataLake, "gcp:bigquery", "bq");
|
|
30
|
+
node(gcs, dataLake, "gcp:storage", "storage");
|
|
31
|
+
|
|
32
|
+
cluster(eventDriven, targets, "EVENT DRIVEN");
|
|
33
|
+
|
|
34
|
+
cluster(processing, eventDriven, "PROCESSING");
|
|
35
|
+
node(engine, processing, "gcp:app-engine", "engine");
|
|
36
|
+
node(bigtable, processing, "gcp:bigtable", "bigtable");
|
|
37
|
+
|
|
38
|
+
cluster(serverless, eventDriven, "SERVERLESS");
|
|
39
|
+
node(func, serverless, "gcp:functions", "func");
|
|
40
|
+
node(appengine, serverless, "gcp:app-engine", "appengine");
|
|
41
|
+
|
|
42
|
+
// --- topology ---
|
|
43
|
+
connect(toPubsub, sourceData, pubsub); // [core1,core2,core3] >> pubsub
|
|
44
|
+
connect(toFlow, pubsub, df); // pubsub >> flow
|
|
45
|
+
connect(toBq, df, bq); // flow >> bq
|
|
46
|
+
connect(toGcs, df, gcs); // flow >> storage
|
|
47
|
+
connect(toEngine, df, engine); // flow >> engine
|
|
48
|
+
connect(engineToBt, engine, bigtable); // engine >> bigtable
|
|
49
|
+
connect(toFunc, df, func); // flow >> func
|
|
50
|
+
connect(funcToApp, func, appengine); // func >> appengine
|
|
51
|
+
|
|
52
|
+
// --- colour every path by its RELATIONSHIP (cold dashed line + hot overlay) ---
|
|
53
|
+
color(toPubsub, cyan); color(toPubsub.hot, cyan);
|
|
54
|
+
color(toFlow, cyan); color(toFlow.hot, cyan);
|
|
55
|
+
color(toBq, gold); color(toBq.hot, gold);
|
|
56
|
+
color(toGcs, gold); color(toGcs.hot, gold);
|
|
57
|
+
color(toEngine, magenta); color(toEngine.hot, magenta);
|
|
58
|
+
color(engineToBt, magenta);color(engineToBt.hot, magenta);
|
|
59
|
+
color(toFunc, lime); color(toFunc.hot, lime);
|
|
60
|
+
color(funcToApp, lime); color(funcToApp.hot, lime);
|
|
61
|
+
// legend
|
|
62
|
+
text(legIn, (w*0.22, h*0.175), "INGEST"); size(legIn, 13); color(legIn, cyan); bold(legIn);
|
|
63
|
+
text(legLake, (w*0.36, h*0.175), "DATA LAKE"); size(legLake, 13); color(legLake, gold); bold(legLake);
|
|
64
|
+
text(legProc, (w*0.54, h*0.175), "PROCESSING"); size(legProc, 13); color(legProc, magenta); bold(legProc);
|
|
65
|
+
text(legSls, (w*0.72, h*0.175), "SERVERLESS"); size(legSls, 13); color(legSls, lime); bold(legSls);
|
|
66
|
+
hidden(legIn); hidden(legLake); hidden(legProc); hidden(legSls);
|
|
67
|
+
|
|
68
|
+
message(msg, pubsub, "msg");
|
|
69
|
+
|
|
70
|
+
hidden(collect.nodes);
|
|
71
|
+
hidden(sourceData.parts); hidden(targets.parts); hidden(dataFlow.parts);
|
|
72
|
+
hidden(dataLake.parts); hidden(eventDriven.parts); hidden(processing.parts); hidden(serverless.parts);
|
|
73
|
+
hidden(msg.parts);
|
|
74
|
+
untraced(toPubsub); untraced(toFlow); untraced(toBq); untraced(toGcs);
|
|
75
|
+
untraced(toEngine); untraced(engineToBt); untraced(toFunc); untraced(funcToApp);
|
|
76
|
+
|
|
77
|
+
step("devices") {
|
|
78
|
+
par {
|
|
79
|
+
show(sourceData.parts, 0.45);
|
|
80
|
+
stagger(0.10) { show(core1, 0.35); show(core2, 0.35); show(core3, 0.35); }
|
|
81
|
+
show(pubsub, 0.40);
|
|
82
|
+
say(caption, "Three IoT Core devices publish into one Pub/Sub topic.", 0.40);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
wait(0.20);
|
|
86
|
+
|
|
87
|
+
step("targets") {
|
|
88
|
+
par {
|
|
89
|
+
show(targets.parts, 0.5);
|
|
90
|
+
show(dataFlow.parts, 0.4); show(df, 0.4);
|
|
91
|
+
show(dataLake.parts, 0.4); show(bq, 0.4); show(gcs, 0.4);
|
|
92
|
+
show(eventDriven.parts, 0.4);
|
|
93
|
+
show(processing.parts, 0.4); show(engine, 0.4); show(bigtable, 0.4);
|
|
94
|
+
show(serverless.parts, 0.4); show(func, 0.4); show(appengine, 0.4);
|
|
95
|
+
say(caption, "Dataflow is the hub; targets nest into a data lake, a processing branch, and a serverless branch.", 0.40);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
wait(0.25);
|
|
99
|
+
|
|
100
|
+
step("possible-topology") {
|
|
101
|
+
par {
|
|
102
|
+
stagger(0.07) {
|
|
103
|
+
draw(toPubsub, 0.4); draw(toFlow, 0.4); draw(toBq, 0.4); draw(toGcs, 0.4);
|
|
104
|
+
draw(toEngine, 0.4); draw(engineToBt, 0.4); draw(toFunc, 0.4); draw(funcToApp, 0.4);
|
|
105
|
+
}
|
|
106
|
+
show(legIn, 0.3); show(legLake, 0.3); show(legProc, 0.3); show(legSls, 0.3);
|
|
107
|
+
say(caption, "Every dashed edge is a possible relationship—not a claim that data is flowing.", 0.40);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
wait(0.30);
|
|
111
|
+
|
|
112
|
+
step("collect") {
|
|
113
|
+
par {
|
|
114
|
+
seq {
|
|
115
|
+
show(msg.parts, 0.2);
|
|
116
|
+
route(msg, toFlow, 0.9, smooth);
|
|
117
|
+
}
|
|
118
|
+
say(caption, "A published message reaches Dataflow through Pub/Sub.", 0.40);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
wait(0.25);
|
|
122
|
+
|
|
123
|
+
step("fan-out") {
|
|
124
|
+
par {
|
|
125
|
+
flow(toBq, 1.0); flow(toGcs, 1.0);
|
|
126
|
+
seq { flow(toEngine, 0.9); flow(engineToBt, 0.9); }
|
|
127
|
+
seq { flow(toFunc, 0.9); flow(funcToApp, 0.9); }
|
|
128
|
+
say(caption, "Dataflow fans out: BigQuery + storage (lake), App Engine → Bigtable, and Functions → App Engine.", 0.40);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
wait(0.30);
|
|
132
|
+
|
|
133
|
+
step("takeaway") {
|
|
134
|
+
par {
|
|
135
|
+
pulse(targets.parts, 0.70);
|
|
136
|
+
say(caption, "One publish; many destinations—each branch owns its own runtime and storage.", 0.45);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
wait(1.40);
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// geo-pythagoras-short — a SPLIT STAGE: the top third of the frame is a living
|
|
2
|
+
// generative `shader` artwork (domain-warped aurora plasma — pure art, showing off what
|
|
3
|
+
// per-pixel shaders do), and the bottom two-thirds is the most famous theorem in
|
|
4
|
+
// geometry drawn out on black: a 3-4-5 right triangle whose squares bloom to 9 + 16 = 25
|
|
5
|
+
// → a² + b² = c². Two concepts, one frame — the shader and the maths each at full value.
|
|
6
|
+
//
|
|
7
|
+
// manic examples/geo-pythagoras-short.manic
|
|
8
|
+
title("Why a² + b² = c²");
|
|
9
|
+
canvas("9:16");
|
|
10
|
+
template("black");
|
|
11
|
+
|
|
12
|
+
creator(me, "@anish2good name=Manic tagline=Turn_plain_text_into_math_videos yt=zarigatongy x=@anish2good web=8gwifi.org/manic accent=cyan secondary=magenta footer=signature cta=Try_it_free safe=reels");
|
|
13
|
+
|
|
14
|
+
// ===================== TOP STAGE : the shader as ART =====================
|
|
15
|
+
// A bold domain-warped flow field confined to the top band (v < BAND); pure black
|
|
16
|
+
// below it, with a crisp accent rule marking the seam. This is the shader showcase —
|
|
17
|
+
// motion, depth and colour, all one closed-form expression per pixel.
|
|
18
|
+
shader(art) {
|
|
19
|
+
let band = 0.34;
|
|
20
|
+
let inside = 1.0 - smoothstep(band - 0.02, band, v); // 1 in the top band, 0 below
|
|
21
|
+
|
|
22
|
+
// domain warp: fold the plane through itself twice for turbulent, liquid flow
|
|
23
|
+
let x = (u - 0.5) * asp;
|
|
24
|
+
let y = v / band; // 0 at top → 1 at the seam
|
|
25
|
+
let w1 = sin(x * 3.0 + t * 0.5) + cos(y * 4.0 - t * 0.3);
|
|
26
|
+
let w2 = sin((x + w1) * 2.6 - t * 0.4) * cos((y + w1) * 3.2 + t * 0.25);
|
|
27
|
+
let flow = 0.5 + 0.5 * sin(x * 4.0 + w2 * 2.2 + t * 0.6);
|
|
28
|
+
let bands = 0.5 + 0.5 * sin(y * 9.0 - w2 * 3.0 + t * 0.5); // aurora curtains
|
|
29
|
+
|
|
30
|
+
let hue = mod(244 + flow * 118 + w2 * 44, 360); // magenta → cyan aurora
|
|
31
|
+
let sat = 0.82;
|
|
32
|
+
let base = (0.14 + 0.62 * flow * bands) * inside;
|
|
33
|
+
|
|
34
|
+
// crisp bright accent rule along the seam (the two stages meet here)
|
|
35
|
+
let rule = smoothstep(0.006, 0.0, abs(v - band));
|
|
36
|
+
let val = base + rule * 0.85;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// ===================== BOTTOM STAGE : the proof on black =====================
|
|
40
|
+
// geometry of the 3-4-5 right triangle, sized + placed to live entirely below the seam
|
|
41
|
+
let ux = w * 0.070; // one unit
|
|
42
|
+
let ox = w * 0.36; // right-angle vertex x
|
|
43
|
+
let oy = h * 0.75; // right-angle vertex y (well below the art band)
|
|
44
|
+
|
|
45
|
+
// vertices: C (right angle), A (end of the 4-leg), B (end of the 3-leg)
|
|
46
|
+
point(pC, (ox, oy));
|
|
47
|
+
point(pA, (ox + 4*ux, oy));
|
|
48
|
+
point(pB, (ox, oy - 3*ux));
|
|
49
|
+
hidden(pC); hidden(pA); hidden(pB);
|
|
50
|
+
polygon(tri, (ox, oy), (ox + 4*ux, oy), (ox, oy - 3*ux), cyan);
|
|
51
|
+
rightangle(ra, pA, pC, pB);
|
|
52
|
+
// `untraced` starts a shape drawn-to-0% (opacity stays 1) so `draw` can pen it on —
|
|
53
|
+
// the outline traces edge by edge while the fill washes in.
|
|
54
|
+
untraced(tri); hidden(ra);
|
|
55
|
+
|
|
56
|
+
// squares on the two legs (areas 16 and 9) and on the hypotenuse (area 25)
|
|
57
|
+
polygon(sqA, (ox, oy), (ox + 4*ux, oy), (ox + 4*ux, oy + 4*ux), (ox, oy + 4*ux), gold);
|
|
58
|
+
polygon(sqB, (ox, oy), (ox, oy - 3*ux), (ox - 3*ux, oy - 3*ux), (ox - 3*ux, oy), lime);
|
|
59
|
+
polygon(sqC, (ox + 4*ux, oy), (ox + 7*ux, oy - 4*ux), (ox + 3*ux, oy - 7*ux), (ox, oy - 3*ux), magenta);
|
|
60
|
+
untraced(sqA); untraced(sqB); untraced(sqC);
|
|
61
|
+
|
|
62
|
+
// side length labels — on the triangle's own edges (dark ink on the cyan face)
|
|
63
|
+
caption(lb, "3", (ox + 26, oy - 1.5*ux), 32); color(lb, #06202a);
|
|
64
|
+
caption(la, "4", (ox + 2*ux, oy - 28), 32); color(la, #06202a);
|
|
65
|
+
caption(lc, "5", (ox + 2.6*ux, oy - 1.9*ux), 32); color(lc, #06202a);
|
|
66
|
+
hidden(la); hidden(lb); hidden(lc);
|
|
67
|
+
|
|
68
|
+
// area labels, sitting in each square (dark ink on the bright leg-squares, white on the hyp)
|
|
69
|
+
caption(cA, "16", (ox + 2*ux, oy + 2*ux), 44); color(cA, #101018);
|
|
70
|
+
caption(cB, "9", (ox - 1.5*ux, oy - 1.5*ux), 44); color(cB, #101018);
|
|
71
|
+
caption(cC, "25", (ox + 3.5*ux, oy - 3.5*ux), 44); color(cC, white);
|
|
72
|
+
hidden(cA); hidden(cB); hidden(cC);
|
|
73
|
+
|
|
74
|
+
// the payoff equations — tucked under the diagram, along the bottom edge
|
|
75
|
+
equation(eqn, (w*0.5, h*0.955), `9 + 16 = 25`, 46); hidden(eqn);
|
|
76
|
+
equation(eq2, (w*0.5, h*0.955), `a^2 + b^2 = c^2`, 46); hidden(eq2);
|
|
77
|
+
|
|
78
|
+
// hook + point text — in the seam gap between the art band and the diagram
|
|
79
|
+
caption(hook, "Why is this ALWAYS a right triangle?", (w*0.5, h*0.42), 32);
|
|
80
|
+
caption(point, "Every right triangle. Always.", (w*0.5, h*0.42), 34);
|
|
81
|
+
hidden(hook); hidden(point);
|
|
82
|
+
|
|
83
|
+
// ================= script =================
|
|
84
|
+
show(hook);
|
|
85
|
+
wait(2.4);
|
|
86
|
+
fade(hook, 0.4);
|
|
87
|
+
|
|
88
|
+
// BUILD — the triangle is DRAWN OUT edge by edge, then the right angle + side labels
|
|
89
|
+
draw(tri, 1.4);
|
|
90
|
+
wait(0.4);
|
|
91
|
+
show(ra);
|
|
92
|
+
wait(0.4);
|
|
93
|
+
show(la); show(lb); show(lc);
|
|
94
|
+
wait(1.2);
|
|
95
|
+
|
|
96
|
+
// RULE — squares DRAW out on the legs (pen tracing each side), then the areas appear
|
|
97
|
+
draw(sqA, 1.1); draw(sqB, 1.1);
|
|
98
|
+
wait(0.5);
|
|
99
|
+
show(cA); show(cB);
|
|
100
|
+
wait(1.4);
|
|
101
|
+
// then the hypotenuse square draws out — the payoff shape
|
|
102
|
+
draw(sqC, 1.3);
|
|
103
|
+
wait(0.5);
|
|
104
|
+
show(cC);
|
|
105
|
+
wait(1.6);
|
|
106
|
+
|
|
107
|
+
// TWIST — the two small squares add up to the big one
|
|
108
|
+
pulse(sqA, 1.4); pulse(sqB, 1.4);
|
|
109
|
+
show(eqn);
|
|
110
|
+
wait(1.6);
|
|
111
|
+
pulse(sqC, 1.6);
|
|
112
|
+
fade(eqn, 0.4);
|
|
113
|
+
show(eq2);
|
|
114
|
+
wait(2.0);
|
|
115
|
+
|
|
116
|
+
// POINT + hold
|
|
117
|
+
show(point);
|
|
118
|
+
wait(2.6);
|
|
119
|
+
endcard(me, "title=Try_Manic cta=8gwifi.org/manic");
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// glsl-boxgrid — the ACTUAL Shadertoy (tssSDN) that started this whole thread,
|
|
2
|
+
// running in manic UNCHANGED via the `glsl` V3 path. Our CPU rebuild
|
|
3
|
+
// (examples/raymarch-boxgrid.manic) traded resolution for the no-GPU farm; this
|
|
4
|
+
// hands the real fragment shader straight to the graphics pipeline, so it renders
|
|
5
|
+
// PER PIXEL at full resolution — GPU-marched on Mac, JIT-to-CPU on llvmpipe prod,
|
|
6
|
+
// WebGL in the browser. Same shader, three targets. This IS capture.webm.
|
|
7
|
+
//
|
|
8
|
+
// Original shader: https://www.shadertoy.com/view/tssSDN (ukeyshima)
|
|
9
|
+
// manic examples/glsl-boxgrid.manic
|
|
10
|
+
canvas("16:9");
|
|
11
|
+
template("black");
|
|
12
|
+
|
|
13
|
+
glsl(scene, `
|
|
14
|
+
#define MAX_DIST 1000.
|
|
15
|
+
#define SURF_DIST .0001
|
|
16
|
+
#define EPS .0001
|
|
17
|
+
#define PI 3.141592
|
|
18
|
+
#define PI2 PI*2.
|
|
19
|
+
#define REP(p,r) mod(p,r) - r * .5
|
|
20
|
+
|
|
21
|
+
float rand(vec2 co){ return fract(sin(dot(co, vec2(12.9898, 78.233))) * 43758.5453); }
|
|
22
|
+
float sdSphere(vec3 p, float s){ return length(p) - s; }
|
|
23
|
+
float sdBox(vec3 p, vec3 b){ vec3 q = abs(p) - b; return length(max(q, 0.)) + min(max(q.x, max(q.y, q.z)), 0.); }
|
|
24
|
+
vec2 minMat(vec2 d1, vec2 d2){ return (d1.x < d2.x) ? d1 : d2; }
|
|
25
|
+
|
|
26
|
+
float rep = .04;
|
|
27
|
+
|
|
28
|
+
vec2 scene(vec3 p){
|
|
29
|
+
vec2 d = vec2(100000., 0.);
|
|
30
|
+
float t = iTime;
|
|
31
|
+
vec3 q = p;
|
|
32
|
+
vec3 spo = vec3(sin(t * 1.8) * .25, .32, cos(t * 2.2) * .3);
|
|
33
|
+
vec3 sp = q - spo;
|
|
34
|
+
d.x = sdSphere(sp, .075);
|
|
35
|
+
vec2 id = floor(q.xz / rep);
|
|
36
|
+
float hash = rand(id * .001);
|
|
37
|
+
q.xz = mod(q.xz, rep) - rep * .5;
|
|
38
|
+
vec3 bcp = vec3(0.);
|
|
39
|
+
bcp.xz = id * rep + rep * .5;
|
|
40
|
+
float bsDist = length(spo.xz - bcp.xz);
|
|
41
|
+
float s = smoothstep(0., .5, bsDist);
|
|
42
|
+
q -= vec3(0., .125 - (sin(hash * PI2 + t * (2. + bsDist * .015)) * .05) * (1. - pow(s, .9)), 0.);
|
|
43
|
+
d = minMat(d, vec2(sdBox(q, vec3(rep * .5, .1, rep * .5)), 1.));
|
|
44
|
+
return d;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
vec3 getNormal(vec3 p){
|
|
48
|
+
vec2 e = vec2(EPS, 0.);
|
|
49
|
+
return normalize(vec3(scene(p + e.xyy).x - scene(p - e.xyy).x,
|
|
50
|
+
scene(p + e.yxy).x - scene(p - e.yxy).x,
|
|
51
|
+
scene(p + e.yyx).x - scene(p - e.yyx).x));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
vec2 raymarch(vec3 ro, vec3 rd, float side){
|
|
55
|
+
float accDist = 0.; float mat = 0.;
|
|
56
|
+
for(int i = 0; i < 128; i++){
|
|
57
|
+
vec3 p = ro + rd * accDist;
|
|
58
|
+
vec2 result = scene(p);
|
|
59
|
+
float dist = result.x * side;
|
|
60
|
+
vec3 rdi = 1. / rd;
|
|
61
|
+
mat = result.y;
|
|
62
|
+
if(abs(dist) < SURF_DIST || accDist > MAX_DIST) break;
|
|
63
|
+
accDist += min(min((step(0., rd.x) - mod(p.x, rep)) * rdi.x,
|
|
64
|
+
(step(0., rd.z) - mod(p.z, rep)) * rdi.z) + .0001, dist);
|
|
65
|
+
}
|
|
66
|
+
return vec2(accDist, mat);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
vec3 getRayDir(vec2 uv, vec3 p, vec3 l, float z){
|
|
70
|
+
vec3 forward = normalize(l - p);
|
|
71
|
+
vec3 right = normalize(cross(forward, vec3(0., 1., 0.)));
|
|
72
|
+
vec3 up = normalize(cross(right, forward));
|
|
73
|
+
return normalize(right * uv.x + up * uv.y + forward * z);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
void mainImage(out vec4 fragColor, in vec2 fragCoord){
|
|
77
|
+
float t = iTime;
|
|
78
|
+
vec2 uv = (fragCoord.xy * 2. - iResolution.xy) / min(iResolution.x, iResolution.y);
|
|
79
|
+
vec3 ro = vec3(1., 1., 1.2);
|
|
80
|
+
vec3 ta = vec3(0., .2, 0.);
|
|
81
|
+
vec3 rd = getRayDir(uv, ro, ta, 3.5);
|
|
82
|
+
vec2 result = raymarch(ro, rd, 1.);
|
|
83
|
+
float dist = result.x; float mat = result.y;
|
|
84
|
+
vec3 col = vec3(0.);
|
|
85
|
+
if(dist < MAX_DIST){
|
|
86
|
+
vec3 p = ro + rd * dist;
|
|
87
|
+
vec3 l = normalize(vec3(1., 1., -1.));
|
|
88
|
+
vec3 n = getNormal(p);
|
|
89
|
+
float diffuse = dot(l, n) * .5 + .5;
|
|
90
|
+
vec3 diffuseColor = vec3(diffuse);
|
|
91
|
+
if(mat < .5){ diffuseColor *= vec3(1., 0., 0.); }
|
|
92
|
+
else {
|
|
93
|
+
diffuseColor *= vec3(1.);
|
|
94
|
+
if(n.x > .5) diffuseColor = diffuse * vec3(1., 0., 0.);
|
|
95
|
+
if(n.y > .5) diffuseColor = diffuse * vec3(1., .9, .9);
|
|
96
|
+
if(n.z > .5) diffuseColor = diffuse * vec3(.6, 0., 0.);
|
|
97
|
+
}
|
|
98
|
+
col = diffuseColor;
|
|
99
|
+
}
|
|
100
|
+
col = pow(col, vec3(.4545));
|
|
101
|
+
fragColor = vec4(col, 1.);
|
|
102
|
+
}
|
|
103
|
+
`);
|
|
104
|
+
|
|
105
|
+
wait(12);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// glsl-parameter — a RAW GLSL shader driven by a scene `parameter`. Step 5 of the
|
|
2
|
+
// shader backbone: `glsl()` is now a full citizen of the uniform table, so a paste
|
|
3
|
+
// that DECLARES `uniform float u_<name>;` auto-binds to the matching `parameter`
|
|
4
|
+
// (and `uniform vec3 iCamEye;` etc. would bind to `camera3`). Here `u_freq` is a
|
|
5
|
+
// slider: the same shader re-renders as you sweep it — no re-paste, no edits.
|
|
6
|
+
//
|
|
7
|
+
// manic examples/glsl-parameter.manic
|
|
8
|
+
title("A raw GLSL shader, driven by a slider");
|
|
9
|
+
canvas("16:9");
|
|
10
|
+
template("black");
|
|
11
|
+
|
|
12
|
+
parameter(freq, (640, 660), 3, 1, 16, "freq", 0);
|
|
13
|
+
|
|
14
|
+
glsl(scene, `
|
|
15
|
+
uniform float u_freq;
|
|
16
|
+
void mainImage(out vec4 o, in vec2 fc){
|
|
17
|
+
vec2 uv = fc / iResolution;
|
|
18
|
+
vec2 c = uv - 0.5;
|
|
19
|
+
c.x *= iResolution.x / iResolution.y; // aspect-correct
|
|
20
|
+
float d = length(c);
|
|
21
|
+
float rings = 0.5 + 0.5 * sin(d * u_freq * 32.0 - iTime);
|
|
22
|
+
vec3 col = vec3(rings, 1.0 - rings, 0.5 + 0.5 * sin(d * u_freq * 8.0));
|
|
23
|
+
o = vec4(col, 1.0);
|
|
24
|
+
}
|
|
25
|
+
`);
|
|
26
|
+
|
|
27
|
+
caption(head, "glsl ← parameter", (640, 66), 34);
|
|
28
|
+
hidden(head);
|
|
29
|
+
show(head);
|
|
30
|
+
to(freq, value, 16, 6, smooth);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// glsl-raymarch — Shader V3: run a REAL GLSL fragment shader, full resolution.
|
|
2
|
+
// `glsl(id, `<shader>`)` hands a Shadertoy-style `mainImage` straight to the GPU
|
|
3
|
+
// (macroquad material) — so the whole scene is marched PER PIXEL by the graphics
|
|
4
|
+
// pipeline: crisp, anti-aliased, and fast, with `iTime`/`iResolution`/`iMouse`
|
|
5
|
+
// uniforms. The same shader runs on Metal (Mac), llvmpipe (headless prod, JIT to
|
|
6
|
+
// CPU), and WebGL (browser). This is the path to true Shadertoy quality in manic
|
|
7
|
+
// — paste a shader, it just runs.
|
|
8
|
+
//
|
|
9
|
+
// manic examples/glsl-raymarch.manic
|
|
10
|
+
title("A real GLSL raymarch — full resolution");
|
|
11
|
+
canvas("16:9");
|
|
12
|
+
template("black");
|
|
13
|
+
|
|
14
|
+
glsl(scene, `
|
|
15
|
+
float sdSphere(vec3 p, float r){ return length(p) - r; }
|
|
16
|
+
float map(vec3 p){
|
|
17
|
+
vec3 q = p;
|
|
18
|
+
q.xy = mod(q.xy + 1.0, 2.0) - 1.0; // infinite grid
|
|
19
|
+
float bob = 0.18 * sin(iTime*1.6 + p.x*0.8 + p.y*0.7);
|
|
20
|
+
return sdSphere(q - vec3(0.0, 0.0, bob), 0.42);
|
|
21
|
+
}
|
|
22
|
+
vec3 nrm(vec3 p){
|
|
23
|
+
vec2 e = vec2(0.001, 0.0);
|
|
24
|
+
return normalize(vec3(map(p+e.xyy)-map(p-e.xyy),
|
|
25
|
+
map(p+e.yxy)-map(p-e.yxy),
|
|
26
|
+
map(p+e.yyx)-map(p-e.yyx)));
|
|
27
|
+
}
|
|
28
|
+
void mainImage(out vec4 o, in vec2 fc){
|
|
29
|
+
vec2 uv = (fc*2.0 - iResolution)/min(iResolution.x, iResolution.y);
|
|
30
|
+
vec3 ro = vec3(sin(iTime*0.3)*0.7, cos(iTime*0.25)*0.5, 3.0);
|
|
31
|
+
vec3 rd = normalize(vec3(uv, -1.6));
|
|
32
|
+
float t = 0.0; float hit = 0.0;
|
|
33
|
+
for(int i=0;i<110;i++){
|
|
34
|
+
vec3 p = ro + rd*t;
|
|
35
|
+
float d = map(p);
|
|
36
|
+
if(d < 0.001){ hit = 1.0; break; }
|
|
37
|
+
t += d;
|
|
38
|
+
if(t > 24.0) break;
|
|
39
|
+
}
|
|
40
|
+
vec3 col = vec3(0.04, 0.05, 0.08);
|
|
41
|
+
if(hit > 0.5){
|
|
42
|
+
vec3 p = ro + rd*t;
|
|
43
|
+
vec3 n = nrm(p);
|
|
44
|
+
float diff = max(dot(n, normalize(vec3(0.6, 0.8, 0.5))), 0.0)*0.7 + 0.3;
|
|
45
|
+
vec3 base = 0.5 + 0.5*cos(iTime + p.xyx*0.6 + vec3(0.0, 2.0, 4.0)); // iridescent
|
|
46
|
+
col = base * diff;
|
|
47
|
+
}
|
|
48
|
+
o = vec4(pow(col, vec3(0.4545)), 1.0);
|
|
49
|
+
}
|
|
50
|
+
`);
|
|
51
|
+
|
|
52
|
+
caption(head, "A real GLSL raymarch", (640, 66), 34);
|
|
53
|
+
caption(sub, "glsl(...) runs a fragment shader per pixel — full res, fast", (640, 122), 22);
|
|
54
|
+
hidden(head);
|
|
55
|
+
hidden(sub);
|
|
56
|
+
show(head);
|
|
57
|
+
wait(1.6);
|
|
58
|
+
show(sub);
|
|
59
|
+
wait(24);
|