MCPcopy Create free account
hub / github.com/microsoft/SandDance / curveHorizontal

Function curveHorizontal

docs/tests/v2/es6/js/sanddance.js:95148–95151  ·  view source on GitHub ↗
(context, x0, y0, x1, y1)

Source from the content-addressed store, hash-verified

95146}
95147
95148function curveHorizontal(context, x0, y0, x1, y1) {
95149 context.moveTo(x0, y0);
95150 context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);
95151}
95152
95153function curveVertical(context, x0, y0, x1, y1) {
95154 context.moveTo(x0, y0);

Callers

nothing calls this directly

Calls 1

moveToMethod · 0.45

Tested by

no test coverage detected