[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"github-stars":3,"guide-nav":5,"doc-\u002Fdocs\u002Fprimitives\u002Fnoise\u002Fworleynoise":129},{"stars":4},5507,[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":260,"categorySlug":260,"categoryTitle":666,"curated":667,"description":142,"editUrl":668,"extension":669,"group":670,"groupTitle":671,"kind":672,"meta":673,"navigation":674,"path":675,"seo":676,"sourceUrl":677,"stem":678,"wordCount":668,"__hash__":679},"primitives\u002Fdocs\u002Fprimitives\u002F12.noise\u002F17.worleynoise.md","worleyNoise",{"type":133,"value":134,"toc":660},"minimark",[135,139,143,255,270,357,362,397,405,408,412,542,567,571,646,650,656],[136,137,131],"h1",{"id":138},"worleynoise",[140,141,142],"p",{},"A complete cellular-noise paint: distances to drifting cell points, read through the color ramp.",[144,145,150],"pre",{"className":146,"code":147,"language":148,"meta":149,"style":149},"language-ts shiki shiki-themes github-dark","worleyNoise(slots: {\n    scale: PropRef\n    jitter: PropRef\n    lacunarity: PropRef\n    persistence: PropRef\n    contrast: PropRef\n    balance: PropRef\n    seed: PropRef\n    \u002F** Compile-time prop: `'f1' | 'f2' | 'f2MinusF1' | 'f1PlusF2' | 'f1TimesF2'`. *\u002F\n    mode: PropRef\n    \u002F** Compile-time prop: `'euclidean' | 'manhattan' | 'chebyshev'`. *\u002F\n    distance: PropRef\n    \u002F** Compile-time prop: 1 to 4. *\u002F\n    octaves: PropRef\n    space: PropRef\n}): Paint\n","ts","",[10,151,152,164,170,176,182,188,194,200,206,213,219,225,231,237,243,249],{"__ignoreMap":149},[153,154,157,160],"span",{"class":155,"line":156},"line",1,[153,158,131],{"class":159},"svObZ",[153,161,163],{"class":162},"s95oV","(slots: {\n",[153,165,167],{"class":155,"line":166},2,[153,168,169],{"class":162},"    scale: PropRef\n",[153,171,173],{"class":155,"line":172},3,[153,174,175],{"class":162},"    jitter: PropRef\n",[153,177,179],{"class":155,"line":178},4,[153,180,181],{"class":162},"    lacunarity: PropRef\n",[153,183,185],{"class":155,"line":184},5,[153,186,187],{"class":162},"    persistence: PropRef\n",[153,189,191],{"class":155,"line":190},6,[153,192,193],{"class":162},"    contrast: PropRef\n",[153,195,197],{"class":155,"line":196},7,[153,198,199],{"class":162},"    balance: PropRef\n",[153,201,203],{"class":155,"line":202},8,[153,204,205],{"class":162},"    seed: PropRef\n",[153,207,209],{"class":155,"line":208},9,[153,210,212],{"class":211},"sAwPA","    \u002F** Compile-time prop: `'f1' | 'f2' | 'f2MinusF1' | 'f1PlusF2' | 'f1TimesF2'`. *\u002F\n",[153,214,216],{"class":155,"line":215},10,[153,217,218],{"class":162},"    mode: PropRef\n",[153,220,222],{"class":155,"line":221},11,[153,223,224],{"class":211},"    \u002F** Compile-time prop: `'euclidean' | 'manhattan' | 'chebyshev'`. *\u002F\n",[153,226,228],{"class":155,"line":227},12,[153,229,230],{"class":162},"    distance: PropRef\n",[153,232,234],{"class":155,"line":233},13,[153,235,236],{"class":211},"    \u002F** Compile-time prop: 1 to 4. *\u002F\n",[153,238,240],{"class":155,"line":239},14,[153,241,242],{"class":162},"    octaves: PropRef\n",[153,244,246],{"class":155,"line":245},15,[153,247,248],{"class":162},"    space: PropRef\n",[153,250,252],{"class":155,"line":251},16,[153,253,254],{"class":162},"}): Paint\n",[140,256,257,258,261,262,265,266,269],{},"Import ",[10,259,260],{},"noise"," from ",[10,263,264],{},"shaders\u002Fstd"," and use ",[10,267,268],{},"noise.worleyNoise",".",[140,271,272,275,276,279,280,283,284,287,288,291,292,295,296,291,299,302,303,306,307,310,311,314,315,318,319,322,323,326,327,330,331,334,335,338,339,291,341,326,343,345,346,291,349,352,353,356],{},[10,273,274],{},"scale"," is the number of cells across (1 to 30) and ",[10,277,278],{},"jitter"," how far the points wander from a grid (0 = rigid grid, 1 = random). ",[10,281,282],{},"mode"," picks the distance field: ",[10,285,286],{},"'f1'"," (cells), ",[10,289,290],{},"'f2'",", ",[10,293,294],{},"'f2MinusF1'"," (edges), ",[10,297,298],{},"'f1PlusF2'",[10,300,301],{},"'f1TimesF2'",". ",[10,304,305],{},"distance"," picks the cell shape: ",[10,308,309],{},"'euclidean'"," (round), ",[10,312,313],{},"'manhattan'"," (diamond), ",[10,316,317],{},"'chebyshev'"," (square). ",[10,320,321],{},"octaves"," (1 to 4) stacks finer layers, with ",[10,324,325],{},"lacunarity"," and ",[10,328,329],{},"persistence"," setting how much finer and weaker. ",[10,332,333],{},"contrast"," is a multiplier (1 = unchanged) and ",[10,336,337],{},"balance"," a shift. Low values read the first color. ",[10,340,282],{},[10,342,305],{},[10,344,321],{}," are compile-time props. Reads the definition's ",[10,347,348],{},"colorA",[10,350,351],{},"colorB"," and, when present, ",[10,354,355],{},"stops"," props.",[358,359,361],"h2",{"id":360},"parameters","Parameters",[363,364,365,381],"table",{},[366,367,368],"thead",{},[369,370,371,375,378],"tr",{},[372,373,374],"th",{},"Name",[372,376,377],{},"Type",[372,379,380],{},"Notes",[382,383,384],"tbody",{},[369,385,386,392,395],{},[387,388,389],"td",{},[10,390,391],{},"slots",[387,393,394],{},"`{",[387,396],{},[144,398,403],{"className":399,"code":401,"language":402},[400],"language-text","scale: PropRef\njitter: PropRef\nlacunarity: PropRef\npersistence: PropRef\ncontrast: PropRef\nbalance: PropRef\nseed: PropRef\n\u002F** Compile-time prop: `'f1' \\| 'f2' \\| 'f2MinusF1' \\| 'f1PlusF2' \\| 'f1TimesF2'`. *\u002F\nmode: PropRef\n\u002F** Compile-time prop: `'euclidean' \\| 'manhattan' \\| 'chebyshev'`. *\u002F\ndistance: PropRef\n\u002F** Compile-time prop: 1 to 4. *\u002F\noctaves: PropRef\nspace: PropRef\n","text",[10,404,401],{"__ignoreMap":149},[140,406,407],{},"}` |  |",[358,409,411],{"id":410},"example","Example",[144,413,415],{"className":146,"code":414,"language":148,"meta":149,"style":149},"paint: worleyNoise({scale: p('scale'), jitter: p('jitter'), lacunarity: p('lacunarity'), persistence: p('persistence'), contrast: p('contrast'), balance: p('balance'), seed: p('seed'), mode: p('mode'), distance: p('distance'), octaves: p('octaves'), space: p('colorSpace')})\n",[10,416,417],{"__ignoreMap":149},[153,418,419,422,425,427,430,432,435,439,442,444,446,449,452,454,456,459,462,464,466,469,472,474,476,479,482,484,486,489,492,494,496,499,502,504,506,509,512,514,516,519,522,524,526,529,532,534,536,539],{"class":155,"line":156},[153,420,421],{"class":159},"paint",[153,423,424],{"class":162},": ",[153,426,131],{"class":159},[153,428,429],{"class":162},"({scale: ",[153,431,140],{"class":159},[153,433,434],{"class":162},"(",[153,436,438],{"class":437},"sU2Wk","'scale'",[153,440,441],{"class":162},"), jitter: ",[153,443,140],{"class":159},[153,445,434],{"class":162},[153,447,448],{"class":437},"'jitter'",[153,450,451],{"class":162},"), lacunarity: ",[153,453,140],{"class":159},[153,455,434],{"class":162},[153,457,458],{"class":437},"'lacunarity'",[153,460,461],{"class":162},"), persistence: ",[153,463,140],{"class":159},[153,465,434],{"class":162},[153,467,468],{"class":437},"'persistence'",[153,470,471],{"class":162},"), contrast: ",[153,473,140],{"class":159},[153,475,434],{"class":162},[153,477,478],{"class":437},"'contrast'",[153,480,481],{"class":162},"), balance: ",[153,483,140],{"class":159},[153,485,434],{"class":162},[153,487,488],{"class":437},"'balance'",[153,490,491],{"class":162},"), seed: ",[153,493,140],{"class":159},[153,495,434],{"class":162},[153,497,498],{"class":437},"'seed'",[153,500,501],{"class":162},"), mode: ",[153,503,140],{"class":159},[153,505,434],{"class":162},[153,507,508],{"class":437},"'mode'",[153,510,511],{"class":162},"), distance: ",[153,513,140],{"class":159},[153,515,434],{"class":162},[153,517,518],{"class":437},"'distance'",[153,520,521],{"class":162},"), octaves: ",[153,523,140],{"class":159},[153,525,434],{"class":162},[153,527,528],{"class":437},"'octaves'",[153,530,531],{"class":162},"), space: ",[153,533,140],{"class":159},[153,535,434],{"class":162},[153,537,538],{"class":437},"'colorSpace'",[153,540,541],{"class":162},")})\n",[543,544,545],"blockquote",{},[140,546,547,551,552,326,554,556,557,326,560,563,564,269],{},[548,549,550],"strong",{},"Tip."," Give the ",[10,553,282],{},[10,555,305],{}," props ",[10,558,559],{},"transformWorleyMode",[10,561,562],{},"transformWorleyDistance"," as their ",[10,565,566],{},"transform",[358,568,570],{"id":569},"see-also","See also",[572,573,574,589,618,637],"ul",{},[575,576,577,584,585,588],"li",{},[578,579,581],"a",{"href":580},"\u002Fdocs\u002Fprimitives\u002Fnoise\u002Fcelldistances",[10,582,583],{},"cellDistances"," — Distances from each pixel to its nearest two cell points, as ",[10,586,587],{},"(d1, d2)",": the raw material for Voronoi fills and borders.",[575,590,591,596,597,599,600,602,603,605,606,291,608,291,610,291,612,614,615,617],{},[578,592,594],{"href":593},"\u002Fdocs\u002Fprimitives\u002Fnoise\u002Ftransformworleymode",[10,595,559],{}," — The ",[10,598,566],{}," for a ",[10,601,131],{}," ",[10,604,282],{}," prop: maps ",[10,607,286],{},[10,609,290],{},[10,611,294],{},[10,613,298],{}," or ",[10,616,301],{}," to the number the paint reads.",[575,619,620,596,625,599,627,602,629,605,631,291,633,614,635,617],{},[578,621,623],{"href":622},"\u002Fdocs\u002Fprimitives\u002Fnoise\u002Ftransformworleydistance",[10,624,562],{},[10,626,566],{},[10,628,131],{},[10,630,305],{},[10,632,309],{},[10,634,313],{},[10,636,317],{},[575,638,639,645],{},[578,640,642],{"href":641},"\u002Fdocs\u002Fprimitives\u002Fnoise\u002Ffractalnoise",[10,643,644],{},"fractalNoise"," — A complete fractal-noise paint: layered simplex noise that morphs over time, read through the color ramp.",[358,647,649],{"id":648},"used-by","Used by",[140,651,652],{},[578,653,655],{"href":654},"\u002Fdocs\u002Fcomponents\u002Fworleynoise","WorleyNoise",[657,658,659],"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 pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}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 .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}",{"title":149,"searchDepth":166,"depth":166,"links":661},[662,663,664,665],{"id":360,"depth":166,"text":361},{"id":410,"depth":166,"text":411},{"id":569,"depth":166,"text":570},{"id":648,"depth":166,"text":649},"Noise",false,null,"md","light","Noise, light & materials","function",{},true,"\u002Fdocs\u002Fprimitives\u002Fnoise\u002Fworleynoise",{"title":131,"description":142},"https:\u002F\u002Fgithub.com\u002Fshader-effects-inc\u002Fshaders\u002Fblob\u002Fmain\u002Fpackages\u002Fcore\u002Fsrc\u002Fstd\u002Fpaint\u002Fnoise.ts#L805","docs\u002Fprimitives\u002F12.noise\u002F17.worleynoise","TKYJH6Yj2xnhpsMaa2RCJD1ZfuJoVb7yr9-8WdoZvVI"]