Skip to content

Gradient along the spline? #334

@ghost

Description

Is there any general way to specify gradient along the 1d position on spline?
For example, this one I made using cubicSpline, it consists of 6 points:
https://imgur.com/MOqOKDN

Gradient is:
linear = mkLinearGradient (mkStops [(black, 0, 1), (white, 1, 1)]) 0 1 GradPad

What I want to achieve is that spline gradually becomes white along the way from the start to the end, so that point A is visible and B is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions