The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.
Hello,
I need to create curved dashed / dotted (random curvature, rotation and position) line. My first hint was to use stack node (img. attached). Is there a better way to do this and is it possible to create dashed line from (shape or color) stroke?
Kind regards
john
Hi Zyl,
The node you need is "shape on path". It takes any path and distributes a shape (e.g. a dot or a dash) along that path. You can either specify a fixed amount and have the shapes distributed evenly, or place them with a fixed amount of space between each one.
I have attached a simple example. I create a random path by combining a line, arc, and quad curve. I then distribute elongated ellipses along that path to create a dotted line. (You could use round ellipses or line segments or little rectangles or whatever.) I then feed the dots into a colorize node to assign them a set of random colors.
Hi John,
Thank you for your effort and this interesting approach, really appreciate it.
I'm using this technique in one design project, I'll let you know the results as soon as I can.
Best
Know something that helps?
Sign in with your email address to reply. No password needed.