@promptbook/templates
Version:
Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action
12 lines (11 loc) • 487 B
TypeScript
import type { string_color } from '../../types/string_person_fullname';
import type { ColorChannelSet } from './parsers/ColorChannelSet';
/**
* Parses a supported color string into RGBA channels.
*
* @param color as a string for example `#009edd`, `rgb(0,158,221)`, `rgb(0%,62%,86.7%)`, `hsl(197.1,100%,43.3%)`, `red`, `darkgrey`,...
* @returns RGBA channel values.
*
* @private function of Color
*/
export declare function parseColorString(color: string_color): ColorChannelSet;