Thursday, August 3, 2017

color - Alpha for node markers in Inkscape


I try to create a SVG containing a an arrow which is supposed to have the color RGBA 00000086 so it is not completely opaque. Unfortunately, it looks like this: Ugly arrow


If I set the color (both contour and filling) to RGBA 000000ff, everything looks fine (black). Of course I can tweak the opacity of the whole object, however this does not seem like a neat solution to me...



Answer



I can think of two ways to do it right in Inkscape - without the need to edit the SVG code directly.





  1. Don't set the alpha channel to transparent in the colour value, set the colour to 000000ff (full opacity black).


    86 in hex is equivalent to 134 in decimal.


    So, 134/256*100 = 52.3%


    Draw a line, set an arrow head in the Markers options.


    Set the stroke opacity to 52.3%




enter image description here



  1. Do Path > Stroke to path, move the arrow head slightly to the right away from the edge of the line, then Unite the arrow head and line to make a filled shape, and fill it with 00000086



enter image description here


No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...