From 316ab077df38be4434e3483bea4f20c31605a475 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 24 Apr 2021 11:52:40 -0400 Subject: [PATCH] Fix --- commands/edit-image/analog-clock.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/edit-image/analog-clock.js b/commands/edit-image/analog-clock.js index f58344fc..7a8fbbee 100644 --- a/commands/edit-image/analog-clock.js +++ b/commands/edit-image/analog-clock.js @@ -55,6 +55,8 @@ module.exports = class AnalogClockCommand extends Command { const parens = sub ? ` (${subMain ? `${sub}, ` : ''}${main})` : ''; const canvas = createCanvas(1000, 1000); const ctx = canvas.getContext('2d'); + ctx.fillStyle = 'black'; + ctx.fillRect(0, 0, canvas.width, canvas.height); let radius = canvas.height / 2; ctx.translate(radius, radius); radius = radius * 0.9; @@ -117,7 +119,7 @@ module.exports = class AnalogClockCommand extends Command { ctx.textBaseline = 'middle'; ctx.textAlign = 'center'; ctx.fillStyle = 'white'; - ctx.fillText(meridiem, ctx.canvas.width - 10, ctx.canvas.height - 10); + ctx.fillText(meridiem, ctx.canvas.width - 50, ctx.canvas.height - 50); return ctx; }