Give real-time targets proportional alpha values (#169)

Closes: #158

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>

Reviewed-on: #169
This commit is contained in:
2024-03-31 09:56:49 -07:00
parent 33b50f3dfd
commit e1464df3f0
2 changed files with 6 additions and 2 deletions

View File

@@ -368,6 +368,7 @@ import { Conv2DBackpropFilter } from '@tensorflow/tfjs'
imCanvas.width = imCanvas.clientWidth
imCanvas.height = imCanvas.clientHeight
imageCtx.clearRect(0,0,imCanvas.width,imCanvas.height)
imageCtx.globalAlpha = 1
imageCtx.strokeStyle = 'yellow'
imageCtx.lineWidth = 3
return [imCanvas, imageCtx]