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 Noneclass comments:Point as _center_, arc from A, to B, at a distance c.radiusExpressionStatement:
dict_keys(['type', 'expression', 'pos'])FunctionDeclarationFunctionDeclarationFunctionDeclarationVariableDeclarationVariableDeclarationClassDeclarationclassArcPlot
extends Noneclass comments:VariableDeclarationVariableDeclarationVariableDeclarationAn arc, starting at `fromPoint`, ending at `toPoint`, 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.FunctionDeclarationFunctionDeclarationFunctionDeclaration