Am 13.05.2021 um 19:17 schrieb Aditya Mahajan
: On Thu, 13 May 2021, Henning Hraban Ramm wrote:
Am 13.05.2021 um 18:36 schrieb Aditya Mahajan
: Now I want to draw that path several times.
If I understand it right, I can’t put that into "sketchdraw" because that leaves the end open for path additions like "withcolor".
A slightly different approach is needed. See attached. I also added a bit a error protection in case someone sets sketch_passes to be negative by mistake.
Thank you so much!
Here is a different effect ... more of a trembling hand drawing than a sketch. You can play around with sketch_amount to see some variation.
In this, rather than using the default randomized path (which randomizes the points of a path), I split the path into 20 segments, and randomize each segment.
Thank you, that is what I was asking for! Unfortunately, the deviation of edge points is too big – try my attached test file. Strangely, if I include the MP code in a ConTeXt document, the transparency doesn’t work (it multiplies, but at 100%); I must add "withtransparency ("multiply", 0.2)" to my draw command. I’ll try to come up with a MWE. (Transparency of an image also doesn’t work in that document.) My test file also includes the noise overlay after Jairo’s suggestions. Maybe you want to implement that, too? At the moment it still doesn’t respect the pen size, and the number of patterns per path is fixed. Hraban