I think, perhaps, that I'm not getting something, conceptually, so I'm looking for some advice. This is regarding an interactive tool.
let's say that the tool starts at x0, y0 and is dragged about, ending at xn, yn.
In between, we want the width of the shape created to vary by the speed the tool is moving. Calculating that speed is easy - we can look at the last point it was at and the current point that it is at and do the distance. Here is where I have questions, though... and I really feel like I should be able to answer these, but I'm looking for help.
a. I can easily make a path along all the points that the mouse moves by just adding segments, but what I'm describing would have two paths diverging from x0, y0 and closing at xn, yn (to make one complete path). I tried creating parallel segments for this, but it really didn't seem to work. Does anybody have any scripts that show an example of how to do this? I think that I'm not getting something with how the AI Art works.
b. This is more conceptual - everything I create ends up looking like somewhat of a ribbon -- that makes sense, since if I am offsetting my x and y values for the second path, and then cut back at an angle, they should appear much closer. But I also tried this with calculations through Point.getAngle and Point.rotate, and the results are the same, so I'm stumped. What I'm looking for, in the end, would be like a variable thickness outline stroke on a path... anyone have any advice?
Ok, starting off with two "help me" questions -- I'll do my best to return the favor to future stumped scripters when it comes to areas that I can help with.
Thanks,
Charles