Repository navigation
Add "Reverse" value node - #199
Conversation
|
Merged now. Thank you for the contribution! |
|
Hello .... just in case if you don't read the tracker .... see'ya ! |
|
Note about the part 1 of the issue #894: The handles appear grey because the Reverse convert type doesn't support reverse manipulations. Every convert type that doesn't support reverse manipulations turns handles into grey. So it's not really bug. We have many convert types without reverse manipulations. |
|
Hi there! Cheers! 2015-09-06 16:22 GMT+02:00 Konstantin Dmitriev [email protected]:
Carlos |
This patch adds a general-purpose value node for reversing things. It operates on every type I could figure out how to reverse: lists, strings, spline points and segments, gradients, width points, and dash items. When reversing a list, it also reverses the individual elements of that list, meaning that, for instance, a spline will look exactly the same after being reversed. There's also some special behavior to make DILists and WPLists work as expected; you can look at the code if you really want to get into the details.
I'll note that, though most value nodes try to construct themselves in a way that preserves the value that was there before, this one does not. I thought it would be convenient to be able to reverse any value just by converting it to a Reverse node and then back again.
I'm planning to make an "Append" value node next. Combined with the "Reverse" node, this will allow functionality equivalent to Inkscape's "Fill Between Many" path effect. (Yay, ponies! Seriously, though, that's the best explanation I could find.)