[{"data":1,"prerenderedAt":488},["ShallowReactive",2],{"docs-menu":3,"docs-page:\u002Fdocs\u002Fexamples\u002Fblending-circles":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":149,"body":195,"description":201,"extension":484,"meta":485,"navigation":10,"order":13,"path":150,"seo":486,"stem":151,"summary":152,"__hash__":487},"docs\u002Fdocs\u002Fexamples\u002Fblending-circles.md",{"type":196,"value":197,"toc":472},"minimark",[198,202,207,210,215,220,237,264,271,288,295,298,302,326,338,344,348,369,377,381,387,398,402,417,421,454,458],[199,200,201],"p",{},"Two circles, a small red one and a large blue one, and five circles\nbetween them that blend size, position and color step by step. Every\ncircle in the row is computed from the first two: change either of them and\nthe whole row follows.",[203,204],"example-figure",{"alt":205,"example":206},"Five circles in a row, from a small red one on the left to a large blue one on the right","blending-circles",[199,208,209],{},"You'll use: Make Circle, Lerp Circle, Output.",[211,212,214],"h2",{"id":213},"steps","Steps",[216,217,219],"h3",{"id":218},"_1-make-the-two-end-circles","1. Make the two end circles",[199,221,222,223,227,228,231,232,236],{},"Add a ",[224,225,226],"strong",{},"Make Circle"," node (",[224,229,230],{},"Shift + A",", then ",[233,234,235],"em",{},"Objects → Circle → Make\nCircle",", or type \"make circle\"). In the property inspector, set:",[238,239,240,248,254],"ul",{},[241,242,243,247],"li",{},[244,245,246],"code",{},"position",": x 150, y 400;",[241,249,250,253],{},[244,251,252],{},"radius",": 40;",[241,255,256,259,260,263],{},[244,257,258],{},"fill",": r 239, g 68, b 68 (red; leave ",[244,261,262],{},"a"," at 1).",[199,265,266,267,270],{},"Right-click the node and choose ",[224,268,269],{},"Duplicate",", then give the copy:",[238,272,273,278,283],{},[241,274,275,277],{},[244,276,246],{},": x 850, y 400;",[241,279,280,282],{},[244,281,252],{},": 80;",[241,284,285,287],{},[244,286,258],{},": r 59, g 130, b 246 (blue).",[199,289,290],{},[291,292],"img",{"alt":293,"src":294},"Two Make Circle nodes in the editor, the first one selected, with its position, radius and fill in the inspector","\u002Fdocs\u002Fexamples\u002Fblend-circles.png",[199,296,297],{},"Nothing is drawn yet: the circles aren't connected to the Output node.",[216,299,301],{"id":300},"_2-blend-them-once","2. Blend them once",[199,303,222,304,227,307,310,311,314,315,317,318,321,322,325],{},[224,305,306],{},"Lerp Circle",[233,308,309],{},"Objects → Circle → Lerp Circle","). Connect the\nred circle's ",[244,312,313],{},"object"," output to its ",[244,316,262],{}," input, and the blue circle's to\n",[244,319,320],{},"b",". Then connect its ",[244,323,324],{},"result"," to the Output node.",[199,327,328,331,332,334,335,337],{},[244,329,330],{},"t"," is how far to go from ",[244,333,262],{}," to ",[244,336,320],{},". Its default, 0.5, gives the circle\nhalfway: at x 500, with a radius of 60, in a purple between red and blue.",[199,339,340],{},[291,341],{"alt":342,"src":343},"One Lerp Circle node connected to both circles and to Output, drawing a purple circle in the middle of the page","\u002Fdocs\u002Fexamples\u002Fblend-first-lerp.png",[216,345,347],{"id":346},"_3-make-the-row","3. Make the row",[199,349,350,351,353,354,356,357,359,360,362,363,365,366,368],{},"Set this Lerp Circle's ",[244,352,330],{}," to 0. Duplicate it four times (duplicates keep\n",[244,355,330],{},", but not the wires), set their ",[244,358,330],{}," to 0.25, 0.5, 0.75 and 1, and\nconnect each one like the first: ",[244,361,262],{}," to the red circle, ",[244,364,320],{}," to the blue\none, ",[244,367,324],{}," to the next free slot of the Output node.",[199,370,371,373,374,376],{},[244,372,330],{}," = 0 gives exactly the red circle, and ",[244,375,330],{}," = 1 the blue one. The result\nis the picture at the top.",[211,378,380],{"id":379},"how-it-works","How it works",[199,382,383,386],{},[262,384,306],{"href":385},"\u002Fdocs\u002Ftypes\u002Fcircle"," blends every property of two circles at\nonce: position, radius, rotation, scale, fill and stroke. Each Lerp node\nmakes a new circle; the two Make Circle nodes are only its inputs, which is\nwhy they aren't drawn themselves.",[199,388,389,390,392,393,397],{},"The Lerp nodes of the object types limit ",[244,391,330],{}," to 0 to 1. The\n",[262,394,396],{"href":395},"\u002Fdocs\u002Fnodes\u002Fmath\u002Flerp","math Lerp"," for plain numbers doesn't.",[211,399,401],{"id":400},"nodes-used","Nodes used",[238,403,404,410],{},[241,405,406,409],{},[262,407,408],{"href":385},"Make Circle and Lerp Circle",", on the Circle type's\npage.",[241,411,412,416],{},[262,413,415],{"href":414},"\u002Fdocs\u002Fnodes\u002Fcore\u002Foutput","Output",".",[211,418,420],{"id":419},"variations","Variations",[238,422,423,429,438,448],{},[241,424,425,428],{},[224,426,427],{},"Different ends."," Edit either Make Circle: move the blue one to y 200\nfor a diagonal row, or give it a green fill.",[241,430,431,434,435,437],{},[224,432,433],{},"Uneven steps."," ",[244,436,330],{}," values such as 0, 0.1, 0.3, 0.6 and 1 bunch the\ncircles towards the red end.",[241,439,440,443,444,447],{},[224,441,442],{},"Other shapes."," Lerp Rectangle, Lerp Regular Polygon and the other\nschema Lerp nodes work the same way. With rectangles, give the second one\na ",[244,445,446],{},"rotation"," of 1.5 to make the row turn as it goes.",[241,449,450,453],{},[224,451,452],{},"Overlap."," Bring the two ends closer, or make them larger, so the\ncircles overlap: later slots of the Output node are drawn on top.",[211,455,457],{"id":456},"see-also","See also",[238,459,460,467],{},[241,461,462,464,465,416],{},[262,463,30],{"href":31}," and\n",[262,466,36],{"href":37},[241,468,469,471],{},[262,470,42],{"href":43},": Duplicate.",{"title":473,"searchDepth":27,"depth":27,"links":474},"",[475,480,481,482,483],{"id":213,"depth":27,"text":214,"children":476},[477,478,479],{"id":218,"depth":33,"text":219},{"id":300,"depth":33,"text":301},{"id":346,"depth":33,"text":347},{"id":379,"depth":27,"text":380},{"id":400,"depth":27,"text":401},{"id":419,"depth":27,"text":420},{"id":456,"depth":27,"text":457},"md",{},{"title":149,"description":201},"AMRijBBqWpEWVrfp9WvAQCOfzRoCNKPSt1j8NY8xFS8",1795082912443]