-
Notifications
You must be signed in to change notification settings - Fork 187
How to import a SVG drawing
If the color information of a SVG drawing should be used to select a tool number, the SVG Color should match a Color in the given Palette.
###Preset in Inkscape:
Copy my individual GIMP-palette "Stabilo_25sort.gpl" (Stabilo Fineliner colors) to the Inkscape folder e.g. C:\Program Files\Inkscape\share\palettes
Open Inkscape and load the new Palette (Little black triangle on right side of Palette-color-bar)
Load a SVG drawing and change color of objects to a Color, given in the Palette, or make a new drawing.
Import SVG by drag and drop file on GUI (except text editor area) Color difference will be calculated via Distance in RGB-Space: Math.Sqrt((c1.R - c2.R) * (c1.R - c2.R) + (c1.G - c2.G) * (c1.G - c2.G) + (c1.B - c2.B)*(c1.B - c2.B)); }
palette-color (= tool nr) with lowest difference will be taken to draw a SVG path
Tools are sorted by tool nr in ascending order (Tool with lowest number first)