8000 Arc support for :circ · Issue #6 · jarcane/minicosm · GitHub
[go: up one dir, main page]

Skip to content

Arc support for :circ #6

Open
Open

Description

@jarcane

Add support for partial arcs to the :circ implementation. Currently :circ only supports full ellipse shapes.

Proposal:

  • new property: :angle - specifies the start and end angles of the circle, specified in radians clockwise from x-axis, as per the spec for the similar arguments to CanvasRenderingContext2D.ellipse().
  • implementation: modify :circ implementation to check for the presence of :angle property and apply the values to the appropriate arguments of the call to ctx.ellipse(), or else default to a full circle as presently.
  • challenges: none expected, should be a fairly easy add.
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0