UNPKG

@obliczeniowo/elementary

Version:
30 lines (29 loc) 1.03 kB
import { ColorRGB } from './ColorRGB'; export declare class ColorHSV { h: number; s: number; v: number; protected constructor(h: number, s: number, v: number); /** * Calculate color with linear interpolation using factor parameter */ static proportionalColor(firstColor: ColorHSV, secondColor: ColorHSV, factor: number): ColorHSV; /** * Static constructor for creating ColorHSV object * @param h hue - value from 0 - 360 degrees * @param s saturation - value from 0 - 1 * @param v value 0 - 255 * @returns ColorHSV object */ static createColorHSV(h: number, s: number, v: number): ColorHSV; static fmod(a: number, b: number): number; /** * Static constructor for creating ColorHSV object * @param colorRGB object of RGB color * @returns brand, brand new object of ColorHSV */ static createColorHSVfromRGB(colorRGB: ColorRGB): ColorHSV; convertToRGB(): ColorRGB; addHue(hue: number): ColorHSV; toString(): string; }