feat: highlight format and version info
This commit is contained in:
parent
4ed6418c28
commit
f973c30ddc
1 changed files with 17 additions and 1 deletions
18
script.js
18
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)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue