simple js with jit.gl.sketch

Yoann's icon

Hi,

I want to make a kind of meter~ (for floats) using jit.gl.sketch.
Here is what I did.
It works, but it takes an incredibly high amount of cpu.
My JS skills are quite basics, I'm thinking the error is there...
Anyone has an idea why ?

Thanks

Yoann

Max Patch
Copy patch and select New From Clipboard in Max.