diff --git a/script.js b/script.js index 39db513..255136b 100644 --- a/script.js +++ b/script.js @@ -124,7 +124,23 @@ addEventListener('DOMContentLoaded', () => { } { // format info - // TODO + // ctx.fillStyle = "rgba(63, 149, 224, 0.5)" + ctx.fillStyle = "rgba(63, 203, 224, 0.5)" + + ctx.fillRect(0, idSize, idSize, scale) + ctx.fillRect(idSize, 0, scale, idSize + scale) + ctx.fillRect(idSize, canvas.height - idSize, scale, idSize) + ctx.fillRect(canvas.width - idSize, idSize, idSize, scale) + } + + if (ver >= 7) { // version info + ctx.fillStyle = "rgba(63, 224, 171, 0.5)" + + const verWidth = 3 * scale + const verHeight = 6 * scale + const verBeginPos = canvas.width - idSize - verWidth + ctx.fillRect(verBeginPos, 0, verWidth, verHeight) + ctx.fillRect(0, verBeginPos, verHeight, verWidth) } })