Skip to content

Bezier curves #23

@nelsonsilva

Description

@nelsonsilva

Hi,

I've added bezier support in my fork (https://github.com/nelsonsilva/webgl-2d).

I haven't submitted a pull request since I want to fix the filling of non convex polygons.
If I add each bezier as a subpath the rendering of each of these filled is not the same as filling the whole path.
If I add all to a single subpath the use of the triangle fan doesn't work properly for non convex polygons.
I have even tried to calculate the lower left of the path and use it as the first point but it still doesn't seem to work properly.
Should we add tesselation to fix this ?

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