{"slug": "learning-about-anything-with-antigravity", "title": "Learning about anything with Antigravity", "summary": "A developer used Google Antigravity's Orchestrator mode to turn a single prompt into Prime Prism 3D, a standalone 167 KB HTML app with a custom WebGL2 engine for exploring prime numbers through interactive 3D visualizations. The agent ran autonomously for 28 minutes, building the app and then running a WebSocket-based verification script that checked WebGL2 health, math assertions like π(100) = 25, and screenshots across two viewport sizes, with visual review of the screenshots catching three rendering bugs that code assertions missed.", "body_md": "*Turning a single prompt into a standalone 3D interactive math explorer (and how you can use the same workflow for any topic).*\n\nHave you ever tried to learn an abstract concept from a textbook page or a Wikipedia article? Did you stare at static diagrams wishing you could drag a slider to see what actually changes? Have you ever thought about coding a quick visualizer yourself, only to stop at project setup and 3D boilerplate?\n\nWith agentic environments like Google Antigravity, you can ask for intuition directly and get a custom interactive playground in minutes.\n\nIn this post, you’ll see how to…\n\n…and do it all from just one prompt!\n\nI started with an empty folder, opened Antigravity with **Orchestrator** mode selected, and typed one request:\n\n```\n/goal\nI want to build intuition about prime numbers.\nBuild a colorful standalone HTML app with interactive 3D animations.\n```\n\nThat’s it. No library choices, no UI wireframes, and no list of math theorems to implement.\n\nEvery piece of this short prompt pulls its weight:\n\n`/goal`:\nOnce I hit Enter, Antigravity ran autonomously for **28 minutes**. Here is the workflow it executed on its own:\n\n`10,000`, a custom WebGL2 engine with instanced meshes, star halos, and 3D ribbons, a Number DNA Inspector, a guided tour in 8 steps, and optional Web Audio chimes).`build.mjs`) validated syntax, confirmed zero external URLs, and emitted one readable `index.html` (`167 KB`, around `4,550` lines).`verify_app.mjs`) over native WebSockets. Opening `file:///.../index.html`, it checked WebGL2 health, zero `console.error` events, math assertions (`π(100) = 25`, `π(1000) = 168`, `360 = 2³ × 3² × 5`, Euler's streak of 40 primes, `41 = 5² + 4²`, Goldbach pairs for `100` and `210`), orbit drag, search, and 10 screenshots across `1440×900` and `1024×768`.\n*Note: The project folder stays clean! Because the build sources and test scripts live in Antigravity’s scratch directory, the destination folder holds only one file:* *`index.html`*.\n\nPassing unit tests doesn’t guarantee a 3D app actually looks good. Because `/goal` keeps auditing until completion, Antigravity opened every rendered screenshot to inspect the result visually.\n\nThat visual review caught three bugs that code assertions missed:\n\n`1024px` viewports.`v_edge` glow interpolation flipping across each quad, negated the endpoint width to align extrusion with glow falloff, rebuilt Watching an agent debug its own shaders from screenshots (without a single prompt from me) is where `/goal` shines.\n\nThe result is **Prime Prism 3D**. Each tab drops you into a live 3D experiment where numbers react to your mouse and sliders.\n\nIn **Sieve Wave Cascade** (shown at the top of this post), each prime p launches a colored shockwave starting at `p²` that knocks its multiples down into tiles colored by their smallest prime factor. Once the waves pass `√N` (`12` for `N = 144`), no new composites can fall, and every surviving pillar lights up in gold as a guaranteed prime.\n\nFlip to **Factor Tower City** , and every composite turns into a stacked tower of colored prime factor bricks (`12 = 2 × 2 × 3`) beside unbreakable golden prime monoliths.\n\nWhy do number theorists repeat `6k ± 1`? Wrap integers around a cylinder of modulus `M = 6`, and four spokes lock immediately to multiples of `2` or `3` (forcing every prime above `3` onto two twin laser rails).\n\nSlide the modulus to `M = 30` (`2 × 3 × 5`), and 22 of 30 spokes go dark on the spot, eliminating 73% of all integers at a glance.\n\nMorph smoothly between Ulam’s square spiral, Sacks’ polar spiral, and a Golden Hex spiral. Turn on **Mod 4** coloring to see Fermat’s Two Squares theorem: emerald primes (`4k + 1`) always equal `a² + b²` (`41 = 5² + 4²`), while coral primes (` 4k + 3`) never do.\n\nSwitch to **Sacks Polar** and highlight Euler’s `n² + n + 41`: a green curve threads through 40 consecutive primes before hitting `41² = 1,681`.\n\nSwitch to **π(x) & Zeta Zeros** and drag the harmonic slider from `0` to `30`: rotating phase rings sculpt a smooth curve into sharp steps at every prime power (Bernhard Riemann's *\"Music of the Primes\"* made tangible). In the companion **Divisor Waves** mode, each prime `p` sends out a `|sin(πx / p)|` wave that crushes composites on the front rail while prime spires erupt wherever every wave misses zero.\n\nBelow, rainbow arches pair primes `p + q = E` for any even `E ≤ 400`. Above floats the Goldbach Comet: pull the `E mod 6` slider to watch multiples of `6` (like `210 = 2 × 3 × 5 × 7`, with 19 pairs) soar in a golden upper wing with roughly twice as many prime sums!\n\nAntigravity also added thoughtful extras I never asked for: a **Number DNA Inspector** (`1` to `10,000`), 15 preset **\"Aha! Moments\"** , a **Guided Tour** in 8 steps, and optional Web Audio chimes.\n\nBecause **Prime Prism 3D** compiles down to a single HTML file with zero external dependencies, there is nothing to install. Open it in your browser, spin the 3D worlds with your mouse or finger, click any integer to inspect its prime factors, or launch the guided tour:\n\n👉 **Open Prime Prism 3D in your browser**\n\n*Note: You can also save the page (`Ctrl+S` or `Cmd+S`) as `index.html` on your computer (it runs 100% offline).*\n\nPrime numbers were just one test case. The exact same pattern works whenever a topic feels too abstract on paper:\n\n`file://` opening in any browser, and effortless sharing as one file.\nWant to try it right now? Drop one of these prompts into an empty folder:\n\n`/goal I want to build intuition about orbital mechanics, Hohmann transfers, and Lagrange points L4/L5. Build a colorful standalone HTML app with interactive 3D animations.`\n`/goal I want to build intuition about Fourier series, overtones, and consonance. Build a colorful standalone HTML app with interactive animations and Web Audio.`\n`/goal I want to build intuition about Raft consensus, leader election, and quorum failures. Build a colorful standalone HTML simulator where I can drop packets and kill nodes.`\n`/goal I want to build intuition about enzyme kinetics and competitive vs. allosteric inhibition. Build a colorful standalone HTML explorer with live particle simulations.`\nStatic diagrams show you the finished rule, but an interactive playground lets you *feel* why it holds. Next time a book chapter, research paper, or midnight rabbit hole sparks a question, drop a `/goal` prompt into Google Antigravity and see what explorer comes back.\n\n🖖 *Feedback, questions, or a fun interactive explorer you built? I’d love to read from you!*\n\n🪢 *Follow me on [Twitter/X](https://x.com/PicardParis) or [LinkedIn](https://www.linkedin.com/in/picardparis/) for more explorations…*", "url": "https://wpnews.pro/news/learning-about-anything-with-antigravity", "canonical_source": "https://dev.to/googleai/learning-about-anything-with-antigravity-5d4h", "published_at": "2026-12-01 10:08:01+00:00", "updated_at": "2026-12-01 10:13:26.366818+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "generative-ai", "developer-tools"], "entities": ["Google Antigravity", "Prime Prism 3D", "WebGL2"], "also_reported_by": [], "takeaway": "Running an agent in an autonomous goal mode for 28 minutes, then having it screenshot and visually inspect its own rendered output, caught three shader and layout bugs that unit-test assertions missed.", "recommendation": {"advice": "When an agent builds UI or 3D output, have it capture screenshots at multiple viewport sizes and inspect them visually, since passing code assertions alone missed three rendering bugs here.", "playbook": "coding-agents", "playbook_url": "https://wpnews.pro/playbooks/coding-agents"}, "alternates": {"html": "https://wpnews.pro/news/learning-about-anything-with-antigravity", "markdown": "https://wpnews.pro/news/learning-about-anything-with-antigravity.md", "text": "https://wpnews.pro/news/learning-about-anything-with-antigravity.txt", "jsonld": "https://wpnews.pro/news/learning-about-anything-with-antigravity.jsonld"}}