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)
22 lines (21 loc) • 713 B
TypeScript
/** @format */
import { ColorUint8 } from './color-uint8.js';
/**
* Class representing an RGB color with 8-bit channels.
* @extends ColorUint8
*/
export declare class ColorRgb8 extends ColorUint8 {
/**
* Create a ColorRgb8 instance.
* @param {number} r - The red channel value.
* @param {number} g - The green channel value.
* @param {number} b - The blue channel value.
*/
constructor(r: number, g: number, b: number);
/**
* Create a ColorRgb8 instance from another ColorUint8 instance.
* @param {ColorUint8} other - The other ColorUint8 instance.
* @returns {ColorUint8} A new ColorUint8 instance.
*/
static from(other: ColorUint8): ColorUint8;
}