Merge pull request #8 from Patreon/luke---fix-invariant-mouth-size

Fix mouth render bug.
This commit is contained in:
Luke Davis 2016-12-16 18:58:00 -08:00 committed by GitHub
commit b517805b1b

View file

@ -93,7 +93,7 @@ function renderNose(ctx, opts) {
function renderMouth(ctx, opts) {
ctx.strokeStyle = "black";
ctx.lineWidth = 2;
ctx.lineWidth = 0.01 * ctx.canvas.width;
ctx.beginPath();
switch (opts.style) {
case "smirk":