UNPKG

pixel-utils

Version:
9 lines 286 B
/** * @name hide_rgba * @description make a given (scaled) rgba value transparent/invisble * @param {RGBA} rgba pixel * @returns a new rgba pixel with the same Red, Green and Blue values and a 0 alpha value */ export default function hide_rgba([r, g, b]) { return [r, g, b, 0]; }