Getting the color of a shape
Hello!
I love nodebox! As far as I can tell, it's impossible to get the color of a given shape. I need to import an SVG and manipulate it. Am I missing something?
Thanks,
Will Urmston
BFA Graphic Design '16
Rhode Island School of Design
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Frederik De Ble... on 16 Oct, 2014 06:59 PM
A SVG shape doesn't always have a single color.
It's not impossible though. The trick is to use a
lookup
node, and specifyfill
as the lookup key. The output of the SVG node is a group, so you have toungroup
first to split it into paths.As shown in the screenshot, you will get a list of colors, one for each path in the SVG file.