[{"data":1,"prerenderedAt":252,"buildId":253},["ShallowReactive",2],{"doc-\u002Fdocs\u002Fprimitives\u002Feffects-overlay\u002Fcornerbracketmask":3,"github-stars":160,"guide-nav":162},{"id":4,"title":5,"body":6,"categoryId":145,"categorySlug":146,"categoryTitle":147,"curated":148,"description":16,"editUrl":149,"extension":150,"group":62,"groupTitle":151,"kind":152,"meta":153,"navigation":154,"path":155,"seo":156,"sourceUrl":157,"stem":158,"wordCount":149,"__hash__":159},"primitives\u002Fdocs\u002Fprimitives\u002F34.effects-overlay\u002F3.cornerbracketmask.md","cornerBracketMask",{"type":7,"value":8,"toc":142},"minimark",[9,13,17,57,72,82,87,138],[10,11,5],"h1",{"id":12},"cornerbracketmask",[14,15,16],"p",{},"The corner-bracket mask: keeps a box stroke only near its four corners (the \"tracker bracket\" look).",[18,19,24],"pre",{"className":20,"code":21,"language":22,"meta":23,"style":23},"language-ts shiki shiki-themes github-dark","cornerBracketMask(\n  names: {bl: string; inCorner: string},\n  opts: {blInit: string; px: string; py: string; hx: string; hy: string; stroke: string},\n): string[]\n","ts","",[25,26,27,39,45,51],"code",{"__ignoreMap":23},[28,29,32,35],"span",{"class":30,"line":31},"line",1,[28,33,5],{"class":34},"svObZ",[28,36,38],{"class":37},"s95oV","(\n",[28,40,42],{"class":30,"line":41},2,[28,43,44],{"class":37},"  names: {bl: string; inCorner: string},\n",[28,46,48],{"class":30,"line":47},3,[28,49,50],{"class":37},"  opts: {blInit: string; px: string; py: string; hx: string; hy: string; stroke: string},\n",[28,52,54],{"class":30,"line":53},4,[28,55,56],{"class":37},"): string[]\n",[14,58,59,60,63,64,67,68,71],{},"Import ",[25,61,62],{},"effects"," from ",[25,65,66],{},"shaders\u002Fstd"," and use ",[25,69,70],{},"effects.overlay.cornerBracketMask",".",[14,73,74,77,78,81],{},[25,75,76],{},"blInit"," is the bracket-length expression — the constant inside it is the consumer's look and stays at the call site. Multiplies ",[25,79,80],{},"stroke"," in place.",[83,84,86],"h2",{"id":85},"parameters","Parameters",[88,89,90,106],"table",{},[91,92,93],"thead",{},[94,95,96,100,103],"tr",{},[97,98,99],"th",{},"Name",[97,101,102],{},"Type",[97,104,105],{},"Notes",[107,108,109,124],"tbody",{},[94,110,111,117,122],{},[112,113,114],"td",{},[25,115,116],{},"names",[112,118,119],{},[25,120,121],{},"{bl: string; inCorner: string}",[112,123],{},[94,125,126,131,136],{},[112,127,128],{},[25,129,130],{},"opts",[112,132,133],{},[25,134,135],{},"{blInit: string; px: string; py: string; hx: string; hy: string; stroke: string}",[112,137],{},[139,140,141],"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);}",{"title":23,"searchDepth":41,"depth":41,"links":143},[144],{"id":85,"depth":41,"text":86},"effects.overlay","effects-overlay","Overlays",false,null,"md","Filters & effects","function",{},true,"\u002Fdocs\u002Fprimitives\u002Feffects-overlay\u002Fcornerbracketmask",{"title":5,"description":16},"https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fstd\u002Feffects\u002Foverlay.ts#L51","docs\u002Fprimitives\u002F34.effects-overlay\u002F3.cornerbracketmask","Lerbn5zQw2KR57W1dOQ4yL17igw0g3O9O_T9wa771tQ",{"stars":161},6080,[163,167,171,175,179,183,187,191,195,199,203,207,211,215,219,223,227,232,236,240,244,248],{"path":164,"title":165,"description":166,"category":25},"\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":168,"title":169,"description":170,"category":25},"\u002Fdocs\u002Fguide\u002Fquickstart","Quickstart","Install Shaders, render your first effect, and drive a prop from state.",{"path":172,"title":173,"description":174,"category":25},"\u002Fdocs\u002Fguide\u002Fcomposing-effects","Composing effects","Stack components as layers and nest them to control which layers an effect touches.",{"path":176,"title":177,"description":178,"category":25},"\u002Fdocs\u002Fguide\u002Fblending-masking","Blending and masking","Control how a layer mixes with the layers below it, and reveal one layer through another.",{"path":180,"title":181,"description":182,"category":25},"\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":184,"title":185,"description":186,"category":25},"\u002Fdocs\u002Fguide\u002Fanimation","Animating a shader","Tween a shader's props with Motion, GSAP or anything else that animates a number.",{"path":188,"title":189,"description":190,"category":25},"\u002Fdocs\u002Fguide\u002Fdynamic-props","Dynamic props","Drive any numeric or position prop from time, the cursor, or another layer, without writing animation code.",{"path":192,"title":193,"description":194,"category":25},"\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":196,"title":197,"description":198,"category":25},"\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":200,"title":201,"description":202,"category":25},"\u002Fdocs\u002Fguide\u002Ftransforms","Transforms","Position, size, and rotate any layer inside the canvas with a bounding box, in any CSS unit.",{"path":204,"title":205,"description":206,"category":25},"\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":208,"title":209,"description":210,"category":25},"\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":212,"title":213,"description":214,"category":25},"\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":216,"title":217,"description":218,"category":25},"\u002Fdocs\u002Fguide\u002Fperformance","Performance","Learn what makes an effect expensive on the GPU and how to keep it inside the frame budget.",{"path":220,"title":221,"description":222,"category":25},"\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":224,"title":225,"description":226,"category":25},"\u002Fdocs\u002Fguide\u002Ftelemetry","Telemetry","The `\u003CShader>` component occasionally sends an anonymous performance report to help us improve the engine over time.",{"path":228,"title":229,"description":230,"category":231},"\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":233,"title":234,"description":235,"category":231},"\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":237,"title":238,"description":239,"category":231},"\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":241,"title":242,"description":243,"category":25},"\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":245,"title":246,"description":247,"category":25},"\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":249,"title":250,"description":251,"category":25},"\u002Fdocs\u002Fguide\u002Fssr","Server rendering","Render Shaders in Next.js, Nuxt, SvelteKit, SolidStart and other SSR apps by keeping each shader on the client.",1796051185876,"06e02370-81a6-4d74-9931-661d71414be1"]