新增正方形和椭圆

This commit is contained in:
朱浩 2024-09-27 17:43:30 +08:00
parent 3fed8af69d
commit 8340a64698
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ export const drawElliptic = (ctx, x, y, rX, rY, fill = false) => {
drawWrap( drawWrap(
ctx, ctx,
() => { () => {
ctx.ellipse(x, y, rX, rY, 0,0, 2 * Math.PI) ctx.ellipse(x, y, rX/2, rY/2, 0,0, 2 * Math.PI)
}, },
fill fill
) )