From 6637766554954a5a59eb68f210a00644555ba607 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 16 Apr 2020 18:11:13 +0900 Subject: [PATCH] feat(pages): Add arc method --- src/client/scripts/aoiscript/evaluator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/scripts/aoiscript/evaluator.ts b/src/client/scripts/aoiscript/evaluator.ts index e911be2ca..e85a8c83f 100644 --- a/src/client/scripts/aoiscript/evaluator.ts +++ b/src/client/scripts/aoiscript/evaluator.ts @@ -56,6 +56,7 @@ export class ASEvaluator { ['close_path', values.FN_NATIVE(() => { ctx.closePath() })], ['move_to', values.FN_NATIVE(([x, y]) => { ctx.moveTo(x.value, y.value) })], ['line_to', values.FN_NATIVE(([x, y]) => { ctx.lineTo(x.value, y.value) })], + ['arc', values.FN_NATIVE(([x, y, radius, startAngle, endAngle]) => { ctx.arc(x.value, y.value, radius.value, startAngle.value, endAngle.value) })], ['fill', values.FN_NATIVE(() => { ctx.fill() })], ['stroke', values.FN_NATIVE(() => { ctx.stroke() })], ]));