Irregular hatch lines

Looking for some help creating a similar irregular hatch pattern to this image of a drawing by Piranesi with grasshopper (hatch becomes denser near edges). I was thinking a field logic could work well but not sure if there is a strategy that will offer a closer result. I have attached my first attempt at a script with all data internalized. Would appreciate any input. Thank you.

Piranesi Hatch.gh (11.2 KB)

Maybe instead of pointCharge use LineCharge?

Or depending how tidy you need to be. You can try dashPattern on curves.

Piranesi Hatch_01.gh (25.8 KB)

Also check similar topics in forum for stippling, dithering, hatching

Main question would be, what is your starting geometry?

Is it image, 3d model or line drawing?

Cause workflow will vary depending on that.

Apologies for the late reply and thank you for your response. Interesting suggestion, I’ve played with your script a little more to see if I can get it closer to what I need. For example, I have attached an instance where I am attempting to create a square pit where I would like darker shading on the inside and lighter shading around the edges. I used the pull component to concentrate points in the middle of the closed geometry, however I would like to also be able to make the field lines on the inside longer than the ones on the outside as opposed to the current condition where it is the opposite.

The starting geometry will be lines with primarily closed regions.

Piranesi Hatch_01_EDITED.gh (25.2 KB)

So in your case Steps input for FLine is what defines length. Just reverse values for your attractor.