[{"data":1,"prerenderedAt":289,"buildId":290},["ShallowReactive",2],{"doc-\u002Fdocs\u002Fprimitives\u002Fop\u002Fgrowthfront":3,"github-stars":197,"guide-nav":199},{"id":4,"title":5,"body":6,"categoryId":72,"categorySlug":72,"categoryTitle":182,"curated":183,"description":184,"editUrl":185,"extension":186,"group":187,"groupTitle":188,"kind":189,"meta":190,"navigation":191,"path":192,"seo":193,"sourceUrl":194,"stem":195,"wordCount":185,"__hash__":196},"primitives\u002Fdocs\u002Fprimitives\u002F47.op\u002F7.growthfront.md","growthFront",{"type":7,"value":8,"toc":177},"minimark",[9,13,34,67,81,87,92,129,133,173],[10,11,5],"h1",{"id":12},"growthfront",[14,15,16,17,21,22,25,26,29,30,33],"p",{},"A spreading boundary in ",[18,19,20],"code",{},".x"," that creeps outward from seeded cells (",[18,23,24],{},".x = 1"," from ",[18,27,28],{},"init"," or a splat) at ",[18,31,32],{},"rate"," cells per second.",[35,36,41],"pre",{"className":37,"code":38,"language":39,"meta":40,"style":40},"language-ts shiki shiki-themes github-dark","growthFront(config: {rate: OpArg; roughness?: OpArg; reverse?: OpArg}): GrowthFrontOp\n","ts","",[18,42,43],{"__ignoreMap":40},[44,45,48,51,55,59,62,64],"span",{"class":46,"line":47},"line",1,[44,49,5],{"class":50},"svObZ",[44,52,54],{"class":53},"s95oV","(config: {rate: OpArg; roughness",[44,56,58],{"class":57},"snl16","?:",[44,60,61],{"class":53}," OpArg; reverse",[44,63,58],{"class":57},[44,65,66],{"class":53}," OpArg}): GrowthFrontOp\n",[14,68,69,70,25,73,76,77,80],{},"Import ",[18,71,72],{},"op",[18,74,75],{},"shaders\u002Fstd"," and use ",[18,78,79],{},"op.growthFront",".",[14,82,83,86],{},[18,84,85],{},"reverse"," (0 or 1, a prop is fine) makes it retreat.",[88,89,91],"h2",{"id":90},"parameters","Parameters",[93,94,95,111],"table",{},[96,97,98],"thead",{},[99,100,101,105,108],"tr",{},[102,103,104],"th",{},"Name",[102,106,107],{},"Type",[102,109,110],{},"Notes",[112,113,114],"tbody",{},[99,115,116,122,127],{},[117,118,119],"td",{},[18,120,121],{},"config",[117,123,124],{},[18,125,126],{},"{rate: OpArg; roughness?: OpArg; reverse?: OpArg}",[117,128],{},[88,130,132],{"id":131},"example","Example",[35,134,136],{"className":37,"code":135,"language":39,"meta":40,"style":40},"op.growthFront({rate: 6, roughness: 0.6, reverse: p('melt')})\n",[18,137,138],{"__ignoreMap":40},[44,139,140,143,145,148,152,155,158,161,163,166,170],{"class":46,"line":47},[44,141,142],{"class":53},"op.",[44,144,5],{"class":50},[44,146,147],{"class":53},"({rate: ",[44,149,151],{"class":150},"sDLfK","6",[44,153,154],{"class":53},", roughness: ",[44,156,157],{"class":150},"0.6",[44,159,160],{"class":53},", reverse: ",[44,162,14],{"class":50},[44,164,165],{"class":53},"(",[44,167,169],{"class":168},"sU2Wk","'melt'",[44,171,172],{"class":53},")})\n",[174,175,176],"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 pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}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 .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}",{"title":40,"searchDepth":178,"depth":178,"links":179},2,[180,181],{"id":90,"depth":178,"text":91},{"id":131,"depth":178,"text":132},"Grid steps",false,"A spreading boundary in `.x` that creeps outward from seeded cells (`.x = 1` from `init` or a splat) at `rate` cells per second.",null,"md","simulation","Simulation","function",{},true,"\u002Fdocs\u002Fprimitives\u002Fop\u002Fgrowthfront",{"title":5,"description":184},"https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fstd\u002Fops.ts#L166","docs\u002Fprimitives\u002F47.op\u002F7.growthfront","NDWfhNqyMs4pjzrs0TdwaLhlH75TcVEmM8P1s-b24No",{"stars":198},6080,[200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,269,273,277,281,285],{"path":201,"title":202,"description":203,"category":18},"\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":205,"title":206,"description":207,"category":18},"\u002Fdocs\u002Fguide\u002Fquickstart","Quickstart","Install Shaders, render your first effect, and drive a prop from state.",{"path":209,"title":210,"description":211,"category":18},"\u002Fdocs\u002Fguide\u002Fcomposing-effects","Composing effects","Stack components as layers and nest them to control which layers an effect touches.",{"path":213,"title":214,"description":215,"category":18},"\u002Fdocs\u002Fguide\u002Fblending-masking","Blending and masking","Control how a layer mixes with the layers below it, and reveal one layer through another.",{"path":217,"title":218,"description":219,"category":18},"\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":221,"title":222,"description":223,"category":18},"\u002Fdocs\u002Fguide\u002Fanimation","Animating a shader","Tween a shader's props with Motion, GSAP or anything else that animates a number.",{"path":225,"title":226,"description":227,"category":18},"\u002Fdocs\u002Fguide\u002Fdynamic-props","Dynamic props","Drive any numeric or position prop from time, the cursor, or another layer, without writing animation code.",{"path":229,"title":230,"description":231,"category":18},"\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":233,"title":234,"description":235,"category":18},"\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":237,"title":238,"description":239,"category":18},"\u002Fdocs\u002Fguide\u002Ftransforms","Transforms","Position, size, and rotate any layer inside the canvas with a bounding box, in any CSS unit.",{"path":241,"title":242,"description":243,"category":18},"\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":245,"title":246,"description":247,"category":18},"\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":249,"title":250,"description":251,"category":18},"\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":253,"title":254,"description":255,"category":18},"\u002Fdocs\u002Fguide\u002Fperformance","Performance","Learn what makes an effect expensive on the GPU and how to keep it inside the frame budget.",{"path":257,"title":258,"description":259,"category":18},"\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":261,"title":262,"description":263,"category":18},"\u002Fdocs\u002Fguide\u002Ftelemetry","Telemetry","The `\u003CShader>` component occasionally sends an anonymous performance report to help us improve the engine over time.",{"path":265,"title":266,"description":267,"category":268},"\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":270,"title":271,"description":272,"category":268},"\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":274,"title":275,"description":276,"category":268},"\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":278,"title":279,"description":280,"category":18},"\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":282,"title":283,"description":284,"category":18},"\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":286,"title":287,"description":288,"category":18},"\u002Fdocs\u002Fguide\u002Fssr","Server rendering","Render Shaders in Next.js, Nuxt, SvelteKit, SolidStart and other SSR apps by keeping each shader on the client.",1796051186261,"06e02370-81a6-4d74-9931-661d71414be1"]