ScenicFramework / scenic

Core Scenic library
Apache License 2.0
1.96k stars 133 forks source link

New function Scenic.Script.arc/7 to add arcs to current path #326

Closed GPrimola closed 4 months ago

GPrimola commented 1 year ago

Description

This PR adds a new operation arc to add arcs to current path. This interface is also available on HTML Canvas API: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arc

Motivation and Context

Today we only have 2 interfaces to have arcs:

So this new function arc have the same parameters as nvgArc, which gives a more flexible interface for drawing arcs.

Types of changes

Checklist

Dependencies

This PR depends on changes on https://github.com/ScenicFramework/scenic_driver_local and can only be merged after https://github.com/ScenicFramework/scenic_driver_local/pull/42