You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to access the pixel data of a CANVAS element directly from Go?
Getting the data, transferring it to Go, manipulating it, moving it back to JS, and updating the pixel data via JS sounds like a time-consuming round-trip. Something like 60FPS will not be possible with this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Pixel_manipulation_with_canvas
Would it be possible to access the pixel data of a CANVAS element directly from Go?
Getting the data, transferring it to Go, manipulating it, moving it back to JS, and updating the pixel data via JS sounds like a time-consuming round-trip. Something like 60FPS will not be possible with this.
Beta Was this translation helpful? Give feedback.
All reactions