Can I add gradient to the lines going from the center to the edges?
I can’t change color of the lines separately. I draw them in a batch so they have to use the same drawer.
Therefore, I wonder if there are some alternative approaches. For example, can I use the lines (not the resulting shape they create) as a mask which exposes another image (with the gradient)?
I opened this issue to be able to apply those same shade styles to strokes, not only fills.
Meanwhile I just figured out a little hack:
val img = loadImage("data/images/cheeta.jpg")
val ss = imageFill { image = img }
ss.fragmentTransform = ss.fragmentTransform?.replace("x_fill", "x_stroke")
Here I load an image and use the new imageFill shade style which works for fills only. But then in the next line I replace any mentions of x_fill to x_stroke and voilá! Now the style applies to lines instead