jaquadro / LilyPath

A 2D path and shape drawing library for MonoGame and XNA.
MIT License
93 stars 12 forks source link

GradientPen direction #14

Open RisingSunStudios opened 5 years ago

RisingSunStudios commented 5 years ago

Hi!

I'm trying to create a ribbon effect using the DrawArc that goes from solid colour to transparent. It appears that the GradientPen creates gradients along the width of the shape, but I'd like it to gradient along the length of the shape instead.

Is this possible? I tried changing line 52 in the GradientPen to use lengthPosition instead, but then I just get a solid colour.

Thanks!