UNPKG

image-js

Version:

Image processing and manipulation in JavaScript

14 lines 660 B
import { setBlendedPixel } from './setBlendedPixel.js'; /** * Blend the given pixel with the pixel at the specified location in the image if the pixel is in image's bounds. * @param image - The image with which to blend. * @param column - Column of the target pixel. * @param row - Row of the target pixel. * @param color - Color with which to blend the image pixel. Default: `Opaque black`. */ export function setBlendedVisiblePixel(image, column, row, color) { if (column >= 0 && column < image.width && row >= 0 && row < image.height) { setBlendedPixel(image, column, row, color); } } //# sourceMappingURL=setBlendedVisiblePixel.js.map