Horizontal gradient for line

Hello @bringmeflowers,

This topic (Java version) may be of interest:

I was able to achieve this with a few modifications:

image

:)