[CLOSED] draw: render on every change boolean
automata opened this issue · 4 comments
Issue by forresto
Friday Apr 11, 2014 at 06:25 GMT
Originally opened as https://github.com/automata/noflo-canvas/issues/2
Idea: Draw could have a boolean to render on every change. This would be good for building, testing, changing variables in inspectors.
Otherwise, it only renders when tick is hit, which is good if you are updating a bunch of variables with timeline etc.
Comment by forresto
Friday Apr 11, 2014 at 10:46 GMT
Thinking about it a bit, we don't need this.
In pd there is an x-to-bang
node which is a common pattern to make a cold port hot.
We could do the same thing, wiring the last command to tick
, so any change would first hit command
, then tick
.
Comment by automata
Friday Apr 11, 2014 at 18:48 GMT
I've understood replying the case here:
It works when I change a Vector
coordinate, but doesn't when I change the color on FillStyle
. To that work we need to parse the commands each time Draw
receives a command. However, if we do that, we break with "parse only on tick". Maybe we really need that boolean :-) What do you think?
Comment by forresto
Monday Apr 14, 2014 at 18:31 GMT
Even with this, you need to set the every
IIP before the vector IIPs, or you get the commands before every
is set! Race 😖 meh. At least we need noflo/noflo-ui#111