feat: highlight format and version info

This commit is contained in:
DarkCat09 2024-07-11 20:39:02 +04:00
parent 4ed6418c28
commit f973c30ddc
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -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)
}
})