Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add gradient dithering #239

@diquah

Description

@diquah

Gradients between two very similar colors create harsh banding which becomes more noticeable the larger the distance the gradient covers.

Dithering is the process of creating in-between colors using an optical illusion to make sub-band transitions possible.

Image

Currently, Femtovg does not support dithering like other vector graphics libraries, leading to noticeable bands:

Image

Implementing dithering should be as simple as adding additional virtual stops between the gradient stop points with pre-set dithering patterns, see (https://en.wikipedia.org/wiki/Ordered_dithering)[https://en.wikipedia.org/wiki/Ordered_dithering]

This would greatly improve the quality of femtovg's rendering and enable more sleek and polished looking renders.

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