On Thu, Jun 02, 2005 at 06:48:06AM -0700, Christopher Wright wrote:
It just occurred to me that I've never tried to do this, but it would be really cool if I could! My computer is a little broken right now or I'd try it myself, but I thought I'd ask:
Let's say that I drew a box using four connected lines instead of using the box shape tool. Now lets say that I set the border to that box at a 2pt thickness and that the color of the border was red.
Given that... would it be possible to select two nodes of the square (i.e., the start and end point of one of the four lines) and then change the color and border thickness of that line without changing the color and border thickness of the other three that complete the square?
The way SVG is designed, changing the color of a line segment in a path isn't really possible. You can see why if you look at how paths are defined in SVG:
<path style="fill:none;fill-rule:evenodd;stroke:black;stroke-opacity:1;stroke-width:0.625;stroke-linejoin:miter;stroke-linecap:butt;stroke-dasharray:none;fill-opacity:1;" d="M 347.01310,303.90096 C 316.54645,310.17713 300.25691,315.80184 283.68629,319.59273 C 263.88468,323.39828 224.66559,328.82195 232.37207,337.48187 C 255.17441,351.63709 310.72519,323.93675 356.71411,334.20001 L 347.01310,303.90096 z " id="path1124" sodipodi:nodetypes="ccccc" transform="translate(553.3979,33.98059)" />
You can see there that the points are literally just a list of numbers, without any extra info. The stroke width and stroke color are properties that apply to the object as a whole. I.e., there's no way to communicate that properties should change along the course of the path.
You could probably achieve your goal using a combination of several separate shapes grouped together. Probably not as eligant, but will be more in keeping with how SVG does things. ;-)
Bryce