Is a path the set of points from a to b? And is the stroke the "definition" (i.e. the color, shape, etc.) of the path?

And, how can you have a path with no stroke? Is this only because it is a computer drawing program? In the real world you can't have a path without a stroke can you?

If it matters, I am using Inkscape.

  • 2
    This is one weird question. The more I think about it, the less obvious the answer becomes... – PieBie Jun 10 '16 at 19:57
  • 1
    @PieBie I think it's pretty clear cut. – Cai Jun 10 '16 at 20:05

A path, as you said, is a set of points. It is a set of coordinates that define a shape. The path itself is only a set of numbers, a mathematical definition, nothing more. Anything you see on your screen is a visual representation of that path.

A stroke is a visual attribute that you can apply to a path. A stroke can have a defined width, color or a number of other properties. A stroke is a visual effect that is attached to the path.

You can have a path without a stroke, but you can't have a stroke without a path.

| improve this answer | |
  • In my head, I've always replaced "stroke" with "border". Is that accurate or is there a significant difference between them? – Scribblemacher May 22 '19 at 12:03

You're on the right track, but missing the mark a bit. Adobe defines paths as follows:

A path consists of segments and vertices. Segments are the lines or curves that connect vertices. Vertices define where each segment of a path starts and ends. Some Adobe applications use the terms anchor point and path point to refer to a vertex.

Essentially, a path is a line that connects anchor points. Paths can be open (e.g. a straight line) or they can be closed, to make a shape. Closed paths do not need to be filled with color, I think this is where you are confusing stroke with fill.

A stroke, on the other hand, is simply a line that follows your path. Strokes can be set to the inside, middle, or outside of your path and may vary in thickness, color, style, etc.

To answer your question about paths in the real world: no, they don't exist in the same sense as they do in computer graphics.

The best example I could give you of a real-world representation of paths would be to imagine your path as a stencil. You can either trace around the edge of that stencil (stroke) or you can color the stencil in completely (fill).

| improve this answer | |

As far as stroke is concerned – from an artist’s vocabulary it is the real world that has substance – a brush/pen with paint/ink (substance of colour and thickness) will produce a ‘stroke’. Lines, vectors and paths can be plotted on a graph in mathematics and are computational.

| improve this answer | |

The path is the shape. The stroke is the thickness of the line of the shape. Stroke can be zero… Which means the object doesn’t appear in preview mode but you would see it in outline mode.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.