arc
There are a few arc tools we want here.
Draw arc:
- typical:
a.pen.arc(ctx, b, primaryColor, size, 2, 0)
Meta Data
| filepath_exists | True |
| path | arc |
| filepath | arc.js |
| clean_files | () |
-
ClassDeclarationclass
PointArc
extends NoneExpressionStatement:
dict_keys(['type', 'expression', 'pos'])ClassDeclarationclassArcPlot
extends Noneclass comments:VariableDeclarationAn arc, starting at
fromPoint, ending attoPoint, the origin center, at a distance from the center, equal to the center point radius.let arcPlot = arcFromTo(centerPoint, fromPoint, toPoint) penArcPlot(arcPlot, ctx, 'orange') the _from_ or _to_ point may be at any distance from the center point.
Point as center, arc from A, to B, at a distance c.radius