How to get data from async functions on scripting
function DRAWING(canvasIns, x,y, color) { const imageData = canvasIns.getImagePixelData(); console.log(imageData.data) // }
this code show underfine object for #imageData ???
Develop games in your browser. Powerful, performant & highly capable.
getImagePixelData() is an async function. See this guide on async/await.
getImagePixelData()