[{"data":1,"prerenderedAt":683},["ShallowReactive",2],{"docs-menu":3,"docs-page:\u002Fdocs\u002Fexamples\u002Fpaper-cut-out":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":179,"body":195,"description":201,"extension":679,"meta":680,"navigation":10,"order":57,"path":180,"seo":681,"stem":181,"summary":182,"__hash__":682},"docs\u002Fdocs\u002Fexamples\u002Fpaper-cut-out.md",{"type":196,"value":197,"toc":666},"minimark",[198,202,207,210,215,220,252,278,298,305,311,315,338,347,393,396,402,405,409,429,436,442,450,454,489,514,520,523,527,530,537,541,580,584,645,649],[199,200,201],"p",{},"A landscape that looks cut from colored paper and layered on a card: two\nhills and a sun, each with a slightly uneven edge, a paper grain and a\nsoft shadow on the layer below. Along the way you'll see how effect nodes\nchain, why their order matters, and how an effect on a group treats the\ngroup as one piece.",[203,204],"example-figure",{"alt":205,"example":206},"Two green paper hills with wobbly edges and soft shadows on a grainy cream card, and an orange sun half hidden behind a white cloud","paper-cut-out",[199,208,209],{},"You'll use: Make Rectangle, Make Ellipse, Make Circle, Group, Noise,\nDisplace, Drop Shadow, Output.",[211,212,214],"h2",{"id":213},"steps","Steps",[216,217,219],"h3",{"id":218},"_1-a-grainy-card","1. A grainy card",[199,221,222,223,227,228,231,232,236,237,240,241,244,245,248,249,251],{},"Add a ",[224,225,226],"strong",{},"Make Rectangle"," (",[224,229,230],{},"Shift + A",", then type \"make rectangle\") and\nset its ",[233,234,235],"code",{},"position"," to x 500, y 400, its ",[233,238,239],{},"width"," to 1000 and its ",[233,242,243],{},"height","\nto 800: the whole page. Set its ",[233,246,247],{},"fill"," to r 246, g 238, b 222 (cream) and\nits stroke's ",[233,250,239],{}," to 0.",[199,253,222,254,257,258,262,263,266,267,269,270,273,274,277],{},[224,255,256],{},"Noise"," node (",[259,260,261],"em",{},"Effects → Noise","). Connect the rectangle's ",[233,264,265],{},"object","\nto Noise's ",[233,268,265],{},", set ",[233,271,272],{},"amount"," to 0.15 and ",[233,275,276],{},"scale"," to 3, and connect\nNoise to the Output.",[199,279,280,281,284,285,288,289,292,293,297],{},"The hills below reach past the edges of the page. To see the drawing as it\nwill be downloaded, open the ",[224,282,283],{},"Image"," drawer and set ",[259,286,287],{},"Outside the page","\nto ",[224,290,291],{},"Clipped"," (see ",[294,295,54],"a",{"href":296},"\u002Fdocs\u002Fguides\u002Flive-preview#outside-the-page",").",[199,299,300],{},[301,302],"img",{"alt":303,"src":304},"A Make Rectangle connected to a Noise node and the Output; Noise is selected, showing amount 0.15 and scale 3, and the page is a grainy cream card","\u002Fdocs\u002Fexamples\u002Fpaper-card.png",[199,306,307,308,310],{},"The grain only covers the rectangle: Noise mixes it into the object's own\nshape. Its ",[233,309,276],{}," is in page units, so a bigger card would get the same\ngrain size.",[216,312,314],{"id":313},"_2-the-back-hill","2. The back hill",[199,316,222,317,320,321,323,324,327,328,331,332,334,335,337],{},[224,318,319],{},"Make Ellipse"," with ",[233,322,235],{}," x 620, y 680, ",[233,325,326],{},"radiusX"," 380,\n",[233,329,330],{},"radiusY"," 230, ",[233,333,247],{}," r 120, g 170, b 120 (sage green) and stroke ",[233,336,239],{},"\n0.",[199,339,340,341,343,344,346],{},"Now chain three effect nodes after it, each one's ",[233,342,265],{}," output into\nthe next one's ",[233,345,265],{}," input:",[348,349,350,362,372],"ol",{},[351,352,353,320,356,358,359,361],"li",{},[224,354,355],{},"Displace",[233,357,272],{}," 16 and ",[233,360,276],{}," 90: the outline wobbles like\na hand-cut edge.",[351,363,364,320,366,368,369,371],{},[224,365,256],{},[233,367,272],{}," 0.25 and ",[233,370,276],{}," 3: paper grain.",[351,373,374,320,377,380,381,384,385,388,389,392],{},[224,375,376],{},"Drop Shadow",[233,378,379],{},"dx"," 0, ",[233,382,383],{},"dy"," 10, ",[233,386,387],{},"blur"," 8 and ",[233,390,391],{},"color"," r 0, g 0,\nb 0, a 0.4: the hill lifts off the card.",[199,394,395],{},"Connect the Drop Shadow to the next free slot of the Output, so the hill is\ndrawn over the card.",[199,397,398],{},[301,399],{"alt":400,"src":401},"The ellipse chained through Displace, Noise and Drop Shadow into the Output; Drop Shadow is selected, showing dx 0, dy 10 and blur 8, and a wobbly green hill with a shadow sits on the card","\u002Fdocs\u002Fexamples\u002Fpaper-hill.png",[199,403,404],{},"The order matters: each effect applies to the result of the ones before.\nDisplace comes first, so the grain and the shadow follow the wobbly edge.\nNoise comes before Drop Shadow, so the grain is on the paper, not on its\nshadow. Try connecting them in another order to see the difference.",[216,406,408],{"id":407},"_3-the-front-hill","3. The front hill",[199,410,411,412,320,414,416,417,419,420,422,423,425,426,428],{},"Add a second ",[224,413,319],{},[233,415,235],{}," x 340, y 760, ",[233,418,326],{},"\n340, ",[233,421,330],{}," 190, ",[233,424,247],{}," r 60, g 120, b 90 (dark green) and stroke\n",[233,427,239],{}," 0.",[199,430,431,432,435],{},"It needs the same three effects. Select the hill's Displace, Noise and\nDrop Shadow nodes (Shift + click), right-click one of them and choose\n",[224,433,434],{},"Duplicate",": the copies keep their settings but not their wires.\nConnect the new ellipse through the copies in the same order, and the\ncopied Drop Shadow to the next free slot of the Output.",[199,437,438],{},[301,439],{"alt":440,"src":441},"Both hills, the front one darker and overlapping the back one, each with its own shadow; the copied Drop Shadow is selected","\u002Fdocs\u002Fexamples\u002Fpaper-hills.png",[199,443,444,445,449],{},"The front hill's edge wobbles differently from the back one's, although\nthe settings are the same: Displace and Noise draw their pattern from\ntheir node's own sequence of random numbers, and the copies are new\nnodes. Each pattern stays the same every time the graph is evaluated. Not\nhappy with a wobble? Select its Displace node and click the dice next to\nits ",[294,446,448],{"href":447},"\u002Fdocs\u002Fguides\u002Fproperty-inspector#seeds","seed"," in the inspector.",[216,451,453],{"id":452},"_4-a-sun-behind-a-cloud","4. A sun behind a cloud",[199,455,222,456,320,459,461,462,465,466,468,469,471,472,474,475,477,478,480,481,483,484,486,487,428],{},[224,457,458],{},"Make Circle",[233,460,235],{}," x 700, y 260, ",[233,463,464],{},"radius"," 90, ",[233,467,247],{},"\nr 240, g 150, b 60 (orange) and stroke ",[233,470,239],{}," 0, and a ",[224,473,319],{},"\nwith ",[233,476,235],{}," x 610, y 300, ",[233,479,326],{}," 110, ",[233,482,330],{}," 50, ",[233,485,247],{}," r 255,\ng 255, b 255 and stroke ",[233,488,239],{},[199,490,222,491,257,494,497,498,501,502,320,504,380,506,508,509,388,511,513],{},[224,492,493],{},"Group",[259,495,496],{},"Core → Group",") and connect the circle, then the\nellipse, to its ",[233,499,500],{},"objects",": the cloud is drawn over the sun. Add one more\n",[224,503,376],{},[233,505,379],{},[233,507,383],{}," 8, ",[233,510,387],{},[233,512,391],{}," a 0.4, connect\nthe Group to it, and connect it to the next free slot of the Output.",[199,515,516],{},[301,517],{"alt":518,"src":519},"The finished graph: the sun and the cloud grouped, the group through a Drop Shadow into the Output; the sun and cloud cast one shadow on the card","\u002Fdocs\u002Fexamples\u002Fpaper-sun.png",[199,521,522],{},"The shadow is cast by the group as a whole: one shadow around the sun and\nthe cloud together, and none from the cloud onto the sun. That's what an\neffect on a group does. For a shadow from the cloud onto the sun, give the\ncloud its own Drop Shadow before the group instead. The result is the\npicture at the top.",[211,524,526],{"id":525},"how-it-works","How it works",[199,528,529],{},"Every effect node outputs a copy of its object with one more effect added\nto its list, so a chain of effect nodes builds the list in order. When the\nobject is drawn, each effect applies to the result of the previous ones.",[199,531,532,533,536],{},"Effects are in the object's own units: the shadow offset, the blur and the\nwobble scale with it, and they don't change its bounding box, so nodes\nlike AABB still see the plain ellipse. They're drawn in the preview and in\n",[224,534,535],{},"Download SVG",", as SVG filters that vector editors such as Inkscape also\nshow.",[211,538,540],{"id":539},"nodes-used","Nodes used",[542,543,544,558,563,574],"ul",{},[351,545,546,549,550,553,554,557],{},[294,547,226],{"href":548},"\u002Fdocs\u002Ftypes\u002Frectangle",", ",[294,551,319],{"href":552},"\u002Fdocs\u002Ftypes\u002Fellipse","\nand ",[294,555,458],{"href":556},"\u002Fdocs\u002Ftypes\u002Fcircle",".",[351,559,560,557],{},[294,561,493],{"href":562},"\u002Fdocs\u002Fnodes\u002Fcore\u002Fgroup",[351,564,565,549,568,553,571,557],{},[294,566,256],{"href":567},"\u002Fdocs\u002Fnodes\u002Feffect\u002Fnoise",[294,569,355],{"href":570},"\u002Fdocs\u002Fnodes\u002Feffect\u002Fdisplace",[294,572,376],{"href":573},"\u002Fdocs\u002Fnodes\u002Feffect\u002Fdrop-shadow",[351,575,576,557],{},[294,577,579],{"href":578},"\u002Fdocs\u002Fnodes\u002Fcore\u002Foutput","Output",[211,581,583],{"id":582},"variations","Variations",[542,585,586,595,609,628],{},[351,587,588,591,592,594],{},[224,589,590],{},"Torn edges."," Lower Displace's ",[233,593,276],{}," to 20 for a ragged, torn-paper\nedge instead of smooth waves.",[351,596,597,600,601,604,605,608],{},[224,598,599],{},"Overlapping paper."," Add a ",[224,602,603],{},"Blend Mode"," node set to ",[233,606,607],{},"multiply"," after\nthe front hill's Drop Shadow: where it overlaps the back hill, the colors\ndarken like layered tissue paper.",[351,610,611,614,615,227,618,620,621,623,624,627],{},[224,612,613],{},"A glowing sun."," Put a ",[224,616,617],{},"Glow",[233,619,391],{}," r 255, g 210, b 80, ",[233,622,464],{},"\n20, ",[233,625,626],{},"strength"," 2) on the circle before the Group.",[351,629,630,633,634,320,637,640,641,644],{},[224,631,632],{},"Faded print."," Group everything and pass the group through ",[224,635,636],{},"Adjust\nColors",[233,638,639],{},"sepia"," 0.6 and ",[233,642,643],{},"contrast"," 0.9.",[211,646,648],{"id":647},"see-also","See also",[542,650,651,656,661],{},[351,652,653,655],{},[294,654,90],{"href":91},": every effect, chaining, groups and\nblend modes.",[351,657,658,660],{},[294,659,134],{"href":135},", for the seeds of\nNoise and Displace.",[351,662,663,665],{},[294,664,78],{"href":79},": keep a result exactly as\nit is, whatever changes upstream.",{"title":667,"searchDepth":27,"depth":27,"links":668},"",[669,675,676,677,678],{"id":213,"depth":27,"text":214,"children":670},[671,672,673,674],{"id":218,"depth":33,"text":219},{"id":313,"depth":33,"text":314},{"id":407,"depth":33,"text":408},{"id":452,"depth":33,"text":453},{"id":525,"depth":27,"text":526},{"id":539,"depth":27,"text":540},{"id":582,"depth":27,"text":583},{"id":647,"depth":27,"text":648},"md",{},{"title":179,"description":201},"K_sMD8_N23-CxtnnOeohA9UriR4jYdZoLHSfRl-COCA",1795082912744]