Skip to content

Documentation for canvas.drawVertices is incorrect #130747

@brianosman

Description

@brianosman

Visit: https://api.flutter.dev/flutter/dart-ui/Canvas/drawVertices.html

The documentation suggests using dstOver and srcOver blend modes to select the vertex or paint colors respectively. This is slightly incorrect - the correct blend modes are dst and src. (There is no difference if the colors are opaque, but for transparent colors, dstOver and srcOver will blend against the other component).

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