You can create a black 100x100 image using canvas element in JavaScript:
index.tsx266 chars8 lines
We create a canvas element with width and height of 100px, get its context and fill it with black color. Finally, we can get the image data in base64 encoded string format using toDataURL()
method of canvas.
gistlibby LogSnag