[{"data":1,"prerenderedAt":590},["ShallowReactive",2],{"docs-menu":3,"docs-page:\u002Fdocs\u002Fguides\u002Flive-preview":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":54,"body":195,"description":585,"extension":586,"meta":587,"navigation":10,"order":57,"path":55,"seo":588,"stem":56,"summary":58,"__hash__":589},"docs\u002Fdocs\u002Fguides\u002Flive-preview.md",{"type":196,"value":197,"toc":574},"minimark",[198,207,214,219,233,236,240,243,250,284,292,298,302,312,332,338,342,355,367,375,379,393,399,402,406,420,443,455,504,510,519,523,537,540,544],[199,200,201,202,206],"p",{},"The image area shows what the graph draws, and redraws as soon as the\ngraph changes. The drawing is vector graphics (SVG), so it stays sharp at\nany zoom. The ",[203,204,205],"strong",{},"Image drawer"," on its right edge holds the page size, the\ndisplay options and the download.",[199,208,209],{},[210,211],"img",{"alt":212,"src":213},"The image area: a circle, a rectangle and a pentagon on the white page, and the Image drawer on the right","\u002Fdocs\u002Fguides\u002Fpreview.png",[215,216,218],"h2",{"id":217},"what-is-drawn","What is drawn",[199,220,221,222,227,228,232],{},"Everything connected to the ",[223,224,226],"a",{"href":225},"\u002Fdocs\u002Fnodes\u002Fcore\u002Foutput","Output"," node's\n",[229,230,231],"code",{},"objects"," input is drawn, in slot order: later slots are drawn on top. In\nthe picture, the rectangle (slot 1) covers the circle (slot 0), and the\npentagon (slot 2) covers both.",[199,234,235],{},"Nodes that aren't connected to the Output, directly or through other\nnodes, don't affect the drawing. Moving nodes in the editor doesn't\neither.",[215,237,239],{"id":238},"the-page","The page",[199,241,242],{},"The page is the area of the final image. Positions are in page units:\n(0, 0) is the top-left corner, x grows to the right and y downwards.",[199,244,245,246,249],{},"Its size is set in the drawer's ",[203,247,248],{},"Page size"," section, in pixels (1000 ×\n800 by default):",[251,252,253,265,272,278],"ul",{},[254,255,256,257,260,261,264],"li",{},"type a ",[203,258,259],{},"width"," and ",[203,262,263],{},"height"," (whole numbers from 1 to 10 000);",[254,266,267,268,271],{},"pick a ",[203,269,270],{},"preset",": 1000 × 800, 1000 × 1000, 1920 × 1080, 1080 × 1920,\nA4 portrait or landscape;",[254,273,274,277],{},[203,275,276],{},"swap"," width and height with the arrows button;",[254,279,280,283],{},[203,281,282],{},"lock the aspect ratio"," with the chain button: editing one side then\nscales the other.",[199,285,286,287,291],{},"Changing the size never moves anything: objects keep their coordinates,\nso they may end up partly or fully outside the page. To make a drawing\nfollow the page size, use the ",[223,288,290],{"href":289},"\u002Fdocs\u002Fnodes\u002Fcore\u002Fpage","Page"," node, which\ngives the page as a box.",[199,293,294],{},[210,295],{"alt":296,"src":297},"The Image drawer: Page size, Display, Randomness and Export sections","\u002Fdocs\u002Fguides\u002Fpreview-drawer.png",[215,299,301],{"id":300},"outside-the-page","Outside the page",[199,303,304,305,308,309,311],{},"Objects don't have to stay on the page, but only the page is part of the\nimage. The drawer's ",[203,306,307],{},"Display"," section sets how the preview shows the rest\n(",[203,310,301],{},"):",[251,313,314,320,326],{},[254,315,316,319],{},[203,317,318],{},"Dimmed"," (default): drawn, behind a gray veil;",[254,321,322,325],{},[203,323,324],{},"Visible",": drawn as-is;",[254,327,328,331],{},[203,329,330],{},"Clipped",": cut off at the page edge, as in the downloaded image.",[199,333,334],{},[210,335],{"alt":336,"src":337},"A circle and a rectangle crossing the page edges: the parts outside the page are dimmed","\u002Fdocs\u002Fguides\u002Fpreview-dimmed.png",[215,339,341],{"id":340},"randomness","Randomness",[199,343,344,345,347,348,351,352,311],{},"The drawer's ",[203,346,341],{}," section holds the drawing's ",[203,349,350],{},"seed",", which\nevery random node's values derive from (see\n",[223,353,134],{"href":354},"\u002Fdocs\u002Fconcepts\u002Fdeterminism#changing-the-random-values-seeds",[251,356,357,364],{},[254,358,359,360,363],{},"the ",[203,361,362],{},"dice"," button picks a new seed: every random node (Random Number,\nRandom Integer, Random Color, and the Noise and Displace effects) gets\nnew values;",[254,365,366],{},"type a seed to get its drawing again, e.g. one you noted down.",[199,368,369,370,374],{},"The seed is part of the drawing: it's saved with it, and changing it\ncounts as an unsaved change. To reroll only some nodes, give them their\nown seed in the ",[223,371,373],{"href":372},"\u002Fdocs\u002Fguides\u002Fproperty-inspector#seeds","property inspector",".",[215,376,378],{"id":377},"page-background","Page background",[199,380,381,382,385,386,389,390,392],{},"The preview's page is ",[203,383,384],{},"White"," by default. The downloaded image has no\nbackground at all, though: where nothing is drawn, it's transparent. Pick\n",[203,387,388],{},"Checkerboard"," under ",[203,391,290],{}," to see which parts are transparent; a\ntranslucent fill shows the squares through it.",[199,394,395],{},[210,396],{"alt":397,"src":398},"The same drawing clipped to the page, on a checkerboard","\u002Fdocs\u002Fguides\u002Fpreview-clipped-checkerboard.png",[199,400,401],{},"The display options only change the preview, never the drawing or the\ndownloaded image. The browser remembers them, like whether the drawer is\nopen: collapse or expand it with the tab on its left edge.",[215,403,405],{"id":404},"downloading-the-image","Downloading the image",[199,407,408,411,412,415,416,419],{},[203,409,410],{},"Download SVG",", in the drawer's ",[203,413,414],{},"Export"," section, saves the image as\n",[229,417,418],{},"wirepaint.svg",". It opens in browsers and in vector editors such\nas Inkscape or Illustrator.",[251,421,422,425,432,438],{},[254,423,424],{},"It's the page only, at its size: anything outside the page is cut off.",[254,426,427,428,431],{},"It has a ",[203,429,430],{},"transparent background",": the preview's white page isn't part\nof it.",[254,433,434,435,437],{},"Objects that can't be drawn (see ",[223,436,60],{"href":61},") are left\nout, as in the preview.",[254,439,440,442],{},[223,441,90],{"href":91}," (shadows, blur, grain…), opacity and\nblend modes are in it, as standard SVG filters that vector editors show\ntoo.",[199,444,445,446,450,451,454],{},"To give the image a background color, draw it yourself: a\n",[223,447,449],{"href":448},"\u002Fdocs\u002Ftypes\u002Frectangle","Rectangle"," the size of the page, in the Output's\n",[203,452,453],{},"first"," slot so everything else is drawn over it.",[456,457,458,472,501],"ol",{},[254,459,460,461,463,464,467,468,471],{},"Add a ",[223,462,290],{"href":289}," node and a ",[203,465,466],{},"Break BoundingBox",",\nand connect Page's ",[229,469,470],{},"bounds"," to it.",[254,473,460,474,477,478,481,482,485,486,488,489,491,492,488,494,496,497,500],{},[203,475,476],{},"Make Rectangle",". Connect the box's ",[229,479,480],{},"center"," to its ",[229,483,484],{},"position",",\nits ",[229,487,259],{}," to ",[229,490,259],{}," and its ",[229,493,263],{},[229,495,263],{},", and set its ",[229,498,499],{},"fill","\nin the inspector.",[254,502,503],{},"Connect the rectangle to the Output.",[199,505,506,507,509],{},"If the Output already had wires, the rectangle lands in the last slot, on\ntop of everything. To move it to the bottom, do this once for each of the\nother objects: drag the wire in slot 0 onto empty canvas to remove it,\nthen connect that object again to the empty slot at the end. The rectangle\nmoves up to slot 0, and the others keep their order (see\n",[223,508,36],{"href":37},").",[199,511,512,513,515,516,374],{},"The rectangle follows the page size too. For a gradient background, connect\na Make LinearGradient to its ",[229,514,499],{},", as in the\n",[223,517,518],{"href":170},"gradients example",[215,520,522],{"id":521},"panning-and-zooming","Panning and zooming",[251,524,525,531],{},[254,526,527,530],{},[203,528,529],{},"Pan:"," drag the page.",[254,532,533,536],{},[203,534,535],{},"Zoom:"," scroll the wheel; the view zooms around the pointer.",[199,538,539],{},"This only changes the view, not the drawing.",[215,541,543],{"id":542},"see-also","See also",[251,545,546,551,556,560,564,569],{},[254,547,548,550],{},[223,549,90],{"href":91},": shadows, blur, glow and more, drawn in\nthe preview and the download.",[254,552,553,555],{},[223,554,60],{"href":61},": when part of the drawing is missing.",[254,557,558,374],{},[223,559,129],{"href":130},[254,561,562,374],{},[223,563,114],{"href":115},[254,565,566,568],{},[223,567,290],{"href":289},": the page as a box, for drawings that follow\nits size.",[254,570,571,573],{},[223,572,169],{"href":170},": gradient\nfills and outlines.",{"title":575,"searchDepth":27,"depth":27,"links":576},"",[577,578,579,580,581,582,583,584],{"id":217,"depth":27,"text":218},{"id":238,"depth":27,"text":239},{"id":300,"depth":27,"text":301},{"id":340,"depth":27,"text":341},{"id":377,"depth":27,"text":378},{"id":404,"depth":27,"text":405},{"id":521,"depth":27,"text":522},{"id":542,"depth":27,"text":543},"The image area shows what the graph draws, and redraws as soon as the\ngraph changes. The drawing is vector graphics (SVG), so it stays sharp at\nany zoom. The Image drawer on its right edge holds the page size, the\ndisplay options and the download.","md",{},{"title":54,"description":585},"LqsBRo31kvhfd64i8dSUCnUYAsVYfXOyDYx2eGVPf9Y",1795082914186]