image-in-browser
Version:
Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)
23 lines (22 loc) • 780 B
TypeScript
/** @format */
import { ColorUint8 } from './color-uint8.js';
/**
* Class representing an RGBA color with 8-bit channels.
* @extends ColorUint8
*/
export declare class ColorRgba8 extends ColorUint8 {
/**
* Create a ColorRgba8 instance.
* @param {number} r - The red channel value.
* @param {number} g - The green channel value.
* @param {number} b - The blue channel value.
* @param {number} a - The alpha channel value.
*/
constructor(r: number, g: number, b: number, a: number);
/**
* Create a ColorRgba8 instance from another ColorUint8 instance.
* @param {ColorUint8} other - The other ColorUint8 instance.
* @returns {ColorUint8} A new ColorUint8 instance.
*/
static from(other: ColorUint8): ColorUint8;
}