@itwin/core-common
Version:
iTwin.js components common to frontend and backend
31 lines • 910 B
TypeScript
/** @packageDocumentation
* @module Symbology
*/
import { ColorDef } from "./ColorDef";
/**
* @public
* @extensions
*/
export declare enum HSVConstants {
VISIBILITY_GOAL = 40,
HSV_SATURATION_WEIGHT = 4,
HSV_VALUE_WEIGHT = 2
}
/** An immutable color defined by Hue, Saturation, and Value
* @see [here](https://en.wikipedia.org/wiki/HSL_and_HSV) for difference between HSL and HSV
* @public
*/
export declare class HSVColor {
/** Hue */
readonly h: number;
/** Saturation */
readonly s: number;
/** Value */
readonly v: number;
constructor(hue?: number, saturation?: number, value?: number);
clone(hue?: number, saturation?: number, value?: number): HSVColor;
toColorDef(transparency?: number): ColorDef;
static fromColorDef(val: ColorDef): HSVColor;
adjusted(darkenColor: boolean, delta: number): HSVColor;
}
//# sourceMappingURL=HSVColor.d.ts.map