/** * @file * * @author [MartinusMagneson](https://vuo.org/user/3272) * @createdInVuoVersion 2.4.0 * @lastSavedInVuoVersion 2.4.0 * @copyright Copyright © 2021 [MartinusMagneson](https://vuo.org/user/3272) * @see This is a Vuo Composition source code file. See https://vuo.org for further information. */ digraph G { Add [type="vuo.math.add.VuoInteger" version="2.1.1" label="Add|refresh\l|values\l|sum\r" pos="570,405" fillcolor="blue"]; AllowChanges [type="vuo.event.allowChanges2.VuoInteger" version="2.0.0" label="Allow Changes|refresh\l|value\l|changedValue\r" pos="300,285" fillcolor="yellow"]; AreEqual [type="vuo.data.areEqual.VuoInteger" version="1.0.0" label="Are Equal|refresh\l|values\l|equal\r" pos="90,465" fillcolor="orange"]; BecameTrue [type="vuo.event.becameTrue" version="1.0.0" label="Became True|refresh\l|value\l|becameTrue\r" pos="240,465" fillcolor="orange"]; CountWithinRange [type="vuo.math.countWithinRange.VuoInteger" version="1.0.1" label="Count down from 3 -\> 0|refresh\l|increment\l|decrement\l|setCount\l|minimum\l|maximum\l|wrapMode\l|count\r" pos="270,150" fillcolor="yellow" _increment="1" _decrement="1" _setCount="3" _minimum="0" _maximum="10" _wrapMode="\"saturate\""]; DisplayConsoleWindow [type="vuo.console.window" version="1.1.0" label="Display Console Window|refresh\l|writeLine\l|clear\l|typedLine\r|typedWord\r|typedCharacter\r" pos="540,540" fillcolor="lime" _typedLine_eventThrottling="enqueue" _typedWord_eventThrottling="enqueue" _typedCharacter_eventThrottling="enqueue"]; Enqueue [type="vuo.list.enqueue.VuoInteger" version="1.2.1" label="Enqueue|refresh\l|addItem\l|maxItemCount\l|discardWhenFull\l|clearList\l|list\r" pos="525,285" fillcolor="blue" _maxItemCount="4" _discardWhenFull="0"]; FireOnDisplayRefresh [type="vuo.event.fireOnDisplayRefresh" version="1.0.0" label="Fire on Display Refresh|refresh\l|requestedFrame\r" pos="285,90" fillcolor="lime" _requestedFrame_eventThrottling="drop"]; FireOnStart2 [type="vuo.event.fireOnStart" version="1.0.0" label="Fire on Start|refresh\l|started\r" pos="45,180" fillcolor="lime" _started_eventThrottling="enqueue"]; HoldValue [type="vuo.data.hold2.VuoInteger" version="3.0.0" label="Hold Until count = 0|refresh\l|update\l|value\l|heldValue\r" pos="165,540" fillcolor="tangerine"]; MakeList2 [type="vuo.list.make.2.VuoInteger" version="2.0.0" label="Make List|refresh\l|<1>1\l|<2>2\l|list\r" pos="57,476"]; SummarizeValue2 [type="vuo.data.summarize.VuoInteger" version="1.0.1" label="Summarize Value|refresh\l|value\l|summary\r" pos="600,645"]; Comment [type="vuo.comment" label="\"Sum digits\"" pos="465,225" width="233" height="225" fillcolor="blue"]; Comment2 [type="vuo.comment" label="\"Wait until condition is met\"" pos="-15,375" width="394" height="247" fillcolor="magenta"]; Add:sum -> HoldValue:value; AllowChanges:changedValue -> Enqueue:addItem; AllowChanges:changedValue -> MakeList2:1; AreEqual:equal -> BecameTrue:value; BecameTrue:becameTrue -> HoldValue:update; CountWithinRange:count -> AllowChanges:value; Enqueue:list -> Add:values; FireOnDisplayRefresh:requestedFrame -> CountWithinRange:decrement [event=true]; FireOnStart2:started -> CountWithinRange:setCount; HoldValue:heldValue -> SummarizeValue2:value; MakeList2:list -> AreEqual:values; SummarizeValue2:summary -> DisplayConsoleWindow:writeLine; }