[{"data":1,"prerenderedAt":228,"buildId":229},["ShallowReactive",2],{"doc-\u002Fdocs\u002Fprimitives\u002Fop\u002Fautomaton":3,"github-stars":136,"guide-nav":138},{"id":4,"title":5,"body":6,"categoryId":47,"categorySlug":47,"categoryTitle":121,"curated":122,"description":123,"editUrl":124,"extension":125,"group":126,"groupTitle":127,"kind":128,"meta":129,"navigation":130,"path":131,"seo":132,"sourceUrl":133,"stem":134,"wordCount":124,"__hash__":135},"primitives\u002Fdocs\u002Fprimitives\u002F47.op\u002F9.automaton.md","automaton",{"type":7,"value":8,"toc":116},"minimark",[9,12,21,42,56,61,98,102,112],[10,11,5],"h1",{"id":5},[13,14,15,16,20],"p",{},"A cellular automaton on ",[17,18,19],"code",{},".x",".",[22,23,28],"pre",{"className":24,"code":25,"language":26,"meta":27,"style":27},"language-ts shiki shiki-themes github-dark","automaton(config: {birth: readonly number[]; survive: readonly number[]}): AutomatonOp\n","ts","",[17,29,30],{"__ignoreMap":27},[31,32,35,38],"span",{"class":33,"line":34},"line",1,[31,36,5],{"class":37},"svObZ",[31,39,41],{"class":40},"s95oV","(config: {birth: readonly number[]; survive: readonly number[]}): AutomatonOp\n",[13,43,44,45,48,49,52,53,20],{},"Import ",[17,46,47],{},"op"," from ",[17,50,51],{},"shaders\u002Fstd"," and use ",[17,54,55],{},"op.automaton",[57,58,60],"h2",{"id":59},"parameters","Parameters",[62,63,64,80],"table",{},[65,66,67],"thead",{},[68,69,70,74,77],"tr",{},[71,72,73],"th",{},"Name",[71,75,76],{},"Type",[71,78,79],{},"Notes",[81,82,83],"tbody",{},[68,84,85,91,96],{},[86,87,88],"td",{},[17,89,90],{},"config",[86,92,93],{},[17,94,95],{},"{birth: readonly number[]; survive: readonly number[]}",[86,97],{},[57,99,101],{"id":100},"example","Example",[22,103,105],{"className":24,"code":104,"language":26,"meta":27,"style":27},"`op.automaton({birth: [3], survive: [2, 3]})`\n",[17,106,107],{"__ignoreMap":27},[31,108,109],{"class":33,"line":34},[31,110,104],{"class":111},"sU2Wk",[113,114,115],"style",{},"html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}",{"title":27,"searchDepth":117,"depth":117,"links":118},2,[119,120],{"id":59,"depth":117,"text":60},{"id":100,"depth":117,"text":101},"Grid steps",false,"A cellular automaton on `.x`.",null,"md","simulation","Simulation","function",{},true,"\u002Fdocs\u002Fprimitives\u002Fop\u002Fautomaton",{"title":5,"description":123},"https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fstd\u002Fops.ts#L148","docs\u002Fprimitives\u002F47.op\u002F9.automaton","TFPVZ1Ysgpyi-Xoo4oSdjh0vbjvWo8N0pU62LP3fbmQ",{"stars":137},6080,[139,143,147,151,155,159,163,167,171,175,179,183,187,191,195,199,203,208,212,216,220,224],{"path":140,"title":141,"description":142,"category":17},"\u002Fdocs\u002Fguide","Getting started","Shaders is a desktop app where your AI agent designs interactive effects on an infinite canvas, and you shape them by hand.",{"path":144,"title":145,"description":146,"category":17},"\u002Fdocs\u002Fguide\u002Fquickstart","Quickstart","Install Shaders, render your first effect, and drive a prop from state.",{"path":148,"title":149,"description":150,"category":17},"\u002Fdocs\u002Fguide\u002Fcomposing-effects","Composing effects","Stack components as layers and nest them to control which layers an effect touches.",{"path":152,"title":153,"description":154,"category":17},"\u002Fdocs\u002Fguide\u002Fblending-masking","Blending and masking","Control how a layer mixes with the layers below it, and reveal one layer through another.",{"path":156,"title":157,"description":158,"category":17},"\u002Fdocs\u002Fguide\u002Fprops-reactivity","Props and reactivity","Bind props to your framework's state so effects update when it changes, and animate props with an animation library.",{"path":160,"title":161,"description":162,"category":17},"\u002Fdocs\u002Fguide\u002Fanimation","Animating a shader","Tween a shader's props with Motion, GSAP or anything else that animates a number.",{"path":164,"title":165,"description":166,"category":17},"\u002Fdocs\u002Fguide\u002Fdynamic-props","Dynamic props","Drive any numeric or position prop from time, the cursor, or another layer, without writing animation code.",{"path":168,"title":169,"description":170,"category":17},"\u002Fdocs\u002Fguide\u002Flayout-positioning","Layout and positioning","Size and place a shader in your page with CSS, as a background, a fill, or an inline block.",{"path":172,"title":173,"description":174,"category":17},"\u002Fdocs\u002Fguide\u002Fsizing-and-units","Sizing and units","Size and place layers in CSS units (px, %, vw, rem, and canvas units) that stay correct as the canvas and window resize.",{"path":176,"title":177,"description":178,"category":17},"\u002Fdocs\u002Fguide\u002Ftransforms","Transforms","Position, size, and rotate any layer inside the canvas with a bounding box, in any CSS unit.",{"path":180,"title":181,"description":182,"category":17},"\u002Fdocs\u002Fguide\u002Fshape-effects","Shape effects","Pick the 2D, 3D or custom SVG shape that Glass, Neon, Emboss and other shape effects draw inside.",{"path":184,"title":185,"description":186,"category":17},"\u002Fdocs\u002Fguide\u002Fcolor-space","Color space","Match colors to your design tool with the output color space, and keep bright layers from clipping with tone mapping.",{"path":188,"title":189,"description":190,"category":17},"\u002Fdocs\u002Fguide\u002Fhooks-events","Hooks and events","Run code when an effect is ready to show, and show a fallback when the GPU can't run it.",{"path":192,"title":193,"description":194,"category":17},"\u002Fdocs\u002Fguide\u002Fperformance","Performance","Learn what makes an effect expensive on the GPU and how to keep it inside the frame budget.",{"path":196,"title":197,"description":198,"category":17},"\u002Fdocs\u002Fguide\u002Fcustom-shaders","Custom components","Write your own component in TypeScript, use it like any component in the library, and write WGSL by hand when you need to.",{"path":200,"title":201,"description":202,"category":17},"\u002Fdocs\u002Fguide\u002Ftelemetry","Telemetry","The `\u003CShader>` component occasionally sends an anonymous performance report to help us improve the engine over time.",{"path":204,"title":205,"description":206,"category":207},"\u002Fdocs\u002Fguide\u002Fmcp","Working with your agent","The Shaders MCP connects your AI agent to the desktop app, so it can design shaders on your canvas and install them in your project.","workflows",{"path":209,"title":210,"description":211,"category":207},"\u002Fdocs\u002Fguide\u002Fcli","Working with the CLI","The Shaders CLI installs shaders from your projects and the Pro library into your codebase as component files, and keeps them in sync as you keep designing.",{"path":213,"title":214,"description":215,"category":207},"\u002Fdocs\u002Fguide\u002Fframeworks","Supported frameworks","Shaders runs in any web project that renders in a browser with WebGPU, with components for React, Vue, Svelte and Solid and a JavaScript API for everything else.",{"path":217,"title":218,"description":219,"category":17},"\u002Fdocs\u002Fguide\u002Fagent-skill","Agent skill for the engine","Teach your coding agent to write Shaders code with the open-source engine, for when it's working in your codebase instead of on the canvas.",{"path":221,"title":222,"description":223,"category":17},"\u002Fdocs\u002Fguide\u002Fvideo-rendering","Rendering to video","Render a shader effect to video frame by frame, from Remotion, Hyperframes or your own headless Chrome script.",{"path":225,"title":226,"description":227,"category":17},"\u002Fdocs\u002Fguide\u002Fssr","Server rendering","Render Shaders in Next.js, Nuxt, SvelteKit, SolidStart and other SSR apps by keeping each shader on the client.",1796051186276,"06e02370-81a6-4d74-9931-661d71414be1"]