Skip to content

Support both nonzero and evenodd fill rules #1782

@fogleman

Description

@fogleman

The "fill rule" is a common parameter in 2D rendering engines to control how overlapping areas in a path are filled.

Examples from other libraries:

Currently, p5.js does not provide control over the fill rule. However, the underlying rendering library supports it, so adding it is relatively easy.

This was implemented in pull request #1729. This PR added a fillRule function to select NONZERO or EVENODD fill rules. The PR was closed as "out of scope." I am opening this issue to encourage discussion.

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