Skip to content

How to draw rectangle with round corner? #149

@Kayxue

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions