Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commite09f1e4457

README.md

procgen.tweak

Preview a graph with other values for its declared inputs, in one step: try a knob, see what it makes, repeat. The graph's source is left as it is.

graph is the graph, by its VFS path or its name, or a graph object. inputs is { <input name> = <value> }, each name an input the graph declares with g:input; a name it does not declare is refused with the names it does. target, size and path behave as in procgen.preview: an output an io.output of the graph shows as drawn points (a particle effect) is pictured by a generator given those inputs, and drawn points the graph only returns are pictured the way an io.output of them would stand them.

tools.use("procgen", "tweak", { graph = "/source/scratch/Box.procGraph", inputs = { width = 4 } })

Part of procgen.toolbox, called as tools.use("procgen", "tweak", ...) (zero procgen tweak in the engine shell). Returns { inputs, image, metrics }: the values tried, the rendered picture and the visualizer's stats.