mirror of
https://git.sleeping.town/mirrors/foxy-moxy
synced 2024-11-23 12:37:43 +00:00
use bezier curves instead of lines, so cat mouth is less sad
This commit is contained in:
parent
4d648a288f
commit
4625fe0f0b
1 changed files with 9 additions and 2 deletions
|
@ -105,8 +105,15 @@ function renderMouth(ctx, opts) {
|
||||||
break;
|
break;
|
||||||
case "cat":
|
case "cat":
|
||||||
ctx.moveTo(opts.x - opts.width/2, opts.y + opts.height/2);
|
ctx.moveTo(opts.x - opts.width/2, opts.y + opts.height/2);
|
||||||
ctx.lineTo(opts.x, opts.y - opts.height/2);
|
ctx.bezierCurveTo(opts.x - opts.width/2, opts.y + opts.height/2,
|
||||||
ctx.lineTo(opts.x + opts.width/2, opts.y + opts.height/2);
|
opts.x, opts.y + opts.height/2,
|
||||||
|
opts.x, opts.y - opts.height/2
|
||||||
|
)
|
||||||
|
ctx.bezierCurveTo(
|
||||||
|
opts.x, opts.y - opts.height/2,
|
||||||
|
opts.x, opts.y + opts.height/2,
|
||||||
|
opts.x + opts.width/2, opts.y + opts.height/2
|
||||||
|
)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ctx.stroke();
|
ctx.stroke();
|
||||||
|
|
Loading…
Reference in a new issue