[{"data":1,"prerenderedAt":232,"buildId":233},["ShallowReactive",2],{"doc-\u002Fdocs\u002Fprimitives\u002Finputs-trail":3,"github-stars":140,"guide-nav":142},{"id":4,"title":5,"body":6,"categoryId":125,"categorySlug":126,"categoryTitle":127,"curated":128,"description":129,"editUrl":130,"extension":131,"group":132,"groupTitle":133,"kind":127,"meta":134,"navigation":135,"path":136,"seo":137,"sourceUrl":130,"stem":138,"wordCount":38,"__hash__":139},"primitives\u002Fdocs\u002Fprimitives\u002F44.inputs-trail\u002Findex.md","Pointer trail",{"type":7,"value":8,"toc":120},"minimark",[9,13,25,54,59,89,93,116],[10,11,5],"h1",{"id":12},"pointer-trail",[14,15,16,24],"p",{},[17,18,20],"a",{"href":19},"\u002Fdocs\u002Fprimitives\u002Finputs-trail\u002Fpointertrail",[21,22,23],"code",{},"pointerTrail",": where the pointer has been, and how recently, as a field. 1 where it is now, fading to 0 behind it. Cursor heat, comet tails, wipe-to-reveal.",[26,27,32],"pre",{"className":28,"code":29,"language":30,"meta":31,"style":31},"language-ts shiki shiki-themes github-dark","import {pointerTrail} from 'shaders\u002Fstd'\n","ts","",[21,33,34],{"__ignoreMap":31},[35,36,39,43,47,50],"span",{"class":37,"line":38},"line",1,[35,40,42],{"class":41},"snl16","import",[35,44,46],{"class":45},"s95oV"," {pointerTrail} ",[35,48,49],{"class":41},"from",[35,51,53],{"class":52},"sU2Wk"," 'shaders\u002Fstd'\n",[55,56,58],"h2",{"id":57},"types","Types",[60,61,62,75],"table",{},[63,64,65],"thead",{},[66,67,68,72],"tr",{},[69,70,71],"th",{},"Type",[69,73,74],{},"What it is",[76,77,78],"tbody",{},[66,79,80,86],{},[81,82,83],"td",{},[21,84,85],{},"PointerTrailInput",[81,87,88],{},"interface PointerTrailInput extends InputNode { readonly kind: 'pointerTrail' readonly decay: TrailArg readonly radius: TrailArg readonly resolution: number }",[55,90,92],{"id":91},"words","Words",[94,95,97],"primitive-words",{":words":96},"[{\"name\":\"pointerTrail\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Finputs-trail\u002Fpointertrail\",\"summary\":\"The pointer's recent path as a field in `.x` (0–1), read by name: `trail(uv).x`.\"}]",[98,99,100],"ul",{},[101,102,103,107,108,111,112,115],"li",{},[17,104,105],{"href":19},[21,106,23],{}," — The pointer's recent path as a field in ",[21,109,110],{},".x"," (0–1), read by name: ",[21,113,114],{},"trail(uv).x",".",[117,118,119],"style",{},"html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}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);}",{"title":31,"searchDepth":121,"depth":121,"links":122},2,[123,124],{"id":57,"depth":121,"text":58},{"id":91,"depth":121,"text":92},"inputs.trail","inputs-trail",null,false,"pointerTrail: where the pointer has been, and how recently, as a field. 1 where it is now, fading to 0 behind it.","https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fstd\u002Finputs\u002Ftrail.ts","md","inputs","Inputs",{},true,"\u002Fdocs\u002Fprimitives\u002Finputs-trail",{"title":5,"description":129},"docs\u002Fprimitives\u002F44.inputs-trail\u002Findex","-g-Hp5oUhWobvd5tFFSAXcjVuFRi66t1XVhp6_4JDVI",{"stars":141},6080,[143,147,151,155,159,163,167,171,175,179,183,187,191,195,199,203,207,212,216,220,224,228],{"path":144,"title":145,"description":146,"category":21},"\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":148,"title":149,"description":150,"category":21},"\u002Fdocs\u002Fguide\u002Fquickstart","Quickstart","Install Shaders, render your first effect, and drive a prop from state.",{"path":152,"title":153,"description":154,"category":21},"\u002Fdocs\u002Fguide\u002Fcomposing-effects","Composing effects","Stack components as layers and nest them to control which layers an effect touches.",{"path":156,"title":157,"description":158,"category":21},"\u002Fdocs\u002Fguide\u002Fblending-masking","Blending and masking","Control how a layer mixes with the layers below it, and reveal one layer through another.",{"path":160,"title":161,"description":162,"category":21},"\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":164,"title":165,"description":166,"category":21},"\u002Fdocs\u002Fguide\u002Fanimation","Animating a shader","Tween a shader's props with Motion, GSAP or anything else that animates a number.",{"path":168,"title":169,"description":170,"category":21},"\u002Fdocs\u002Fguide\u002Fdynamic-props","Dynamic props","Drive any numeric or position prop from time, the cursor, or another layer, without writing animation code.",{"path":172,"title":173,"description":174,"category":21},"\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":176,"title":177,"description":178,"category":21},"\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":180,"title":181,"description":182,"category":21},"\u002Fdocs\u002Fguide\u002Ftransforms","Transforms","Position, size, and rotate any layer inside the canvas with a bounding box, in any CSS unit.",{"path":184,"title":185,"description":186,"category":21},"\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":188,"title":189,"description":190,"category":21},"\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":192,"title":193,"description":194,"category":21},"\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":196,"title":197,"description":198,"category":21},"\u002Fdocs\u002Fguide\u002Fperformance","Performance","Learn what makes an effect expensive on the GPU and how to keep it inside the frame budget.",{"path":200,"title":201,"description":202,"category":21},"\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":204,"title":205,"description":206,"category":21},"\u002Fdocs\u002Fguide\u002Ftelemetry","Telemetry","The `\u003CShader>` component occasionally sends an anonymous performance report to help us improve the engine over time.",{"path":208,"title":209,"description":210,"category":211},"\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":213,"title":214,"description":215,"category":211},"\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":217,"title":218,"description":219,"category":211},"\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":221,"title":222,"description":223,"category":21},"\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":225,"title":226,"description":227,"category":21},"\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":229,"title":230,"description":231,"category":21},"\u002Fdocs\u002Fguide\u002Fssr","Server rendering","Render Shaders in Next.js, Nuxt, SvelteKit, SolidStart and other SSR apps by keeping each shader on the client.",1796051186161,"06e02370-81a6-4d74-9931-661d71414be1"]