stippled line variable point spacing from raster

 From:  bemfarmer
10809.29 In reply to 10809.5 
Hi PEER,

>>>But maybe before going into details, can you think of another way of spacing out points along a curve so the the distance between each pair of points is roughly proportional to the local luminance of an underlying image? Maybe there's a straighter path that I'm not thinking of.

If you have a mathematical formula for the "raster gradient" of the luminance, that could perhaps be used to array the points along the curve.

The programs that create the raster gradients use some mathematical method. See their source code, or do internet search?

https://gis.stackexchange.com/questions/311688/how-to-make-a-raster-gradient-in-any-direction-in-r

https://www.i-programmer.info/programming/javascript/14966-javascript-canvas-gradient-a-pattern-fills.html

https://blog.johnnovak.net/2016/09/21/what-every-coder-should-know-about-gamma/

https://www.youtube.com/watch?v=nMUMZ5YRxHI

- Brian

EDITED: 12 Aug 2022 by BEMFARMER