[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"github-stars":3,"guide-nav":5,"doc-\u002Fdocs\u002Fprimitives\u002Fmask":129},{"stars":4},5505,[6,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,72,76,80,84,88,93,97,101,105,109,113,117,121,125],{"path":7,"title":8,"description":9,"category":10},"\u002Fdocs\u002Fguide","Getting started","Shaders is a library of GPU effect components for Vue, React, Svelte, Solid, JavaScript and Framer, with a design editor for building with them.","code",{"path":12,"title":13,"description":14,"category":10},"\u002Fdocs\u002Fguide\u002Fquickstart","Quickstart","Install Shaders, render your first effect, and drive a prop from state.",{"path":16,"title":17,"description":18,"category":10},"\u002Fdocs\u002Fguide\u002Fcomposing-effects","Composing effects","Stack components as layers and nest them to control which layers an effect touches.",{"path":20,"title":21,"description":22,"category":10},"\u002Fdocs\u002Fguide\u002Fblending-masking","Blending and masking","Control how a layer mixes with the layers below it, and reveal one layer through another.",{"path":24,"title":25,"description":26,"category":10},"\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":28,"title":29,"description":30,"category":10},"\u002Fdocs\u002Fguide\u002Fdynamic-props","Dynamic props","Drive any numeric or position prop from time, the cursor, or another layer, without writing animation code.",{"path":32,"title":33,"description":34,"category":10},"\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":36,"title":37,"description":38,"category":10},"\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":40,"title":41,"description":42,"category":10},"\u002Fdocs\u002Fguide\u002Ftransforms","Transforms","Position, size, and rotate any layer inside the canvas with a bounding box, in any CSS unit.",{"path":44,"title":45,"description":46,"category":10},"\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":48,"title":49,"description":50,"category":10},"\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":52,"title":53,"description":54,"category":10},"\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":56,"title":57,"description":58,"category":10},"\u002Fdocs\u002Fguide\u002Fperformance","Performance","Learn what makes an effect expensive on the GPU and how to keep it inside the frame budget.",{"path":60,"title":61,"description":62,"category":10},"\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":64,"title":65,"description":66,"category":10},"\u002Fdocs\u002Fguide\u002Ftelemetry","Telemetry","The `\u003CShader>` component occasionally sends an anonymous performance report to help us improve the engine over time.",{"path":68,"title":69,"description":70,"category":71},"\u002Fdocs\u002Fguide\u002Fmcp","Shaders MCP","Connect your AI coding agent to Shaders so it can find, install and edit effects in your codebase.","workflows",{"path":73,"title":74,"description":75,"category":71},"\u002Fdocs\u002Fguide\u002Fcli","Shaders CLI","Install your own shaders and Pro shaders into your codebase as component files, and keep them in sync with the design editor.",{"path":77,"title":78,"description":79,"category":71},"\u002Fdocs\u002Fguide\u002Fagent-skill","Agent skill","Give your coding agent a skill that teaches it to build with Shaders components, the CLI and Pro shaders.",{"path":81,"title":82,"description":83,"category":10},"\u002Fdocs\u002Fguide\u002Fvideo-rendering","Rendering to video","Turn a shader effect into a video file, from the design editor or from a frame-by-frame pipeline such as Remotion, Hyperframes or Puppeteer.",{"path":85,"title":86,"description":87,"category":10},"\u002Fdocs\u002Fguide\u002Fssr","Server rendering","Render Shaders in Next.js, Nuxt, SvelteKit, SolidStart and other SSR apps by keeping each shader on the client.",{"path":89,"title":90,"description":91,"category":92},"\u002Fdocs\u002Fguide\u002Fquick-tour-of-the-design-editor","Quick tour of the design editor","A short walkthrough of the full Shaders workflow, from designing on the infinite canvas to exporting code.","editor",{"path":94,"title":95,"description":96,"category":92},"\u002Fdocs\u002Fguide\u002Fintro-to-the-interface","Intro to the interface","A tour of the design editor interface: the canvas, layers, the Properties panel, and the ways to share and export.",{"path":98,"title":99,"description":100,"category":92},"\u002Fdocs\u002Fguide\u002Fcomposing-your-first-shader-effect","Composing your first shader effect","Building a first shader effect in the design editor by stacking and nesting components as layers.",{"path":102,"title":103,"description":104,"category":92},"\u002Fdocs\u002Fguide\u002Fmasking-and-blending","Masking and blending","How blend modes and masks combine components in the design editor.",{"path":106,"title":107,"description":108,"category":92},"\u002Fdocs\u002Fguide\u002Fdynamic-prop-mapping","Dynamic prop mapping","Turning static props into dynamic ones in the design editor: mapping one layer's output into another's prop, following the cursor, or animating automatically.",{"path":110,"title":111,"description":112,"category":92},"\u002Fdocs\u002Fguide\u002Fcustom-media-and-transformations","Custom media and transformations","Uploading images, videos, and SVG files to the media gallery, adding them to a composition, and placing them with transformations.",{"path":114,"title":115,"description":116,"category":92},"\u002Fdocs\u002Fguide\u002Finstalling-a-shader-via-mcp","Installing a shader via MCP","Installing a shader from the design editor into a hero section with the Shaders MCP.",{"path":118,"title":119,"description":120,"category":92},"\u002Fdocs\u002Fguide\u002Fexploring-shape-effects","Exploring shape effects","Applying shape effects such as liquid glass, liquid metal, and glowing edges to built-in shapes and your own SVG.",{"path":122,"title":123,"description":124,"category":92},"\u002Fdocs\u002Fguide\u002Fglass-component-spotlight","Component spotlight: Glass","A short look at the Glass component and the liquid-glass look it creates.",{"path":126,"title":127,"description":128,"category":92},"\u002Fdocs\u002Fguide\u002Fdigital-looks-component-spotlight","Component spotlight: Digital looks","A look at the digital stylization components for glitchy, futuristic, or technical effects.",{"id":130,"title":131,"body":132,"categoryId":963,"categorySlug":963,"categoryTitle":964,"curated":317,"description":965,"editUrl":966,"extension":967,"group":968,"groupTitle":969,"kind":964,"meta":970,"navigation":317,"path":971,"seo":972,"sourceUrl":973,"stem":974,"wordCount":379,"__hash__":975},"primitives\u002Fdocs\u002Fprimitives\u002F21.mask\u002Findex.md","Masks",{"type":133,"value":134,"toc":958},"minimark",[135,139,182,211,216,292,296,907,911,954],[136,137,131],"h1",{"id":138},"masks",[140,141,142,143,150,151,157,158,150,164,170,171,174,175,181],"p",{},"A mask is coverage: a number from 0 to 1 at every pixel that says how much of something\nshows there. Multiply it into a color's alpha to cut a shape out of a paint, or hand it to\nan effect as its amount so the effect fades in across the canvas. Most masks start from a\ndistance, how far this pixel is from a center, a line or a shape's edge, and the mask word\nturns that distance into an edge. ",[144,145,147],"a",{"href":146},"\u002Fdocs\u002Fprimitives\u002Fmask\u002Fsoftdisc",[10,148,149],{},"softDisc"," and ",[144,152,154],{"href":153},"\u002Fdocs\u002Fprimitives\u002Fmask\u002Fsoftband",[10,155,156],{},"softBand"," give soft, styled edges for orbs\nand curtains. ",[144,159,161],{"href":160},"\u002Fdocs\u002Fprimitives\u002Fmask\u002Fcrispfill",[10,162,163],{},"crispFill",[144,165,167],{"href":166},"\u002Fdocs\u002Fprimitives\u002Fmask\u002Fcrispstroke",[10,168,169],{},"crispStroke"," give clean anti-aliased fills and outlines from a\nsigned distance, such as one of the ",[10,172,173],{},"shape"," words. ",[144,176,178],{"href":177},"\u002Fdocs\u002Fprimitives\u002Fmask\u002Fradialmask",[10,179,180],{},"radialMask"," is the ready-made one for\neffects: 0 at a center, 1 past a radius, plugged straight into an effect's amount.",[183,184,189],"pre",{"className":185,"code":186,"language":187,"meta":188,"style":188},"language-ts shiki shiki-themes github-dark","import {mask} from 'shaders\u002Fstd'\n","ts","",[10,190,191],{"__ignoreMap":188},[192,193,196,200,204,207],"span",{"class":194,"line":195},"line",1,[192,197,199],{"class":198},"snl16","import",[192,201,203],{"class":202},"s95oV"," {mask} ",[192,205,206],{"class":198},"from",[192,208,210],{"class":209},"sU2Wk"," 'shaders\u002Fstd'\n",[212,213,215],"h2",{"id":214},"reach-for-it-when","Reach for it when",[217,218,219,232],"table",{},[220,221,222],"thead",{},[223,224,225,229],"tr",{},[226,227,228],"th",{},"When you need",[226,230,231],{},"Use",[233,234,235,248,259,270,281],"tbody",{},[223,236,237,241],{},[238,239,240],"td",{},"an effect that is strongest at the edges and clear in the middle",[238,242,243,247],{},[144,244,245],{"href":177},[10,246,180],{}," as the effect's amount",[223,249,250,253],{},[238,251,252],{},"a soft glowing disc, orb or dot",[238,254,255],{},[144,256,257],{"href":146},[10,258,149],{},[223,260,261,264],{},[238,262,263],{},"a clean filled shape from a signed distance",[238,265,266],{},[144,267,268],{"href":160},[10,269,163],{},[223,271,272,275],{},[238,273,274],{},"an outline of a shape, or a drawn curve of a given width",[238,276,277],{},[144,278,279],{"href":166},[10,280,169],{},[223,282,283,286],{},[238,284,285],{},"a band along a line, sharp on one side and trailing off on the other",[238,287,288],{},[144,289,290],{"href":153},[10,291,156],{},[212,293,295],{"id":294},"example","Example",[183,297,299],{"className":185,"code":298,"language":187,"meta":188,"style":188},"import {defineShader, p, uniformOf, math, mask, frames, transformColor, transformPosition} from 'shaders\u002Fstd'\n\nconst {add, sub, mul, div, clamp, local, vec4} = math\n\n\u002F\u002F Orb: a soft glowing disc with a crisp ring just outside it, over a transparent background.\nexport const Orb = defineShader({\n  name: 'Orb',\n  props: {\n    center: {default: {x: 0.5, y: 0.5}, transform: transformPosition},\n    color: {default: '#7dd3fc', transform: transformColor},\n    ringColor: {default: '#ffffff', transform: transformColor},\n    radius: {default: 0.2},\n    softness: {default: 0.5},\n  },\n  paint: (params) => {\n    const u = (name: string) => uniformOf(p(name), params)\n    const surface = frames.surfaceOf(params)\n    const {dist} = frames.centredFrame({center: p('center')})(params, surface)\n    const px = div(1, surface.viewport.member('y')) \u002F\u002F one device pixel, in uv\n    const body = local(mask.softDisc({\n      dist,\n      radius: u('radius'),\n      softness: {width: mul(u('softness'), 0.3), curve: add(mul(u('softness'), 2), 0.5)},\n    }), 'body')\n    \u002F\u002F A signed distance to a circle a little larger than the orb: negative inside, zero on the ring.\n    const ring = local(mask.crispStroke({distance: sub(dist, mul(u('radius'), 1.3)), width: 0.006, footprint: px}), 'ring')\n    const rgb = add(mul(u('color').member('rgb'), body), mul(u('ringColor').member('rgb'), ring))\n    return vec4(rgb, clamp(add(body, ring), 0, 1))\n  },\n})\n",[10,300,301,312,319,372,377,384,406,418,424,441,453,464,476,486,492,514,552,571,603,638,658,664,681,733,745,751,804,865,896,901],{"__ignoreMap":188},[192,302,303,305,308,310],{"class":194,"line":195},[192,304,199],{"class":198},[192,306,307],{"class":202}," {defineShader, p, uniformOf, math, mask, frames, transformColor, transformPosition} ",[192,309,206],{"class":198},[192,311,210],{"class":209},[192,313,315],{"class":194,"line":314},2,[192,316,318],{"emptyLinePlaceholder":317},true,"\n",[192,320,322,325,328,332,335,338,340,343,345,348,350,353,355,358,360,363,366,369],{"class":194,"line":321},3,[192,323,324],{"class":198},"const",[192,326,327],{"class":202}," {",[192,329,331],{"class":330},"sDLfK","add",[192,333,334],{"class":202},", ",[192,336,337],{"class":330},"sub",[192,339,334],{"class":202},[192,341,342],{"class":330},"mul",[192,344,334],{"class":202},[192,346,347],{"class":330},"div",[192,349,334],{"class":202},[192,351,352],{"class":330},"clamp",[192,354,334],{"class":202},[192,356,357],{"class":330},"local",[192,359,334],{"class":202},[192,361,362],{"class":330},"vec4",[192,364,365],{"class":202},"} ",[192,367,368],{"class":198},"=",[192,370,371],{"class":202}," math\n",[192,373,375],{"class":194,"line":374},4,[192,376,318],{"emptyLinePlaceholder":317},[192,378,380],{"class":194,"line":379},5,[192,381,383],{"class":382},"sAwPA","\u002F\u002F Orb: a soft glowing disc with a crisp ring just outside it, over a transparent background.\n",[192,385,387,390,393,396,399,403],{"class":194,"line":386},6,[192,388,389],{"class":198},"export",[192,391,392],{"class":198}," const",[192,394,395],{"class":330}," Orb",[192,397,398],{"class":198}," =",[192,400,402],{"class":401},"svObZ"," defineShader",[192,404,405],{"class":202},"({\n",[192,407,409,412,415],{"class":194,"line":408},7,[192,410,411],{"class":202},"  name: ",[192,413,414],{"class":209},"'Orb'",[192,416,417],{"class":202},",\n",[192,419,421],{"class":194,"line":420},8,[192,422,423],{"class":202},"  props: {\n",[192,425,427,430,433,436,438],{"class":194,"line":426},9,[192,428,429],{"class":202},"    center: {default: {x: ",[192,431,432],{"class":330},"0.5",[192,434,435],{"class":202},", y: ",[192,437,432],{"class":330},[192,439,440],{"class":202},"}, transform: transformPosition},\n",[192,442,444,447,450],{"class":194,"line":443},10,[192,445,446],{"class":202},"    color: {default: ",[192,448,449],{"class":209},"'#7dd3fc'",[192,451,452],{"class":202},", transform: transformColor},\n",[192,454,456,459,462],{"class":194,"line":455},11,[192,457,458],{"class":202},"    ringColor: {default: ",[192,460,461],{"class":209},"'#ffffff'",[192,463,452],{"class":202},[192,465,467,470,473],{"class":194,"line":466},12,[192,468,469],{"class":202},"    radius: {default: ",[192,471,472],{"class":330},"0.2",[192,474,475],{"class":202},"},\n",[192,477,479,482,484],{"class":194,"line":478},13,[192,480,481],{"class":202},"    softness: {default: ",[192,483,432],{"class":330},[192,485,475],{"class":202},[192,487,489],{"class":194,"line":488},14,[192,490,491],{"class":202},"  },\n",[192,493,495,498,501,505,508,511],{"class":194,"line":494},15,[192,496,497],{"class":401},"  paint",[192,499,500],{"class":202},": (",[192,502,504],{"class":503},"s9osk","params",[192,506,507],{"class":202},") ",[192,509,510],{"class":198},"=>",[192,512,513],{"class":202}," {\n",[192,515,517,520,523,525,528,531,534,537,539,541,544,547,549],{"class":194,"line":516},16,[192,518,519],{"class":198},"    const",[192,521,522],{"class":401}," u",[192,524,398],{"class":198},[192,526,527],{"class":202}," (",[192,529,530],{"class":503},"name",[192,532,533],{"class":198},":",[192,535,536],{"class":330}," string",[192,538,507],{"class":202},[192,540,510],{"class":198},[192,542,543],{"class":401}," uniformOf",[192,545,546],{"class":202},"(",[192,548,140],{"class":401},[192,550,551],{"class":202},"(name), params)\n",[192,553,555,557,560,562,565,568],{"class":194,"line":554},17,[192,556,519],{"class":198},[192,558,559],{"class":330}," surface",[192,561,398],{"class":198},[192,563,564],{"class":202}," frames.",[192,566,567],{"class":401},"surfaceOf",[192,569,570],{"class":202},"(params)\n",[192,572,574,576,578,581,583,585,587,590,593,595,597,600],{"class":194,"line":573},18,[192,575,519],{"class":198},[192,577,327],{"class":202},[192,579,580],{"class":330},"dist",[192,582,365],{"class":202},[192,584,368],{"class":198},[192,586,564],{"class":202},[192,588,589],{"class":401},"centredFrame",[192,591,592],{"class":202},"({center: ",[192,594,140],{"class":401},[192,596,546],{"class":202},[192,598,599],{"class":209},"'center'",[192,601,602],{"class":202},")})(params, surface)\n",[192,604,606,608,611,613,616,618,621,624,627,629,632,635],{"class":194,"line":605},19,[192,607,519],{"class":198},[192,609,610],{"class":330}," px",[192,612,398],{"class":198},[192,614,615],{"class":401}," div",[192,617,546],{"class":202},[192,619,620],{"class":330},"1",[192,622,623],{"class":202},", surface.viewport.",[192,625,626],{"class":401},"member",[192,628,546],{"class":202},[192,630,631],{"class":209},"'y'",[192,633,634],{"class":202},")) ",[192,636,637],{"class":382},"\u002F\u002F one device pixel, in uv\n",[192,639,641,643,646,648,651,654,656],{"class":194,"line":640},20,[192,642,519],{"class":198},[192,644,645],{"class":330}," body",[192,647,398],{"class":198},[192,649,650],{"class":401}," local",[192,652,653],{"class":202},"(mask.",[192,655,149],{"class":401},[192,657,405],{"class":202},[192,659,661],{"class":194,"line":660},21,[192,662,663],{"class":202},"      dist,\n",[192,665,667,670,673,675,678],{"class":194,"line":666},22,[192,668,669],{"class":202},"      radius: ",[192,671,672],{"class":401},"u",[192,674,546],{"class":202},[192,676,677],{"class":209},"'radius'",[192,679,680],{"class":202},"),\n",[192,682,684,687,689,691,693,695,698,701,704,707,709,711,713,715,717,719,721,723,726,728,730],{"class":194,"line":683},23,[192,685,686],{"class":202},"      softness: {width: ",[192,688,342],{"class":401},[192,690,546],{"class":202},[192,692,672],{"class":401},[192,694,546],{"class":202},[192,696,697],{"class":209},"'softness'",[192,699,700],{"class":202},"), ",[192,702,703],{"class":330},"0.3",[192,705,706],{"class":202},"), curve: ",[192,708,331],{"class":401},[192,710,546],{"class":202},[192,712,342],{"class":401},[192,714,546],{"class":202},[192,716,672],{"class":401},[192,718,546],{"class":202},[192,720,697],{"class":209},[192,722,700],{"class":202},[192,724,725],{"class":330},"2",[192,727,700],{"class":202},[192,729,432],{"class":330},[192,731,732],{"class":202},")},\n",[192,734,736,739,742],{"class":194,"line":735},24,[192,737,738],{"class":202},"    }), ",[192,740,741],{"class":209},"'body'",[192,743,744],{"class":202},")\n",[192,746,748],{"class":194,"line":747},25,[192,749,750],{"class":382},"    \u002F\u002F A signed distance to a circle a little larger than the orb: negative inside, zero on the ring.\n",[192,752,754,756,759,761,763,765,767,770,772,775,777,779,781,783,785,787,790,793,796,799,802],{"class":194,"line":753},26,[192,755,519],{"class":198},[192,757,758],{"class":330}," ring",[192,760,398],{"class":198},[192,762,650],{"class":401},[192,764,653],{"class":202},[192,766,169],{"class":401},[192,768,769],{"class":202},"({distance: ",[192,771,337],{"class":401},[192,773,774],{"class":202},"(dist, ",[192,776,342],{"class":401},[192,778,546],{"class":202},[192,780,672],{"class":401},[192,782,546],{"class":202},[192,784,677],{"class":209},[192,786,700],{"class":202},[192,788,789],{"class":330},"1.3",[192,791,792],{"class":202},")), width: ",[192,794,795],{"class":330},"0.006",[192,797,798],{"class":202},", footprint: px}), ",[192,800,801],{"class":209},"'ring'",[192,803,744],{"class":202},[192,805,807,809,812,814,817,819,821,823,825,827,830,833,835,837,840,843,845,847,849,851,854,856,858,860,862],{"class":194,"line":806},27,[192,808,519],{"class":198},[192,810,811],{"class":330}," rgb",[192,813,398],{"class":198},[192,815,816],{"class":401}," add",[192,818,546],{"class":202},[192,820,342],{"class":401},[192,822,546],{"class":202},[192,824,672],{"class":401},[192,826,546],{"class":202},[192,828,829],{"class":209},"'color'",[192,831,832],{"class":202},").",[192,834,626],{"class":401},[192,836,546],{"class":202},[192,838,839],{"class":209},"'rgb'",[192,841,842],{"class":202},"), body), ",[192,844,342],{"class":401},[192,846,546],{"class":202},[192,848,672],{"class":401},[192,850,546],{"class":202},[192,852,853],{"class":209},"'ringColor'",[192,855,832],{"class":202},[192,857,626],{"class":401},[192,859,546],{"class":202},[192,861,839],{"class":209},[192,863,864],{"class":202},"), ring))\n",[192,866,868,871,874,877,879,881,883,886,889,891,893],{"class":194,"line":867},28,[192,869,870],{"class":198},"    return",[192,872,873],{"class":401}," vec4",[192,875,876],{"class":202},"(rgb, ",[192,878,352],{"class":401},[192,880,546],{"class":202},[192,882,331],{"class":401},[192,884,885],{"class":202},"(body, ring), ",[192,887,888],{"class":330},"0",[192,890,334],{"class":202},[192,892,620],{"class":330},[192,894,895],{"class":202},"))\n",[192,897,899],{"class":194,"line":898},29,[192,900,491],{"class":202},[192,902,904],{"class":194,"line":903},30,[192,905,906],{"class":202},"})\n",[212,908,910],{"id":909},"words","Words",[912,913,915],"primitive-words",{":words":914},"[{\"name\":\"radialMask\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fmask\u002Fradialmask\",\"summary\":\"An amount that is 0 near a center and grows to 1 with distance, for an effect's strength.\"},{\"name\":\"softDisc\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fmask\u002Fsoftdisc\",\"summary\":\"A filled disc with a soft, shaped edge.\"},{\"name\":\"crispFill\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fmask\u002Fcrispfill\",\"summary\":\"A clean fill of a shape: 1 inside, 0 outside.\"},{\"name\":\"crispStroke\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fmask\u002Fcrispstroke\",\"summary\":\"A clean outline of a shape, or a drawn curve, of a given width.\"},{\"name\":\"softBand\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fmask\u002Fsoftband\",\"summary\":\"A soft band around a line, sharp on one side and long on the other.\"}]",[916,917,918,926,933,940,947],"ul",{},[919,920,921,925],"li",{},[144,922,923],{"href":177},[10,924,180],{}," — An amount that is 0 near a center and grows to 1 with distance, for an effect's strength.",[919,927,928,932],{},[144,929,930],{"href":146},[10,931,149],{}," — A filled disc with a soft, shaped edge.",[919,934,935,939],{},[144,936,937],{"href":160},[10,938,163],{}," — A clean fill of a shape: 1 inside, 0 outside.",[919,941,942,946],{},[144,943,944],{"href":166},[10,945,169],{}," — A clean outline of a shape, or a drawn curve, of a given width.",[919,948,949,953],{},[144,950,951],{"href":153},[10,952,156],{}," — A soft band around a line, sharp on one side and long on the other.",[955,956,957],"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);}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .s9osk, html code.shiki .s9osk{--shiki-default:#FFAB70}",{"title":188,"searchDepth":314,"depth":314,"links":959},[960,961,962],{"id":214,"depth":314,"text":215},{"id":294,"depth":314,"text":295},{"id":909,"depth":314,"text":910},"mask",null,"A mask is coverage: a number from 0 to 1 at every pixel that says how much of something shows there.","https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fedit\u002Fmain\u002Fpackages\u002Fcore\u002Fdocs\u002Fstd\u002Fmask.md","md","space","Shapes, frames & warps",{},"\u002Fdocs\u002Fprimitives\u002Fmask",{"title":131,"description":965},"https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fstd\u002Fmask.ts","docs\u002Fprimitives\u002F21.mask\u002Findex","g5SwwizS_JzFvbKxjUcN9Bo4d12sXkiGx8_zKA_3Mf4"]