[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"guide-nav":3,"doc-\u002Fdocs\u002Fprimitives\u002Fframes":145},[4,10,16,20,24,28,32,36,40,44,48,52,56,60,64,69,73,78,82,86,90,94,98,102,106,110,114,117,120,124,127,131,134,138,141],{"path":5,"title":6,"description":7,"category":8,"exclude":9,"forceFramework":9},"\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",null,{"path":11,"title":12,"description":13,"category":8,"exclude":14,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fquickstart","Quickstart","Install Shaders, render your first effect, and drive a prop from state.",[15],"js",{"path":17,"title":18,"description":19,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fcomposing-effects","Composing effects","Stack components as layers and nest them to control which layers an effect touches.",{"path":21,"title":22,"description":23,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fblending-masking","Blending and masking","Control how a layer mixes with the layers below it, and reveal one layer through another.",{"path":25,"title":26,"description":27,"category":8,"exclude":9,"forceFramework":9},"\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":29,"title":30,"description":31,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fdynamic-props","Dynamic props","Drive any numeric or position prop from time, the cursor, or another layer, without writing animation code.",{"path":33,"title":34,"description":35,"category":8,"exclude":9,"forceFramework":9},"\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":37,"title":38,"description":39,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Ftransforms","Transforms","Position, size, and rotate any layer inside the canvas with a bounding box, in % or px units.",{"path":41,"title":42,"description":43,"category":8,"exclude":9,"forceFramework":9},"\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":45,"title":46,"description":47,"category":8,"exclude":9,"forceFramework":9},"\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":49,"title":50,"description":51,"category":8,"exclude":9,"forceFramework":9},"\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":53,"title":54,"description":55,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fperformance","Performance","Learn what makes an effect expensive on the GPU and how to keep it inside the frame budget.",{"path":57,"title":58,"description":59,"category":8,"exclude":9,"forceFramework":9},"\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":61,"title":62,"description":63,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Ftelemetry","Telemetry","The `\u003CShader>` component occasionally sends an anonymous performance report to help us improve the engine over time.",{"path":65,"title":66,"description":67,"category":68,"exclude":9,"forceFramework":9},"\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":70,"title":71,"description":72,"category":68,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fcli","Shaders CLI","Install shaders and presets into your codebase as component files, and keep them in sync with the design editor.",{"path":74,"title":75,"description":76,"category":77,"exclude":9,"forceFramework":9},"\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":79,"title":80,"description":81,"category":77,"exclude":9,"forceFramework":9},"\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":83,"title":84,"description":85,"category":77,"exclude":9,"forceFramework":9},"\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":87,"title":88,"description":89,"category":77,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fmasking-and-blending","Masking and blending","How blend modes and masks combine components in the design editor.",{"path":91,"title":92,"description":93,"category":77,"exclude":9,"forceFramework":9},"\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":95,"title":96,"description":97,"category":77,"exclude":9,"forceFramework":9},"\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":99,"title":100,"description":101,"category":77,"exclude":9,"forceFramework":9},"\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":103,"title":104,"description":105,"category":77,"exclude":9,"forceFramework":9},"\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":107,"title":108,"description":109,"category":77,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fglass-component-spotlight","Component spotlight: Glass","A short look at the Glass component and the liquid-glass look it creates.",{"path":111,"title":112,"description":113,"category":77,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fdigital-looks-component-spotlight","Component spotlight: Digital looks","A look at the digital stylization components for glitchy, futuristic, or technical effects.",{"path":115,"title":12,"description":116,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fjs\u002Fquickstart","Install Shaders without a framework, render your first effect on a canvas, and update props at runtime.",{"path":118,"title":12,"description":119,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Freact\u002Fquickstart","Install Shaders in a React app, render your first effect, and drive a prop from state.",{"path":121,"title":122,"description":123,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Freact\u002Fssr","Next.js and SSR","Render Shaders in Next.js and other React SSR apps by keeping each shader on the client.",{"path":125,"title":12,"description":126,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fsolid\u002Fquickstart","Install Shaders in a Solid app, render your first effect, and drive a prop from a signal.",{"path":128,"title":129,"description":130,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fsolid\u002Fssr","SolidStart and SSR","Render Shaders in SolidStart and other Solid SSR apps by keeping each shader on the client.",{"path":132,"title":12,"description":133,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fsvelte\u002Fquickstart","Install Shaders in a Svelte app, render your first effect, and drive a prop from state.",{"path":135,"title":136,"description":137,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fsvelte\u002Fssr","SvelteKit and SSR","Render Shaders in SvelteKit and other Svelte SSR apps, where each shader already waits for the browser.",{"path":139,"title":12,"description":140,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fvue\u002Fquickstart","Install Shaders in a Vue app, render your first effect, and drive a prop from a ref.",{"path":142,"title":143,"description":144,"category":8,"exclude":9,"forceFramework":9},"\u002Fdocs\u002Fguide\u002Fvue\u002Fssr","Nuxt and SSR","Render Shaders in Nuxt and other Vue SSR apps by keeping each shader on the client.",{"id":146,"title":147,"body":148,"categoryId":928,"categorySlug":928,"categoryTitle":9,"curated":372,"description":929,"editUrl":930,"extension":931,"group":932,"groupTitle":933,"kind":9,"meta":934,"navigation":372,"path":935,"seo":936,"sourceUrl":937,"stem":938,"wordCount":461,"__hash__":939},"primitives\u002Fdocs\u002Fprimitives\u002F19.frames\u002Findex.md","Frames & coordinates",{"type":149,"value":150,"toc":922},"minimark",[151,155,171,208,237,242,347,351,789,793,843,847,918],[152,153,147],"h1",{"id":154},"frames-coordinates",[156,157,158,159,166,167,170],"p",{},"Frames are how a generator measures its pixels. Instead of raw uv you get named numbers\nready to use: the distance from a centre, how far along and across a line between two\npoints, or the axes of a chosen direction. ",[160,161,163],"a",{"href":162},"\u002Fdocs\u002Fprimitives\u002Fframes\u002Fsurfaceof",[8,164,165],{},"surfaceOf"," is the starting point: the canvas's\n",[8,168,169],{},"uv"," (0–1, y down), its size in pixels and its aspect ratio. Every frame is aspect-corrected,\nso 1 is the canvas height and a circle stays round on a wide canvas.",[156,172,173,174,177,178,181,182,185,186,189,190,193,194,200,201,207],{},"Build a frame from your position props with ",[8,175,176],{},"p('name')",", call it with ",[8,179,180],{},"params"," and the\nsurface, and pull out the numbers you need. Shape them with ",[8,183,184],{},"math"," and hand the result to a\npalette, a ",[8,187,188],{},"light"," word or ",[8,191,192],{},"compose"," to make the pixel's color. ",[160,195,197],{"href":196},"\u002Fdocs\u002Fprimitives\u002Fframes\u002Fdirection",[8,198,199],{},"direction"," and\n",[160,202,204],{"href":203},"\u002Fdocs\u002Fprimitives\u002Fframes\u002Fdirectionframe",[8,205,206],{},"directionFrame"," take an angle in degrees, 0 pointing right and turning clockwise on screen.",[209,210,215],"pre",{"className":211,"code":212,"language":213,"meta":214,"style":214},"language-ts shiki shiki-themes github-dark","import {frames} from 'shaders\u002Fstd'\n","ts","",[8,216,217],{"__ignoreMap":214},[218,219,222,226,230,233],"span",{"class":220,"line":221},"line",1,[218,223,225],{"class":224},"snl16","import",[218,227,229],{"class":228},"s95oV"," {frames} ",[218,231,232],{"class":224},"from",[218,234,236],{"class":235},"sU2Wk"," 'shaders\u002Fstd'\n",[238,239,241],"h2",{"id":240},"reach-for-it-when","Reach for it when",[243,244,245,258],"table",{},[246,247,248],"thead",{},[249,250,251,255],"tr",{},[252,253,254],"th",{},"When you need",[252,256,257],{},"Use",[259,260,261,273,286,299,312,323,334],"tbody",{},[249,262,263,267],{},[264,265,266],"td",{},"the canvas uv, size and aspect at the top of a paint",[264,268,269],{},[160,270,271],{"href":162},[8,272,165],{},[249,274,275,278],{},[264,276,277],{},"a pattern anchored to the whole canvas, not the layer's box",[264,279,280],{},[160,281,283],{"href":282},"\u002Fdocs\u002Fprimitives\u002Fframes\u002Frawsurfaceof",[8,284,285],{},"rawSurfaceOf",[249,287,288,291],{},[264,289,290],{},"the distance from a draggable centre",[264,292,293],{},[160,294,296],{"href":295},"\u002Fdocs\u002Fprimitives\u002Fframes\u002Fcentredframe",[8,297,298],{},"centredFrame",[249,300,301,304],{},[264,302,303],{},"the position along and across a line between two points",[264,305,306],{},[160,307,309],{"href":308},"\u002Fdocs\u002Fprimitives\u002Fframes\u002Fsegmentframe",[8,310,311],{},"segmentFrame",[249,313,314,317],{},[264,315,316],{},"a light or flow angle as a vector",[264,318,319],{},[160,320,321],{"href":196},[8,322,199],{},[249,324,325,328],{},[264,326,327],{},"a grain, weave or streak running at an angle",[264,329,330],{},[160,331,332],{"href":203},[8,333,206],{},[249,335,336,339],{},[264,337,338],{},"a kaleidoscope",[264,340,341],{},[160,342,344],{"href":343},"\u002Fdocs\u002Fprimitives\u002Fframes\u002Fsectorfold",[8,345,346],{},"sectorFold",[238,348,350],{"id":349},"example","Example",[209,352,354],{"className":211,"code":353,"language":213,"meta":214,"style":214},"import {defineShader, p, frames, math, transformColor, transformPosition} from 'shaders\u002Fstd'\n\nconst {surfaceOf, segmentFrame} = frames\nconst {div, exp, mul, neg, smoothstep, sub, vec4} = math\n\n\u002F\u002F A bar of light between two draggable points: bright on the line, fading across it, feathered at both ends.\nexport const LightBar = defineShader({\n  name: 'LightBar',\n  props: {\n    from: {default: {x: 0.2, y: 0.5}, transform: transformPosition},\n    to: {default: {x: 0.8, y: 0.5}, transform: transformPosition},\n    color: {default: '#7ad7ff', transform: transformColor},\n    width: {default: 0.05},\n    feather: {default: 0.1},\n  },\n  paint: (params) => {\n    const u = params.uniforms\n    const {along, across, length} = segmentFrame({from: p('from'), to: p('to')})(params, surfaceOf(params))\n    const profile = exp(neg(div(mul(across, across), mul(u.width, u.width))))\n    const ends = mul(smoothstep(0, u.feather, along), smoothstep(0, u.feather, sub(length, along)))\n    const bar = mul(profile, ends)\n    return vec4(mul(u.color.member('rgb'), bar), bar)\n  },\n})\n",[8,355,356,367,374,400,447,452,459,481,493,499,517,532,544,556,567,573,594,608,664,697,736,751,778,783],{"__ignoreMap":214},[218,357,358,360,363,365],{"class":220,"line":221},[218,359,225],{"class":224},[218,361,362],{"class":228}," {defineShader, p, frames, math, transformColor, transformPosition} ",[218,364,232],{"class":224},[218,366,236],{"class":235},[218,368,370],{"class":220,"line":369},2,[218,371,373],{"emptyLinePlaceholder":372},true,"\n",[218,375,377,380,383,386,389,391,394,397],{"class":220,"line":376},3,[218,378,379],{"class":224},"const",[218,381,382],{"class":228}," {",[218,384,165],{"class":385},"sDLfK",[218,387,388],{"class":228},", ",[218,390,311],{"class":385},[218,392,393],{"class":228},"} ",[218,395,396],{"class":224},"=",[218,398,399],{"class":228}," frames\n",[218,401,403,405,407,410,412,415,417,420,422,425,427,430,432,435,437,440,442,444],{"class":220,"line":402},4,[218,404,379],{"class":224},[218,406,382],{"class":228},[218,408,409],{"class":385},"div",[218,411,388],{"class":228},[218,413,414],{"class":385},"exp",[218,416,388],{"class":228},[218,418,419],{"class":385},"mul",[218,421,388],{"class":228},[218,423,424],{"class":385},"neg",[218,426,388],{"class":228},[218,428,429],{"class":385},"smoothstep",[218,431,388],{"class":228},[218,433,434],{"class":385},"sub",[218,436,388],{"class":228},[218,438,439],{"class":385},"vec4",[218,441,393],{"class":228},[218,443,396],{"class":224},[218,445,446],{"class":228}," math\n",[218,448,450],{"class":220,"line":449},5,[218,451,373],{"emptyLinePlaceholder":372},[218,453,455],{"class":220,"line":454},6,[218,456,458],{"class":457},"sAwPA","\u002F\u002F A bar of light between two draggable points: bright on the line, fading across it, feathered at both ends.\n",[218,460,462,465,468,471,474,478],{"class":220,"line":461},7,[218,463,464],{"class":224},"export",[218,466,467],{"class":224}," const",[218,469,470],{"class":385}," LightBar",[218,472,473],{"class":224}," =",[218,475,477],{"class":476},"svObZ"," defineShader",[218,479,480],{"class":228},"({\n",[218,482,484,487,490],{"class":220,"line":483},8,[218,485,486],{"class":228},"  name: ",[218,488,489],{"class":235},"'LightBar'",[218,491,492],{"class":228},",\n",[218,494,496],{"class":220,"line":495},9,[218,497,498],{"class":228},"  props: {\n",[218,500,502,505,508,511,514],{"class":220,"line":501},10,[218,503,504],{"class":228},"    from: {default: {x: ",[218,506,507],{"class":385},"0.2",[218,509,510],{"class":228},", y: ",[218,512,513],{"class":385},"0.5",[218,515,516],{"class":228},"}, transform: transformPosition},\n",[218,518,520,523,526,528,530],{"class":220,"line":519},11,[218,521,522],{"class":228},"    to: {default: {x: ",[218,524,525],{"class":385},"0.8",[218,527,510],{"class":228},[218,529,513],{"class":385},[218,531,516],{"class":228},[218,533,535,538,541],{"class":220,"line":534},12,[218,536,537],{"class":228},"    color: {default: ",[218,539,540],{"class":235},"'#7ad7ff'",[218,542,543],{"class":228},", transform: transformColor},\n",[218,545,547,550,553],{"class":220,"line":546},13,[218,548,549],{"class":228},"    width: {default: ",[218,551,552],{"class":385},"0.05",[218,554,555],{"class":228},"},\n",[218,557,559,562,565],{"class":220,"line":558},14,[218,560,561],{"class":228},"    feather: {default: ",[218,563,564],{"class":385},"0.1",[218,566,555],{"class":228},[218,568,570],{"class":220,"line":569},15,[218,571,572],{"class":228},"  },\n",[218,574,576,579,582,585,588,591],{"class":220,"line":575},16,[218,577,578],{"class":476},"  paint",[218,580,581],{"class":228},": (",[218,583,180],{"class":584},"s9osk",[218,586,587],{"class":228},") ",[218,589,590],{"class":224},"=>",[218,592,593],{"class":228}," {\n",[218,595,597,600,603,605],{"class":220,"line":596},17,[218,598,599],{"class":224},"    const",[218,601,602],{"class":385}," u",[218,604,473],{"class":224},[218,606,607],{"class":228}," params.uniforms\n",[218,609,611,613,615,618,620,623,625,628,630,632,635,638,640,643,646,649,651,653,656,659,661],{"class":220,"line":610},18,[218,612,599],{"class":224},[218,614,382],{"class":228},[218,616,617],{"class":385},"along",[218,619,388],{"class":228},[218,621,622],{"class":385},"across",[218,624,388],{"class":228},[218,626,627],{"class":385},"length",[218,629,393],{"class":228},[218,631,396],{"class":224},[218,633,634],{"class":476}," segmentFrame",[218,636,637],{"class":228},"({from: ",[218,639,156],{"class":476},[218,641,642],{"class":228},"(",[218,644,645],{"class":235},"'from'",[218,647,648],{"class":228},"), to: ",[218,650,156],{"class":476},[218,652,642],{"class":228},[218,654,655],{"class":235},"'to'",[218,657,658],{"class":228},")})(params, ",[218,660,165],{"class":476},[218,662,663],{"class":228},"(params))\n",[218,665,667,669,672,674,677,679,681,683,685,687,689,692,694],{"class":220,"line":666},19,[218,668,599],{"class":224},[218,670,671],{"class":385}," profile",[218,673,473],{"class":224},[218,675,676],{"class":476}," exp",[218,678,642],{"class":228},[218,680,424],{"class":476},[218,682,642],{"class":228},[218,684,409],{"class":476},[218,686,642],{"class":228},[218,688,419],{"class":476},[218,690,691],{"class":228},"(across, across), ",[218,693,419],{"class":476},[218,695,696],{"class":228},"(u.width, u.width))))\n",[218,698,700,702,705,707,710,712,714,716,719,722,724,726,728,731,733],{"class":220,"line":699},20,[218,701,599],{"class":224},[218,703,704],{"class":385}," ends",[218,706,473],{"class":224},[218,708,709],{"class":476}," mul",[218,711,642],{"class":228},[218,713,429],{"class":476},[218,715,642],{"class":228},[218,717,718],{"class":385},"0",[218,720,721],{"class":228},", u.feather, along), ",[218,723,429],{"class":476},[218,725,642],{"class":228},[218,727,718],{"class":385},[218,729,730],{"class":228},", u.feather, ",[218,732,434],{"class":476},[218,734,735],{"class":228},"(length, along)))\n",[218,737,739,741,744,746,748],{"class":220,"line":738},21,[218,740,599],{"class":224},[218,742,743],{"class":385}," bar",[218,745,473],{"class":224},[218,747,709],{"class":476},[218,749,750],{"class":228},"(profile, ends)\n",[218,752,754,757,760,762,764,767,770,772,775],{"class":220,"line":753},22,[218,755,756],{"class":224},"    return",[218,758,759],{"class":476}," vec4",[218,761,642],{"class":228},[218,763,419],{"class":476},[218,765,766],{"class":228},"(u.color.",[218,768,769],{"class":476},"member",[218,771,642],{"class":228},[218,773,774],{"class":235},"'rgb'",[218,776,777],{"class":228},"), bar), bar)\n",[218,779,781],{"class":220,"line":780},23,[218,782,572],{"class":228},[218,784,786],{"class":220,"line":785},24,[218,787,788],{"class":228},"})\n",[238,790,792],{"id":791},"types","Types",[243,794,795,805],{},[246,796,797],{},[249,798,799,802],{},[252,800,801],{},"Type",[252,803,804],{},"What it is",[259,806,807,820,832],{},[249,808,809,814],{},[264,810,811],{},[8,812,813],{},"CentredFrame",[264,815,816,817,819],{},"What ",[8,818,298],{}," gives you for each pixel.",[249,821,822,827],{},[264,823,824],{},[8,825,826],{},"DirectionFrame",[264,828,816,829,831],{},[8,830,206],{}," gives you.",[249,833,834,839],{},[264,835,836],{},[8,837,838],{},"SegmentFrame",[264,840,816,841,819],{},[8,842,311],{},[238,844,846],{"id":845},"words","Words",[848,849,851],"primitive-words",{":words":850},"[{\"name\":\"surfaceOf\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fframes\u002Fsurfaceof\",\"summary\":\"The canvas a generator paints on: its `uv`, its `viewport` size in pixels and its `aspect`.\"},{\"name\":\"centredFrame\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fframes\u002Fcentredframe\",\"summary\":\"A frame centred on a position prop: each pixel's offset from the centre and its distance.\"},{\"name\":\"segmentFrame\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fframes\u002Fsegmentframe\",\"summary\":\"A frame along the line between two position props: how far each pixel is along it and across it.\"},{\"name\":\"direction\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fframes\u002Fdirection\",\"summary\":\"A direction in degrees as a unit vector.\"},{\"name\":\"directionFrame\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fframes\u002Fdirectionframe\",\"summary\":\"The two axes of a direction given in degrees, for patterns that run along it.\"},{\"name\":\"sectorFold\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fframes\u002Fsectorfold\",\"summary\":\"Fold a point into one mirrored wedge around a centre: the kaleidoscope fold.\"},{\"name\":\"rawSurfaceOf\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fframes\u002Frawsurfaceof\",\"summary\":\"The canvas like `surfaceOf`, but always measured against the whole canvas, never a fitted box.\"}]",[852,853,854,873,880,887,894,901,908],"ul",{},[855,856,857,861,862,864,865,868,869,872],"li",{},[160,858,859],{"href":162},[8,860,165],{}," — The canvas a generator paints on: its ",[8,863,169],{},", its ",[8,866,867],{},"viewport"," size in pixels and its ",[8,870,871],{},"aspect",".",[855,874,875,879],{},[160,876,877],{"href":295},[8,878,298],{}," — A frame centred on a position prop: each pixel's offset from the centre and its distance.",[855,881,882,886],{},[160,883,884],{"href":308},[8,885,311],{}," — A frame along the line between two position props: how far each pixel is along it and across it.",[855,888,889,893],{},[160,890,891],{"href":196},[8,892,199],{}," — A direction in degrees as a unit vector.",[855,895,896,900],{},[160,897,898],{"href":203},[8,899,206],{}," — The two axes of a direction given in degrees, for patterns that run along it.",[855,902,903,907],{},[160,904,905],{"href":343},[8,906,346],{}," — Fold a point into one mirrored wedge around a centre: the kaleidoscope fold.",[855,909,910,914,915,917],{},[160,911,912],{"href":282},[8,913,285],{}," — The canvas like ",[8,916,165],{},", but always measured against the whole canvas, never a fitted box.",[919,920,921],"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":214,"searchDepth":369,"depth":369,"links":923},[924,925,926,927],{"id":240,"depth":369,"text":241},{"id":349,"depth":369,"text":350},{"id":791,"depth":369,"text":792},{"id":845,"depth":369,"text":846},"frames","Frames are how a generator measures its pixels.","https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fedit\u002Fmain\u002Fpackages\u002Fcore\u002Fdocs\u002Fstd\u002Fframes.md","md","space","Shapes, frames & warps",{},"\u002Fdocs\u002Fprimitives\u002Fframes",{"title":147,"description":929},"https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fstd\u002Fframes.ts","docs\u002Fprimitives\u002F19.frames\u002Findex","k4KdKbJkHox4LthytmWOxeGh1xP6Pjxgv8on-s5MrfU"]