[{"data":1,"prerenderedAt":561},["ShallowReactive",2],{"docs-menu":3,"docs-page:\u002Fdocs\u002Fguides\u002Feffects":193},[4,11,108,143],{"title":5,"path":6,"stem":7,"order":8,"summary":9,"exact":10},"Documentation","\u002Fdocs","docs\u002Findex",0,"How to build drawings with Wirepaint's node graph.",true,{"title":12,"order":13,"summary":14,"path":15,"stem":16,"children":17,"page":107,"exact":10},"Guides",1,null,"\u002Fdocs\u002Fguides","docs\u002Fguides",[18,23,29,35,41,47,53,59,65,71,77,83,89,95,101],{"title":19,"path":20,"stem":21,"order":13,"summary":22,"exact":10},"Getting started","\u002Fdocs\u002Fguides\u002Fgetting-started","docs\u002Fguides\u002Fgetting-started","The Playground's areas, and what each one is for.",{"title":24,"path":25,"stem":26,"order":27,"summary":28,"exact":10},"Navigating the editor","\u002Fdocs\u002Fguides\u002Fnavigating-the-editor","docs\u002Fguides\u002Fnavigating-the-editor",2,"Panning, zooming, selecting, moving and deleting in the graph editor.",{"title":30,"path":31,"stem":32,"order":33,"summary":34,"exact":10},"Adding nodes","\u002Fdocs\u002Fguides\u002Fadding-nodes","docs\u002Fguides\u002Fadding-nodes",3,"The add-node menu, its categories and search, and suggested nodes for a dropped link.",{"title":36,"path":37,"stem":38,"order":39,"summary":40,"exact":10},"Connecting pins","\u002Fdocs\u002Fguides\u002Fconnecting-pins","docs\u002Fguides\u002Fconnecting-pins",4,"Drawing wires between pins, replacing and moving them, and which pins fit together.",{"title":42,"path":43,"stem":44,"order":45,"summary":46,"exact":10},"Context menus","\u002Fdocs\u002Fguides\u002Fcontext-menus","docs\u002Fguides\u002Fcontext-menus",5,"The right-click actions for nodes, wires and empty canvas.",{"title":48,"path":49,"stem":50,"order":51,"summary":52,"exact":10},"Property inspector","\u002Fdocs\u002Fguides\u002Fproperty-inspector","docs\u002Fguides\u002Fproperty-inspector",6,"Editing a node's inputs: numbers, switches, text, drop-down lists and object fields.",{"title":54,"path":55,"stem":56,"order":57,"summary":58,"exact":10},"Live preview","\u002Fdocs\u002Fguides\u002Flive-preview","docs\u002Fguides\u002Flive-preview",7,"The drawing's page and its size, what lies outside it, panning and zooming, and downloading the image as SVG.",{"title":60,"path":61,"stem":62,"order":63,"summary":64,"exact":10},"Errors","\u002Fdocs\u002Fguides\u002Ferrors","docs\u002Fguides\u002Ferrors",8,"How the Playground shows a node that fails, and what it means for the drawing.",{"title":66,"path":67,"stem":68,"order":69,"summary":70,"exact":10},"Subgraphs","\u002Fdocs\u002Fguides\u002Fsubgraphs","docs\u002Fguides\u002Fsubgraphs",9,"Create subgraphs, edit their bodies and signatures, and use them as functions for Map, Filter, Reduce and Repeat.",{"title":72,"path":73,"stem":74,"order":75,"summary":76,"exact":10},"Saving and opening","\u002Fdocs\u002Fguides\u002Fsaving-and-opening","docs\u002Fguides\u002Fsaving-and-opening",10,"Keep your work in a file with the File menu, and open it again later.",{"title":78,"path":79,"stem":80,"order":81,"summary":82,"exact":10},"Freezing nodes","\u002Fdocs\u002Fguides\u002Ffreezing-nodes","docs\u002Fguides\u002Ffreezing-nodes",11,"Keep a node's result as it is, whatever happens to its inputs.",{"title":84,"path":85,"stem":86,"order":87,"summary":88,"exact":10},"Text","\u002Fdocs\u002Fguides\u002Ftext","docs\u002Fguides\u002Ftext",12,"Add text to a drawing, pick its font, and place it.",{"title":90,"path":91,"stem":92,"order":93,"summary":94,"exact":10},"Effects","\u002Fdocs\u002Fguides\u002Feffects","docs\u002Fguides\u002Feffects",13,"Shadows, blur, glow, grain, wobbly outlines, color changes, opacity and blend modes on any object.",{"title":96,"path":97,"stem":98,"order":99,"summary":100,"exact":10},"Undo and redo","\u002Fdocs\u002Fguides\u002Fundo-and-redo","docs\u002Fguides\u002Fundo-and-redo",14,"Take back an edit, or put it back, with the Edit menu or Ctrl+Z.",{"title":102,"path":103,"stem":104,"order":105,"summary":106,"exact":10},"Frames","\u002Fdocs\u002Fguides\u002Fframes","docs\u002Fguides\u002Fframes",15,"Draw titled frames around nodes to organize a graph.",false,{"title":109,"order":27,"summary":14,"path":110,"stem":111,"children":112,"page":107,"exact":10},"Concepts","\u002Fdocs\u002Fconcepts","docs\u002Fconcepts",[113,118,123,128,133,138],{"title":114,"path":115,"stem":116,"order":13,"summary":117,"exact":10},"Dataflow and the Output node","\u002Fdocs\u002Fconcepts\u002Fdataflow","docs\u002Fconcepts\u002Fdataflow","How a graph is evaluated, starting from the Output node, and what that means for what you build.",{"title":119,"path":120,"stem":121,"order":27,"summary":122,"exact":10},"Pin types and colors","\u002Fdocs\u002Fconcepts\u002Fpin-types","docs\u002Fconcepts\u002Fpin-types","What a pin's type says, which wires fit, and how colors and handle shapes show it.",{"title":124,"path":125,"stem":126,"order":33,"summary":127,"exact":10},"Generic pins","\u002Fdocs\u002Fconcepts\u002Fgeneric-pins","docs\u002Fconcepts\u002Fgeneric-pins","Pins whose type is set by what you connect, such as the T of the array nodes.",{"title":129,"path":130,"stem":131,"order":39,"summary":132,"exact":10},"Units and coordinates","\u002Fdocs\u002Fconcepts\u002Funits-and-coordinates","docs\u002Fconcepts\u002Funits-and-coordinates","Page coordinates, angles in radians, local and page positions, and the ranges of t, colors and lerps.",{"title":134,"path":135,"stem":136,"order":45,"summary":137,"exact":10},"Determinism and random","\u002Fdocs\u002Fconcepts\u002Fdeterminism","docs\u002Fconcepts\u002Fdeterminism","Why a graph always draws the same thing, how the random nodes fit in, and how to reroll them with seeds.",{"title":139,"path":140,"stem":141,"order":51,"summary":142,"exact":10},"Subgraphs and functions","\u002Fdocs\u002Fconcepts\u002Fsubgraphs","docs\u002Fconcepts\u002Fsubgraphs","Functions are graphs of their own, used as nodes or passed to Map, Filter, Reduce and Repeat.",{"title":144,"order":33,"summary":14,"path":145,"stem":146,"children":147,"page":107,"exact":10},"Examples","\u002Fdocs\u002Fexamples","docs\u002Fexamples",[148,153,158,163,168,173,178,183,188],{"title":149,"path":150,"stem":151,"order":13,"summary":152,"exact":10},"Blending two circles","\u002Fdocs\u002Fexamples\u002Fblending-circles","docs\u002Fexamples\u002Fblending-circles","A row of circles that grows and changes color, from two circles and Lerp.",{"title":154,"path":155,"stem":156,"order":27,"summary":157,"exact":10},"A whirl of squares","\u002Fdocs\u002Fexamples\u002Fwhirl-of-squares","docs\u002Fexamples\u002Fwhirl-of-squares","Squares that turn and shrink one step at a time, with Rotate and Scale.",{"title":159,"path":160,"stem":161,"order":33,"summary":162,"exact":10},"A hexagram from a circle","\u002Fdocs\u002Fexamples\u002Fhexagram","docs\u002Fexamples\u002Fhexagram","Two triangles made from points sampled on a circle, with Sample, Make Polygon and Rotate.",{"title":164,"path":165,"stem":166,"order":39,"summary":167,"exact":10},"Triangles on a grid","\u002Fdocs\u002Fexamples\u002Ftriangles-on-a-grid","docs\u002Fexamples\u002Ftriangles-on-a-grid","A triangle at every point of a grid, each turned a little more, with Orthogonal Grid, Map and a function made with New function…",{"title":169,"path":170,"stem":171,"order":45,"summary":172,"exact":10},"A glowing ball in a gradient frame","\u002Fdocs\u002Fexamples\u002Fgradients","docs\u002Fexamples\u002Fgradients","A ball filled with a radial gradient inside a square with a linear gradient outline, both from the same two color stops.",{"title":174,"path":175,"stem":176,"order":51,"summary":177,"exact":10},"Voronoi tessellation","\u002Fdocs\u002Fexamples\u002Fvoronoi","docs\u002Fexamples\u002Fvoronoi","Organic cell patterns from random points, evened out with Relax Points, and drawn with gaps using Scale and Map.",{"title":179,"path":180,"stem":181,"order":57,"summary":182,"exact":10},"Paper cut-out","\u002Fdocs\u002Fexamples\u002Fpaper-cut-out","docs\u002Fexamples\u002Fpaper-cut-out","Layered paper hills and a sun with wobbly edges, grain and soft shadows, made with the Displace, Noise and Drop Shadow effect nodes.",{"title":184,"path":185,"stem":186,"order":63,"summary":187,"exact":10},"Sierpinski triangle","\u002Fdocs\u002Fexamples\u002Fsierpinski-triangle","docs\u002Fexamples\u002Fsierpinski-triangle","A triangle made of three half-size triangles, each made the same way: a subgraph that calls itself, stopped by a Switch.",{"title":189,"path":190,"stem":191,"order":69,"summary":192,"exact":10},"Metaballs and contour lines","\u002Fdocs\u002Fexamples\u002Fmetaballs","docs\u002Fexamples\u002Fmetaballs","Gooey blobs from charges on a jittered grid, ringed by contour lines, with Zip Point Scalars, Metaballs and Isolines.",{"id":194,"title":90,"body":195,"description":556,"extension":557,"meta":558,"navigation":10,"order":93,"path":91,"seo":559,"stem":92,"summary":94,"__hash__":560},"docs\u002Fdocs\u002Fguides\u002Feffects.md",{"type":196,"value":197,"toc":544},"minimark",[198,214,221,226,234,238,347,359,363,366,382,389,393,401,407,411,414,436,440,467,471,499,503,521,525],[199,200,201,202,205,206,209,210,213],"p",{},"Effects change how an object looks without changing its geometry: a soft\nshadow, a blur, a glow, paper grain, a hand-drawn edge, other colors, or\ntransparency. Each is a node in the ",[203,204,90],"strong",{}," category (",[203,207,208],{},"Shift + A",",\nthen ",[211,212,90],"em",{},"): put it between an object and the Output.",[199,215,216],{},[217,218],"img",{"alt":219,"src":220},"Two circles, each through a Noise and a Drop Shadow node: on the left Noise comes first and the shadow is smooth, on the right Drop Shadow comes first and the grain covers the shadow too","\u002Fdocs\u002Fguides\u002Feffects-order.png",[222,223,225],"h2",{"id":224},"adding-an-effect","Adding an effect",[199,227,228,229,233],{},"Connect any shape, line, text, group or SVG image to an effect node's\n",[230,231,232],"code",{},"object"," input, and the effect node to the Output (or to the next effect\nnode). Its output is a copy of the object with the effect added: same\ntype, same position and size, so it still connects wherever the object\ndid. The original stays as it was, so you can draw it too.",[222,235,237],{"id":236},"the-effects","The effects",[239,240,241,254],"table",{},[242,243,244],"thead",{},[245,246,247,251],"tr",{},[248,249,250],"th",{},"Node",[248,252,253],{},"What it does",[255,256,257,270,281,292,303,314,325,336],"tbody",{},[245,258,259,267],{},[260,261,262],"td",{},[263,264,266],"a",{"href":265},"\u002Fdocs\u002Fnodes\u002Feffect\u002Fdrop-shadow","Drop Shadow",[260,268,269],{},"A blurred, colored copy of the object, offset under it.",[245,271,272,278],{},[260,273,274],{},[263,275,277],{"href":276},"\u002Fdocs\u002Fnodes\u002Feffect\u002Fblur","Blur",[260,279,280],{},"Blurs the object.",[245,282,283,289],{},[260,284,285],{},[263,286,288],{"href":287},"\u002Fdocs\u002Fnodes\u002Feffect\u002Fglow","Glow",[260,290,291],{},"A blurred, colored halo around the object.",[245,293,294,300],{},[260,295,296],{},[263,297,299],{"href":298},"\u002Fdocs\u002Fnodes\u002Feffect\u002Fadjust-colors","Adjust Colors",[260,301,302],{},"Brightness, contrast, saturation, hue, grayscale, sepia, invert.",[245,304,305,311],{},[260,306,307],{},[263,308,310],{"href":309},"\u002Fdocs\u002Fnodes\u002Feffect\u002Fnoise","Noise",[260,312,313],{},"Grain inside the object's shape, gray or colored.",[245,315,316,322],{},[260,317,318],{},[263,319,321],{"href":320},"\u002Fdocs\u002Fnodes\u002Feffect\u002Fdisplace","Displace",[260,323,324],{},"Pushes the object's pixels around by noise: wobbly, hand-drawn edges.",[245,326,327,333],{},[260,328,329],{},[263,330,332],{"href":331},"\u002Fdocs\u002Fnodes\u002Feffect\u002Fopacity","Opacity",[260,334,335],{},"Makes the object see-through.",[245,337,338,344],{},[260,339,340],{},[263,341,343],{"href":342},"\u002Fdocs\u002Fnodes\u002Feffect\u002Fblend-mode","Blend Mode",[260,345,346],{},"How the object mixes with what's drawn under it.",[199,348,349,350,353,354,358],{},"Noise and Displace draw their pattern from the node's own sequence of\nrandom numbers, like the ",[263,351,352],{"href":135},"random nodes",": the\nsame every time, different for each node. For another pattern, change the\nnode's ",[263,355,357],{"href":356},"\u002Fdocs\u002Fguides\u002Fproperty-inspector#seeds","seed"," (the dice in the\ninspector).",[222,360,362],{"id":361},"chaining-effects","Chaining effects",[199,364,365],{},"Effect nodes can follow each other, and each applies to the result of the\nones before it. So the order matters, as in the picture above:",[367,368,369,376],"ul",{},[370,371,372,375],"li",{},[203,373,374],{},"Noise → Drop Shadow"," adds grain to the circle, then casts a smooth\nshadow under the grainy circle.",[370,377,378,381],{},[203,379,380],{},"Drop Shadow → Noise"," casts the shadow first, so the grain covers the\ncircle and its shadow together.",[199,383,384,385,388],{},"A good order for most drawings is: shape changes first (Displace), then\nthe object's surface (Noise, Adjust Colors), then what's around it (Drop\nShadow, Glow). The ",[263,386,387],{"href":180},"paper cut-out example","\nuses Displace → Noise → Drop Shadow.",[222,390,392],{"id":391},"effects-on-groups","Effects on groups",[199,394,395,396,400],{},"An effect on a ",[263,397,399],{"href":398},"\u002Fdocs\u002Fnodes\u002Fcore\u002Fgroup","Group"," applies to the group as\none image, after its children are drawn: a Drop Shadow on a group casts\none shadow around all of them, and the children don't shadow each other.\nFor a shadow per child, put a Drop Shadow on each child before the group.\nChildren keep their own effects inside the group.",[199,402,403],{},[217,404],{"alt":405,"src":406},"Two overlapping squares: on the left grouped with one Drop Shadow on the group, on the right each with its own Drop Shadow before the group, so the top square shadows the bottom one","\u002Fdocs\u002Fguides\u002Feffects-group.png",[222,408,410],{"id":409},"opacity-and-fill-opacity","Opacity and fill opacity",[199,412,413],{},"There are two ways to make something see-through:",[367,415,416,430],{},[370,417,418,419,421,422,425,426,429],{},"A color's ",[230,420,263],{}," (alpha), in a ",[230,423,424],{},"fill"," or a stroke's ",[230,427,428],{},"color",", makes only that\nfill or stroke see-through. An outlined shape with a see-through fill\nshows its own outline through the fill.",[370,431,432,433,435],{},"The ",[263,434,332],{"href":331}," node makes the whole object\nsee-through as drawn: fill, outline and effects together, like one sheet\nof tinted glass. On a group, overlapping children don't show through each\nother. Opacity nodes multiply: two of 0.5 give 0.25.",[222,437,439],{"id":438},"blend-modes","Blend modes",[199,441,442,443,445,446,449,450,453,454,457,458,462,463,466],{},"A ",[263,444,343],{"href":342}," node sets how the object\ncombines with everything drawn under it: earlier Output slots, and earlier\nchildren of the same group. ",[230,447,448],{},"multiply"," darkens like layered ink, ",[230,451,452],{},"screen","\nlightens like overlapping lights, ",[230,455,456],{},"difference"," subtracts colors; see\n",[263,459,461],{"href":460},"\u002Fdocs\u002Ftypes\u002Fblend-mode","BlendMode"," for all of them. On the empty white\npage, most modes look like ",[230,464,465],{},"normal",".",[222,468,470],{"id":469},"sizes-and-bounding-boxes","Sizes and bounding boxes",[367,472,473,483],{},[370,474,475,478,479,482],{},[203,476,477],{},"Effects scale with the object."," A shadow's offset, a blur's radius\nand a Noise or Displace ",[230,480,481],{},"scale"," are in the object's own units: scale the\nobject up and its effects grow with it, rotate it and the shadow turns\ntoo.",[370,484,485,488,489,493,494,498],{},[203,486,487],{},"Bounding boxes ignore effects."," ",[263,490,492],{"href":491},"\u002Fdocs\u002Fnodes\u002Fbounds\u002Faabb","AABB",",\n",[263,495,497],{"href":496},"\u002Fdocs\u002Fnodes\u002Fbounds\u002Foobb","OOBB"," and the other nodes that measure an\nobject see its geometry only: a shadow, a glow or a wobble isn't part of\nits box.",[222,500,502],{"id":501},"effects-in-the-downloaded-svg","Effects in the downloaded SVG",[199,504,505,506,509,510,513,514,517,518,466],{},"The preview and ",[203,507,508],{},"Download SVG"," (see\n",[263,511,54],{"href":512},"\u002Fdocs\u002Fguides\u002Flive-preview#downloading-the-image",") draw\neffects as standard SVG filters, opacity and blend modes, so the file\nshows them in browsers and in vector editors such as Inkscape. Break reads\nan object's ",[230,515,516],{},"opacity"," and ",[230,519,520],{},"blendMode",[222,522,524],{"id":523},"see-also","See also",[367,526,527,532,539],{},[370,528,529,531],{},[263,530,179],{"href":180},": a worked example with\nDisplace, Noise, Drop Shadow and a group.",[370,533,534,538],{},[263,535,537],{"href":536},"\u002Fdocs\u002Ftypes\u002Frenderable","Renderable",": the opacity, blend mode and\neffects every object has.",[370,540,541,543],{},[263,542,78],{"href":79},": keep a result exactly as\nit is, whatever changes upstream.",{"title":545,"searchDepth":27,"depth":27,"links":546},"",[547,548,549,550,551,552,553,554,555],{"id":224,"depth":27,"text":225},{"id":236,"depth":27,"text":237},{"id":361,"depth":27,"text":362},{"id":391,"depth":27,"text":392},{"id":409,"depth":27,"text":410},{"id":438,"depth":27,"text":439},{"id":469,"depth":27,"text":470},{"id":501,"depth":27,"text":502},{"id":523,"depth":27,"text":524},"Effects change how an object looks without changing its geometry: a soft\nshadow, a blur, a glow, paper grain, a hand-drawn edge, other colors, or\ntransparency. Each is a node in the Effects category (Shift + A,\nthen Effects): put it between an object and the Output.","md",{},{"title":90,"description":556},"3fg5eoS7z55jwTXToSgXoNQY_rl1EQT5cO7bq_utuzI",1795082912310]