diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-04-17 15:51:36 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-04-17 15:51:36 +0900 |
| commit | 75d59a9c9b9f303b579046c542659e72452db38f (patch) | |
| tree | 42c30cd4c665debaed2ede64b6bba4c81cc08311 /src/client/scripts | |
| parent | feat(pages): Disable AiScript step limitation to improve usability (diff) | |
| download | sharkey-75d59a9c9b9f303b579046c542659e72452db38f.tar.gz sharkey-75d59a9c9b9f303b579046c542659e72452db38f.tar.bz2 sharkey-75d59a9c9b9f303b579046c542659e72452db38f.zip | |
feat(pages): Add rect method
Diffstat (limited to 'src/client/scripts')
| -rw-r--r-- | src/client/scripts/aoiscript/evaluator.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/scripts/aoiscript/evaluator.ts b/src/client/scripts/aoiscript/evaluator.ts index 9e8608dc59..de2baeb558 100644 --- a/src/client/scripts/aoiscript/evaluator.ts +++ b/src/client/scripts/aoiscript/evaluator.ts @@ -57,6 +57,7 @@ export class ASEvaluator { ['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) })], + ['rect', values.FN_NATIVE(([x, y, width, height]) => { ctx.rect(x.value, y.value, width.value, height.value) })], ['fill', values.FN_NATIVE(() => { ctx.fill() })], ['stroke', values.FN_NATIVE(() => { ctx.stroke() })], ])); |