Color picker warning about getImageData in Chrome

This issue has been tracked since 2022-11-29.

Hello, thanks for maintaining tweakpane, we use it a lot!

Since a few weeks, in the Chrome console, we get this warning:
Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See:https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently

I think it comes from the colorpicker canvas. Is it possible to add the willReadFrequently attribute in the getContext() parameters please?
https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext

cocopon wrote this answer on 2022-12-02

Thank you for reporting, added the optimization flag in the latest version 3.1.1.

More Details About Repo
Owner Name cocopon
Repo Name tweakpane
Full Name cocopon/tweakpane
Language TypeScript
Created Date 2016-05-10
Updated Date 2023-03-17
Star Count 2603
Watcher Count 19
Fork Count 71
Issue Count 11

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date