Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GradientPath rendering #30

Open
JohanLarsson opened this issue Feb 26, 2019 · 1 comment
Open

GradientPath rendering #30

JohanLarsson opened this issue Feb 26, 2019 · 1 comment

Comments

@JohanLarsson
Copy link
Member

JohanLarsson commented Feb 26, 2019

image

It does not render nicely when the segments are visible like this.
@robbym used your png.

@JohanLarsson
Copy link
Member Author

<effects:GradientPath GradientMode="Parallel"
                      StrokeThickness="10"
                      RenderOptions.EdgeMode="Aliased"
                      Tolerance="0.01">
    <effects:GradientPath.Data>
        <PathGeometry>
            <PathFigure StartPoint="10,100">
                <ArcSegment IsLargeArc="True"
                            Point="100,210"
                            Size="100,100"
                            SweepDirection="Clockwise" />
            </PathFigure>
        </PathGeometry>
    </effects:GradientPath.Data>
    <effects:GradientPath.GradientStops>
        <GradientStop Offset="0" Color="Red" />
        <GradientStop Offset="0.5" Color="Yellow" />
        <GradientStop Offset="1" Color="Orange" />
    </effects:GradientPath.GradientStops>
</effects:GradientPath>

Renders:
gradientpatharcsegmentlargearc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant