3 ms·
I haven't tested but I think you can convert ndarray to Uint8ClampedArray by doing new Uint8ClampedArray(ndarray.data);
by megalodon 10y ago
I haven't tested but I think you can convert ndarray to Uint8ClampedArray by doing
new Uint8ClampedArray(ndarray.data);