I need to draw an horizontal segment with dashes on it for a doc I'm writing.
I need to subdivide the segment length this way: given l
, then length of the segment and n
the fraction of the remaining length at each step, the first dash should be at first=l/n
from the left, the second at 1/n + (l-first)/n
and so on (until the division returns a number less than one)
What tool could I use to draw this automatically, without using a programming language? Or... what script could do this?
I need and image in png/jpg as the final result.