Skip to content

Idea: Shape Object #3

Description

@kaidesu

Instead of rendering basic shapes directly to the canvas, it would be nice to instead have an API to draw shapes with in a fluent manner:

rectangle(x, y, w, h).filled().radius(5).draw()
circle(x, y, w).filled().draw()
line(x1, y1, x2, y2).width(2).draw()

Possible methods

  • filled()
  • radius()
  • width()
  • color()
  • draw()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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