Skip to content

Along/across-stroke gradients #2305

@Keavon

Description

@Keavon

There are two directions:

  • Along the stroke

    See this for info about how to approximate this. We can also just split up the stroke into a lot of pieces with solids colors, or with linear gradients aiming to go from the start to end, using greater subdivision where the start and end planes bend more quickly to aim for them to be close to parallel so the linear gradient works.

    Image

  • Across the stroke

    Repeat the stroke many times with increasing thickness. Use the technique described in Stroke alignment #2268 for not mirroring at the centerline.

    Image

Regardless of method or direction, masking is likely necessary to handle end caps properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GraphicsGPU and graphics programming related

    Projects

    Status

    Medium-Term

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions