@radial-color-picker/angular-color-picker
Version:
Radial Color Picker - Angular
21 lines (20 loc) • 925 B
TypeScript
/**
* Modified version of Lea Verou's
* {@link https://github.com/leaverou/conic-gradient conic-gradient}.
*
* @example
* paintColorWheelToCanvas(document.querySelector('#canvas'), 250);
*
* @param canvas Canvas to paint the color wheel
* @param size Color wheel diameter in pixels
* @returns canvas The passed canvas for easier chaining
*/
export declare const paintColorWheelToCanvas: (canvas: HTMLCanvasElement, size: number) => HTMLCanvasElement;
/**
*
* @param canvas Canvas to paint the color wheel
* @param diameter Color wheel diameter in pixels
* @param coefficient Relation between inner white circle outer border and color circle outer border, controls the width of the color gradient path
* @returns canvas The passed canvas for easier chaining
*/
export declare const renderColorMap: (canvas: HTMLCanvasElement, diameter: number, coefficient?: number) => HTMLCanvasElement;