[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"github-stars":3,"guide-nav":5,"doc-\u002Fdocs\u002Fprimitives\u002Fpaint":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":1258,"categorySlug":1258,"categoryTitle":1259,"curated":518,"description":1260,"editUrl":1261,"extension":1262,"group":1258,"groupTitle":1263,"kind":1259,"meta":1264,"navigation":518,"path":1265,"seo":1266,"sourceUrl":1267,"stem":1268,"wordCount":1269,"__hash__":1270},"primitives\u002Fdocs\u002Fprimitives\u002F6.paint\u002Findex.md","Fields, palettes & ramps",{"type":133,"value":134,"toc":1252},"minimark",[135,139,168,219,226,255,260,493,497,875,879,955,959,1248],[136,137,131],"h1",{"id":138},"fields-palettes-ramps",[140,141,142,143,147,148,151,152,155,156,159,160,167],"p",{},"The words every gradient and most textures are drawn with. A ",[144,145,146],"strong",{},"field"," is a number per pixel\n(",[10,149,150],{},"Field","): the distance from a point, a noise value, a flow pattern. A ",[144,153,154],{},"palette"," turns a\nnumber into a color (",[10,157,158],{},"Palette","): two colors, or a multi-stop ramp, mixed in the color space\nyour definition declares. ",[161,162,164],"a",{"href":163},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Frampover",[10,165,166],{},"rampOver"," joins the two and is the single most common line in a\ngenerator.",[140,169,170,171,177,178,184,185,191,192,198,199,191,205,211,212,218],{},"Everything else here shapes the field before it meets the palette. ",[161,172,174],{"href":173},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fwarped",[10,175,176],{},"warped"," bends the\ncoordinate so smooth noise turns liquid. ",[161,179,181],{"href":180},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fscaledvolume",[10,182,183],{},"scaledVolume"," gives noise a zoomable, aspect-correct\ncoordinate. ",[161,186,188],{"href":187},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Ftone",[10,189,190],{},"tone"," and ",[161,193,195],{"href":194},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fthreshold",[10,196,197],{},"threshold"," reshape the value. ",[161,200,202],{"href":201},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Frings",[10,203,204],{},"rings",[161,206,208],{"href":207},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Ftiles",[10,209,210],{},"tiles"," repeat it. ",[161,213,215],{"href":214},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fshare",[10,216,217],{},"share","\nlets two words read one result. Fields nest, so read a recipe from the inside out: the\ninnermost word is sampled first and each wrapper changes what the next one sees.",[140,220,221,222,225],{},"The result is a paint: put it in the definition's ",[10,223,224],{},"paint:"," field.",[227,228,233],"pre",{"className":229,"code":230,"language":231,"meta":232,"style":232},"language-ts shiki shiki-themes github-dark","import {paint} from 'shaders\u002Fstd'\n","ts","",[10,234,235],{"__ignoreMap":232},[236,237,240,244,248,251],"span",{"class":238,"line":239},"line",1,[236,241,243],{"class":242},"snl16","import",[236,245,247],{"class":246},"s95oV"," {paint} ",[236,249,250],{"class":242},"from",[236,252,254],{"class":253},"sU2Wk"," 'shaders\u002Fstd'\n",[256,257,259],"h2",{"id":258},"reach-for-it-when","Reach for it when",[261,262,263,276],"table",{},[264,265,266],"thead",{},[267,268,269,273],"tr",{},[270,271,272],"th",{},"When you need",[270,274,275],{},"Use",[277,278,279,312,335,346,357,375,391,402,422,441,461,480],"tbody",{},[267,280,281,285],{},[282,283,284],"td",{},"a gradient of any shape, in a chosen color space",[282,286,287,291,292,298,299,305,306],{},[161,288,289],{"href":163},[10,290,166],{}," with a ",[161,293,295],{"href":294},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fdist",[10,296,297],{},"dist"," field and ",[161,300,302],{"href":301},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fpair",[10,303,304],{},"pair"," or ",[161,307,309],{"href":308},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fstops",[10,310,311],{},"stops",[267,313,314,317],{},[282,315,316],{},"the field should flow like liquid",[282,318,319,323,324,330,331],{},[161,320,321],{"href":173},[10,322,176],{}," around a ",[161,325,327],{"href":326},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fnoisefield",[10,328,329],{},"noiseField",", inside ",[161,332,333],{"href":180},[10,334,183],{},[267,336,337,340],{},[282,338,339],{},"noise you can zoom evenly at any canvas size",[282,341,342],{},[161,343,344],{"href":180},[10,345,183],{},[267,347,348,351],{},[282,349,350],{},"the value is too flat or too hot for the palette",[282,352,353],{},[161,354,355],{"href":187},[10,356,190],{},[267,358,359,362],{},[282,360,361],{},"a signed pattern should become soft color bands",[282,363,364,368,369],{},[161,365,366],{"href":194},[10,367,197],{}," over ",[161,370,372],{"href":371},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fflowfield",[10,373,374],{},"flowField",[267,376,377,380],{},[282,378,379],{},"concentric or repeated bands of one field",[282,381,382,386,387],{},[161,383,384],{"href":201},[10,385,204],{},", ",[161,388,389],{"href":207},[10,390,210],{},[267,392,393,396],{},[282,394,395],{},"two words need the same field without computing it twice",[282,397,398],{},[161,399,400],{"href":214},[10,401,217],{},[267,403,404,407],{},[282,405,406],{},"a slow brightness breathing along a pattern",[282,408,409,415,416],{},[161,410,412],{"href":411},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fpulse",[10,413,414],{},"pulse"," inside ",[161,417,419],{"href":418},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fshimmered",[10,420,421],{},"shimmered",[267,423,424,427],{},[282,425,426],{},"the palette value runs past 1 and must not seam",[282,428,429,386,435],{},[161,430,432],{"href":431},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fwrapramp",[10,433,434],{},"wrapRamp",[161,436,438],{"href":437},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Ffoldramp",[10,439,440],{},"foldRamp",[267,442,443,446],{},[282,444,445],{},"a mesh-gradient look, colors scattered across the canvas",[282,447,448,454,455],{},[161,449,451],{"href":450},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fscatterfield",[10,452,453],{},"scatterField"," with ",[161,456,458],{"href":457},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fscatteredanchors",[10,459,460],{},"scatteredAnchors",[267,462,463,466],{},[282,464,465],{},"three or four colors blended by two values",[282,467,468,386,474],{},[161,469,471],{"href":470},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fcolorladder3",[10,472,473],{},"colorLadder3",[161,475,477],{"href":476},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fquadblend",[10,478,479],{},"quadBlend",[267,481,482,485],{},[282,483,484],{},"a rainbow from a hue number",[282,486,487],{},[161,488,490],{"href":489},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fhuewheel",[10,491,492],{},"hueWheel",[256,494,496],{"id":495},"example","Example",[227,498,500],{"className":229,"code":499,"language":231,"meta":232,"style":232},"import {defineShader, p, paint, transformColor, transformColorSpace, colorSpaceOptions, colorStopsPropConfig} from 'shaders\u002Fstd'\n\nconst {rampOver, tone, scaledVolume, warped, noiseField, stops} = paint\n\n\u002F\u002F Liquid plasma: warped noise on a zoomable slab, tone-shaped, read through the stop ramp.\nexport const Plasma = defineShader({\n  name: 'Plasma',\n  animatedTime: {speed: 'speed'},\n  props: {\n    colorA: {default: '#7018be', transform: transformColor},\n    colorB: {default: '#000000', transform: transformColor},\n    stops: colorStopsPropConfig(),\n    colorSpace: {default: 'oklch', transform: transformColorSpace, compileTime: true, ui: {type: 'select', options: colorSpaceOptions}},\n    scale: {default: 2},\n    warp: {default: 0.4},\n    intensity: {default: 1.5},\n    speed: {default: 1},\n  },\n  paint: rampOver(\n    tone(\n      scaledVolume(warped(noiseField('mx3'), {amount: p('warp'), amountScale: 4, timeScale: 0.125}), {scale: p('scale')}),\n      {glow: p('intensity'), contrast: 1, balance: 50, invert: true},\n    ),\n    stops(p('colorSpace')),\n  ),\n})\n",[10,501,502,513,520,561,566,573,595,607,619,625,637,648,660,684,695,706,717,728,734,745,753,808,839,845,863,869],{"__ignoreMap":232},[236,503,504,506,509,511],{"class":238,"line":239},[236,505,243],{"class":242},[236,507,508],{"class":246}," {defineShader, p, paint, transformColor, transformColorSpace, colorSpaceOptions, colorStopsPropConfig} ",[236,510,250],{"class":242},[236,512,254],{"class":253},[236,514,516],{"class":238,"line":515},2,[236,517,519],{"emptyLinePlaceholder":518},true,"\n",[236,521,523,526,529,532,534,536,538,540,542,544,546,548,550,552,555,558],{"class":238,"line":522},3,[236,524,525],{"class":242},"const",[236,527,528],{"class":246}," {",[236,530,166],{"class":531},"sDLfK",[236,533,386],{"class":246},[236,535,190],{"class":531},[236,537,386],{"class":246},[236,539,183],{"class":531},[236,541,386],{"class":246},[236,543,176],{"class":531},[236,545,386],{"class":246},[236,547,329],{"class":531},[236,549,386],{"class":246},[236,551,311],{"class":531},[236,553,554],{"class":246},"} ",[236,556,557],{"class":242},"=",[236,559,560],{"class":246}," paint\n",[236,562,564],{"class":238,"line":563},4,[236,565,519],{"emptyLinePlaceholder":518},[236,567,569],{"class":238,"line":568},5,[236,570,572],{"class":571},"sAwPA","\u002F\u002F Liquid plasma: warped noise on a zoomable slab, tone-shaped, read through the stop ramp.\n",[236,574,576,579,582,585,588,592],{"class":238,"line":575},6,[236,577,578],{"class":242},"export",[236,580,581],{"class":242}," const",[236,583,584],{"class":531}," Plasma",[236,586,587],{"class":242}," =",[236,589,591],{"class":590},"svObZ"," defineShader",[236,593,594],{"class":246},"({\n",[236,596,598,601,604],{"class":238,"line":597},7,[236,599,600],{"class":246},"  name: ",[236,602,603],{"class":253},"'Plasma'",[236,605,606],{"class":246},",\n",[236,608,610,613,616],{"class":238,"line":609},8,[236,611,612],{"class":246},"  animatedTime: {speed: ",[236,614,615],{"class":253},"'speed'",[236,617,618],{"class":246},"},\n",[236,620,622],{"class":238,"line":621},9,[236,623,624],{"class":246},"  props: {\n",[236,626,628,631,634],{"class":238,"line":627},10,[236,629,630],{"class":246},"    colorA: {default: ",[236,632,633],{"class":253},"'#7018be'",[236,635,636],{"class":246},", transform: transformColor},\n",[236,638,640,643,646],{"class":238,"line":639},11,[236,641,642],{"class":246},"    colorB: {default: ",[236,644,645],{"class":253},"'#000000'",[236,647,636],{"class":246},[236,649,651,654,657],{"class":238,"line":650},12,[236,652,653],{"class":246},"    stops: ",[236,655,656],{"class":590},"colorStopsPropConfig",[236,658,659],{"class":246},"(),\n",[236,661,663,666,669,672,675,678,681],{"class":238,"line":662},13,[236,664,665],{"class":246},"    colorSpace: {default: ",[236,667,668],{"class":253},"'oklch'",[236,670,671],{"class":246},", transform: transformColorSpace, compileTime: ",[236,673,674],{"class":531},"true",[236,676,677],{"class":246},", ui: {type: ",[236,679,680],{"class":253},"'select'",[236,682,683],{"class":246},", options: colorSpaceOptions}},\n",[236,685,687,690,693],{"class":238,"line":686},14,[236,688,689],{"class":246},"    scale: {default: ",[236,691,692],{"class":531},"2",[236,694,618],{"class":246},[236,696,698,701,704],{"class":238,"line":697},15,[236,699,700],{"class":246},"    warp: {default: ",[236,702,703],{"class":531},"0.4",[236,705,618],{"class":246},[236,707,709,712,715],{"class":238,"line":708},16,[236,710,711],{"class":246},"    intensity: {default: ",[236,713,714],{"class":531},"1.5",[236,716,618],{"class":246},[236,718,720,723,726],{"class":238,"line":719},17,[236,721,722],{"class":246},"    speed: {default: ",[236,724,725],{"class":531},"1",[236,727,618],{"class":246},[236,729,731],{"class":238,"line":730},18,[236,732,733],{"class":246},"  },\n",[236,735,737,740,742],{"class":238,"line":736},19,[236,738,739],{"class":246},"  paint: ",[236,741,166],{"class":590},[236,743,744],{"class":246},"(\n",[236,746,748,751],{"class":238,"line":747},20,[236,749,750],{"class":590},"    tone",[236,752,744],{"class":246},[236,754,756,759,762,764,766,768,770,773,776,778,780,783,786,789,792,795,798,800,802,805],{"class":238,"line":755},21,[236,757,758],{"class":590},"      scaledVolume",[236,760,761],{"class":246},"(",[236,763,176],{"class":590},[236,765,761],{"class":246},[236,767,329],{"class":590},[236,769,761],{"class":246},[236,771,772],{"class":253},"'mx3'",[236,774,775],{"class":246},"), {amount: ",[236,777,140],{"class":590},[236,779,761],{"class":246},[236,781,782],{"class":253},"'warp'",[236,784,785],{"class":246},"), amountScale: ",[236,787,788],{"class":531},"4",[236,790,791],{"class":246},", timeScale: ",[236,793,794],{"class":531},"0.125",[236,796,797],{"class":246},"}), {scale: ",[236,799,140],{"class":590},[236,801,761],{"class":246},[236,803,804],{"class":253},"'scale'",[236,806,807],{"class":246},")}),\n",[236,809,811,814,816,818,821,824,826,829,832,835,837],{"class":238,"line":810},22,[236,812,813],{"class":246},"      {glow: ",[236,815,140],{"class":590},[236,817,761],{"class":246},[236,819,820],{"class":253},"'intensity'",[236,822,823],{"class":246},"), contrast: ",[236,825,725],{"class":531},[236,827,828],{"class":246},", balance: ",[236,830,831],{"class":531},"50",[236,833,834],{"class":246},", invert: ",[236,836,674],{"class":531},[236,838,618],{"class":246},[236,840,842],{"class":238,"line":841},23,[236,843,844],{"class":246},"    ),\n",[236,846,848,851,853,855,857,860],{"class":238,"line":847},24,[236,849,850],{"class":590},"    stops",[236,852,761],{"class":246},[236,854,140],{"class":590},[236,856,761],{"class":246},[236,858,859],{"class":253},"'colorSpace'",[236,861,862],{"class":246},")),\n",[236,864,866],{"class":238,"line":865},25,[236,867,868],{"class":246},"  ),\n",[236,870,872],{"class":238,"line":871},26,[236,873,874],{"class":246},"})\n",[256,876,878],{"id":877},"types","Types",[261,880,881,891],{},[264,882,883],{},[267,884,885,888],{},[270,886,887],{},"Type",[270,889,890],{},"What it is",[277,892,893,902,920,933,946],{},[267,894,895,899],{},[282,896,897],{},[10,898,150],{},[282,900,901],{},"A number per pixel, computed from a coordinate.",[267,903,904,909],{},[282,905,906],{},[10,907,908],{},"FieldScalar",[282,910,911,912,915,916,919],{},"A number input: a prop ",[10,913,914],{},"p('name')",", a plain number, or a prop remapped as ",[10,917,918],{},"{base, add, mul}",".",[267,921,922,927],{},[282,923,924],{},[10,925,926],{},"NoiseBasis",[282,928,929,930,932],{},"The noise flavors ",[10,931,329],{}," can sample.",[267,934,935,940],{},[282,936,937],{},[10,938,939],{},"Paint",[282,941,942,943,945],{},"What a generator's ",[10,944,224],{}," field takes: a function that returns the color at this pixel.",[267,947,948,952],{},[282,949,950],{},[10,951,158],{},[282,953,954],{},"A color for a field value between 0 and 1.",[256,956,958],{"id":957},"words","Words",[960,961,963],"primitive-words",{":words":962},"[{\"name\":\"rampOver\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Frampover\",\"summary\":\"A paint that colors each pixel by looking its field value up in a palette.\"},{\"name\":\"pair\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fpair\",\"summary\":\"A palette of two color props, mixed in the color space named by the `space` prop.\"},{\"name\":\"stops\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fstops\",\"summary\":\"The standard multi-stop palette, read from the `stops`, `colorA` and `colorB` props.\"},{\"name\":\"standardPalette\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fstandardpalette\",\"summary\":\"The color for a 0–1 value from the standard palette props: `colorA`, `colorB`, `stops`, `colorSpace`.\"},{\"name\":\"dist\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fdist\",\"summary\":\"Distance fields: the shape of a gradient, as a number that grows away from a line or point.\"},{\"name\":\"noiseField\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fnoisefield\",\"summary\":\"A field of smooth noise in the chosen flavor.\"},{\"name\":\"warped\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fwarped\",\"summary\":\"Makes a field flow like liquid by bending its coordinate with moving noise.\"},{\"name\":\"scaledVolume\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fscaledvolume\",\"summary\":\"Gives a noise field a zoomable, aspect-correct coordinate.\"},{\"name\":\"tone\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Ftone\",\"summary\":\"Reshapes a 0–1 field with glow, contrast and balance controls, then flips it.\"},{\"name\":\"threshold\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fthreshold\",\"summary\":\"Turns a signed field (−1 to 1) into a soft 0–1 mask.\"},{\"name\":\"rings\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Frings\",\"summary\":\"Repeats a field as concentric bands.\"},{\"name\":\"tiles\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Ftiles\",\"summary\":\"Repeats a field `count` times, always wrapping.\"},{\"name\":\"share\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fshare\",\"summary\":\"Evaluates a field once and lets several words read the same result.\"},{\"name\":\"flowField\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fflowfield\",\"summary\":\"A swirling, animated wave pattern from −1 to 1.\"},{\"name\":\"pulse\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fpulse\",\"summary\":\"A gentle brightness pulse that follows a pattern field, hovering around 1.\"},{\"name\":\"shimmered\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fshimmered\",\"summary\":\"Multiplies a paint's color and alpha by a gain field, for a slow shimmer over a pattern.\"},{\"name\":\"wrapRamp\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fwrapramp\",\"summary\":\"Runs a palette value back and forth `cycles` times so a ramp repeats without a seam.\"},{\"name\":\"foldRamp\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Ffoldramp\",\"summary\":\"Folds any number into 0–1 as a seamless zigzag: up from 0 to 1, back down, every 2 units.\"},{\"name\":\"warpedPoint\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fwarpedpoint\",\"summary\":\"A 3D position pushed around by moving noise, for reading several fields at one warped spot.\"},{\"name\":\"warpStep\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fwarpstep\",\"summary\":\"One step of a chained warp: pushes a 2D position by two noise reads and hands them back.\"},{\"name\":\"scatterField\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fscatterfield\",\"summary\":\"A mesh-gradient field: up to 8 drifting points scattered across the canvas, blended by nearness.\"},{\"name\":\"scatteredAnchors\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fscatteredanchors\",\"summary\":\"Computes the `scatterField` points once per frame instead of once per pixel.\"},{\"name\":\"quadBlend\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fquadblend\",\"summary\":\"A four-color blend on a square: `a` to `b` across the top, `c` to `d` across the bottom, then top to bottom.\"},{\"name\":\"colorLadder3\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fcolorladder3\",\"summary\":\"A three-color blend: `a` to `b` by the first value, then on to `c` by the second.\"},{\"name\":\"hueWheel\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fhuewheel\",\"summary\":\"A rainbow color for a hue value: 0 is red, cycling through the spectrum and back every 1.\"},{\"name\":\"dist.conic\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fdist-conic\",\"summary\":\"A sweep around a center, like a clock hand: 0 to 1 once around.\"},{\"name\":\"dist.diamond\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fdist-diamond\",\"summary\":\"A diamond-shaped gradient spreading out from a center.\"},{\"name\":\"dist.linear\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fdist-linear\",\"summary\":\"A straight gradient from one point to another.\"},{\"name\":\"dist.radial\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fdist-radial\",\"summary\":\"A round or elliptical gradient spreading out from a center.\"},{\"name\":\"dist.spiral\",\"path\":\"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fdist-spiral\",\"summary\":\"A turning spiral stripe: 0 on the background, 1 on the stroke.\"}]",[964,965,966,974,985,1001,1019,1026,1033,1040,1047,1054,1061,1068,1079,1086,1093,1100,1107,1118,1125,1134,1143,1150,1160,1181,1196,1203,1212,1221,1230,1239],"ul",{},[967,968,969,973],"li",{},[161,970,971],{"href":163},[10,972,166],{}," — A paint that colors each pixel by looking its field value up in a palette.",[967,975,976,980,981,984],{},[161,977,978],{"href":301},[10,979,304],{}," — A palette of two color props, mixed in the color space named by the ",[10,982,983],{},"space"," prop.",[967,986,987,991,992,386,994,191,997,1000],{},[161,988,989],{"href":308},[10,990,311],{}," — The standard multi-stop palette, read from the ",[10,993,311],{},[10,995,996],{},"colorA",[10,998,999],{},"colorB"," props.",[967,1002,1003,1009,1010,386,1012,386,1014,386,1016,919],{},[161,1004,1006],{"href":1005},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fstandardpalette",[10,1007,1008],{},"standardPalette"," — The color for a 0–1 value from the standard palette props: ",[10,1011,996],{},[10,1013,999],{},[10,1015,311],{},[10,1017,1018],{},"colorSpace",[967,1020,1021,1025],{},[161,1022,1023],{"href":294},[10,1024,297],{}," — Distance fields: the shape of a gradient, as a number that grows away from a line or point.",[967,1027,1028,1032],{},[161,1029,1030],{"href":326},[10,1031,329],{}," — A field of smooth noise in the chosen flavor.",[967,1034,1035,1039],{},[161,1036,1037],{"href":173},[10,1038,176],{}," — Makes a field flow like liquid by bending its coordinate with moving noise.",[967,1041,1042,1046],{},[161,1043,1044],{"href":180},[10,1045,183],{}," — Gives a noise field a zoomable, aspect-correct coordinate.",[967,1048,1049,1053],{},[161,1050,1051],{"href":187},[10,1052,190],{}," — Reshapes a 0–1 field with glow, contrast and balance controls, then flips it.",[967,1055,1056,1060],{},[161,1057,1058],{"href":194},[10,1059,197],{}," — Turns a signed field (−1 to 1) into a soft 0–1 mask.",[967,1062,1063,1067],{},[161,1064,1065],{"href":201},[10,1066,204],{}," — Repeats a field as concentric bands.",[967,1069,1070,1074,1075,1078],{},[161,1071,1072],{"href":207},[10,1073,210],{}," — Repeats a field ",[10,1076,1077],{},"count"," times, always wrapping.",[967,1080,1081,1085],{},[161,1082,1083],{"href":214},[10,1084,217],{}," — Evaluates a field once and lets several words read the same result.",[967,1087,1088,1092],{},[161,1089,1090],{"href":371},[10,1091,374],{}," — A swirling, animated wave pattern from −1 to 1.",[967,1094,1095,1099],{},[161,1096,1097],{"href":411},[10,1098,414],{}," — A gentle brightness pulse that follows a pattern field, hovering around 1.",[967,1101,1102,1106],{},[161,1103,1104],{"href":418},[10,1105,421],{}," — Multiplies a paint's color and alpha by a gain field, for a slow shimmer over a pattern.",[967,1108,1109,1113,1114,1117],{},[161,1110,1111],{"href":431},[10,1112,434],{}," — Runs a palette value back and forth ",[10,1115,1116],{},"cycles"," times so a ramp repeats without a seam.",[967,1119,1120,1124],{},[161,1121,1122],{"href":437},[10,1123,440],{}," — Folds any number into 0–1 as a seamless zigzag: up from 0 to 1, back down, every 2 units.",[967,1126,1127,1133],{},[161,1128,1130],{"href":1129},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fwarpedpoint",[10,1131,1132],{},"warpedPoint"," — A 3D position pushed around by moving noise, for reading several fields at one warped spot.",[967,1135,1136,1142],{},[161,1137,1139],{"href":1138},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fwarpstep",[10,1140,1141],{},"warpStep"," — One step of a chained warp: pushes a 2D position by two noise reads and hands them back.",[967,1144,1145,1149],{},[161,1146,1147],{"href":450},[10,1148,453],{}," — A mesh-gradient field: up to 8 drifting points scattered across the canvas, blended by nearness.",[967,1151,1152,1156,1157,1159],{},[161,1153,1154],{"href":457},[10,1155,460],{}," — Computes the ",[10,1158,453],{}," points once per frame instead of once per pixel.",[967,1161,1162,1166,1167,1169,1170,1173,1174,1169,1177,1180],{},[161,1163,1164],{"href":476},[10,1165,479],{}," — A four-color blend on a square: ",[10,1168,161],{}," to ",[10,1171,1172],{},"b"," across the top, ",[10,1175,1176],{},"c",[10,1178,1179],{},"d"," across the bottom, then top to bottom.",[967,1182,1183,1187,1188,1169,1190,1192,1193,1195],{},[161,1184,1185],{"href":470},[10,1186,473],{}," — A three-color blend: ",[10,1189,161],{},[10,1191,1172],{}," by the first value, then on to ",[10,1194,1176],{}," by the second.",[967,1197,1198,1202],{},[161,1199,1200],{"href":489},[10,1201,492],{}," — A rainbow color for a hue value: 0 is red, cycling through the spectrum and back every 1.",[967,1204,1205,1211],{},[161,1206,1208],{"href":1207},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fdist-conic",[10,1209,1210],{},"dist.conic"," — A sweep around a center, like a clock hand: 0 to 1 once around.",[967,1213,1214,1220],{},[161,1215,1217],{"href":1216},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fdist-diamond",[10,1218,1219],{},"dist.diamond"," — A diamond-shaped gradient spreading out from a center.",[967,1222,1223,1229],{},[161,1224,1226],{"href":1225},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fdist-linear",[10,1227,1228],{},"dist.linear"," — A straight gradient from one point to another.",[967,1231,1232,1238],{},[161,1233,1235],{"href":1234},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fdist-radial",[10,1236,1237],{},"dist.radial"," — A round or elliptical gradient spreading out from a center.",[967,1240,1241,1247],{},[161,1242,1244],{"href":1243},"\u002Fdocs\u002Fprimitives\u002Fpaint\u002Fdist-spiral",[10,1245,1246],{},"dist.spiral"," — A turning spiral stripe: 0 on the background, 1 on the stroke.",[1249,1250,1251],"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}",{"title":232,"searchDepth":515,"depth":515,"links":1253},[1254,1255,1256,1257],{"id":258,"depth":515,"text":259},{"id":495,"depth":515,"text":496},{"id":877,"depth":515,"text":878},{"id":957,"depth":515,"text":958},"paint",null,"The words every gradient and most textures are drawn with.","https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fedit\u002Fmain\u002Fpackages\u002Fcore\u002Fdocs\u002Fstd\u002Fpaint.md","md","Painting",{},"\u002Fdocs\u002Fprimitives\u002Fpaint",{"title":131,"description":1260},"https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fstd\u002Fpaint\u002Ffields.ts","docs\u002Fprimitives\u002F6.paint\u002Findex",30,"6KKPinee-TIlTbJBKhSUDq5Xp7gS1F2o4n7lnWh62m4"]