/** * Color Utilities * * Color manipulation and mapping functions for galaxy visualization. */ import * as THREE from 'three'; import type { SensitivityLevel, SecurityTier, AuthLevel, DataOperation } from '../types/index.js'; /** * Convert hex color to THREE.Color */ export declare function hexToThreeColor(hex: string): THREE.Color; /** * Convert hex to RGB object */ export declare function hexToRgb(hex: string): { r: number; g: number; b: number; }; /** * Interpolate between two colors */ export declare function lerpColor(color1: string, color2: string, t: number): string; /** * Brighten a color */ export declare function brightenColor(hex: string, factor: number): string; /** * Darken a color */ export declare function darkenColor(hex: string, factor: number): string; /** * Get color for sensitivity level */ export declare function getSensitivityColor(level: SensitivityLevel): string; /** * Get THREE.Color for sensitivity level */ export declare function getSensitivityThreeColor(level: SensitivityLevel): THREE.Color; /** * Get emissive intensity for sensitivity level */ export declare function getSensitivityEmissive(level: SensitivityLevel): number; /** * Get sensitivity level from numeric score (0-100) */ export declare function scoreToSensitivity(score: number): SensitivityLevel; /** * Get color for security tier */ export declare function getSecurityTierColor(tier: SecurityTier): string; /** * Get THREE.Color for security tier */ export declare function getSecurityTierThreeColor(tier: SecurityTier): THREE.Color; /** * Get color for auth level */ export declare function getAuthLevelColor(level: AuthLevel): string; /** * Get THREE.Color for auth level */ export declare function getAuthLevelThreeColor(level: AuthLevel): THREE.Color; /** * Get color for data operation */ export declare function getOperationColor(operation: DataOperation): string; /** * Get THREE.Color for data operation */ export declare function getOperationThreeColor(operation: DataOperation): THREE.Color; /** * Get color for cluster */ export declare function getClusterColor(cluster: string): string; /** * Get THREE.Color for cluster */ export declare function getClusterThreeColor(cluster: string): THREE.Color; /** * Generate a gradient texture for paths */ export declare function createGradientTexture(color1: string, color2: string, width?: number): THREE.DataTexture; /** * Calculate pulse color based on time */ export declare function getPulseColor(baseColor: string, time: number, frequency?: number, intensity?: number): string; /** * Calculate pulse opacity based on time */ export declare function getPulseOpacity(baseOpacity: number, time: number, frequency?: number, range?: number): number; /** * Get color for health score (0-100) */ export declare function getHealthScoreColor(score: number): string; /** * Get THREE.Color for health score */ export declare function getHealthScoreThreeColor(score: number): THREE.Color; //# sourceMappingURL=color-utils.d.ts.map