MCPcopy Index your code
hub / github.com/microsoft/SandDance / drawArc

Function drawArc

docs/app/js/sanddance-app.js:121521–121527  ·  view source on GitHub ↗
(context2, x5, y5, coords)

Source from the content-addressed store, hash-verified

121519 }
121520}
121521function drawArc(context2, x5, y5, coords) {
121522 const seg = segments(coords[5], coords[6], coords[0], coords[1], coords[3], coords[4], coords[2], x5, y5);
121523 for(let i = 0; i < seg.length; ++i){
121524 const bez = bezier(seg[i]);
121525 context2.bezierCurveTo(bez[0], bez[1], bez[2], bez[3], bez[4], bez[5]);
121526 }
121527}
121528const Tan30 = 0.5773502691896257;
121529const builtins = {
121530 "circle": {

Callers 1

pathRenderFunction · 0.70

Calls 2

segmentsFunction · 0.70
bezierFunction · 0.70

Tested by

no test coverage detected