Skip to content

Commit

Permalink
fixes #44
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Fernández Serrata committed Mar 7, 2024
1 parent ba0797a commit 5921ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ const RGBDR_anim = (() => {
const save = ctx.getImageData(0, 0, w, h)
w = canv.width = clientWidth * scale >>> 0
h = canv.height = clientHeight * scale >>> 0
ctx_fillFull(anim.settings.dim_factor < 0 ? "fff" : "000")
ctx.putImageData(save, 0, 0)
//ctx.scale(scale, scale) // is normalization necessary?

Expand Down Expand Up @@ -375,7 +376,6 @@ const RGBDR_anim = (() => {
const main = () => {
// not part of anim, and has some latency, so no RAF
resize()
ctx_fillFull(anim.settings.dim_factor < 0 ? "fff" : "000")
// these don't work as desired
//ctx.textAlign = 'center'
//ctx.textBaseline = 'middle'
Expand Down

0 comments on commit 5921ff0

Please sign in to comment.