Skip to content

How to draw rectangle with round corner? #149

Description

@Kayxue

In @gfx/canvas there is a method called arcTo, which can help me drawing rounded triangle:

ctx.arcTo(350, 0, 350, 128, 50);

But seems that there is no similar method in this crate, how should I draw a rounded triangle with specific radius?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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