I would like to draw a line or curve and blur it partially or gradually.
AFAIK Blurring is only blurring for a complete object (like a line).
Of course I can clumsily split a line in chunks like below but it's not very useful. Any ideas?
b = BezierFunction[{{0, 0}, {1, 1}, {2, 0}, {5, 5}}]
xy = Flatten[
MapIndexed[{Blurring[ First@#2/10 - 1], Line[#1]} &,
Partition[Table[b[x], {x, 0, 1, 0.02}], 2, 1]], 1];
Graphics[{Thick, Green, xy}]






CapForm["Round"]seems to do the best job, but it's not perfect (I think). -- Too badBlurring[]does not work withVertexColors(feature request!). – Michael E2 Aug 14 '23 at 16:40b = BezierFunction[{{0, 0}, {1, 1}, {2, 0}, {5, 5}}] xy = Flatten[ MapIndexed[{Blurring[First@#2/100 - 1], Line[#1]} &, Partition[Table[b[x], {x, 0, 1, 0.002}], 2, 1]], 1]; Graphics[{Thick, Red, CapForm["Butt"], xy}]– Michael E2 Aug 14 '23 at 16:42Opacityto emulate theBlurringeffect that they envision. I mention this because they have made comments of wanting the line to stay the same thickness, and also have a worry how some solutions will work with multiple lines. As far as I understand, a trueBlurringwould not satisfy well either of those concerns. – CA Trevillian Aug 16 '23 at 00:57