Onyx is a JavaScript library for creating and manipulating images. It can be used to apply filters, resize images and more. Below is an example of how to use Onyx to process an image in JavaScript:
index.tsx434 chars22 lines
In the example above, we first load an image using the Onyx.loadImage()
function. We can then apply a filter using the Onyx.filter()
function and resize the image using the Onyx.resize()
function. Finally, we save the modified image using the Onyx.saveImage()
function.
gistlibby LogSnag