@hiddentao/clockwork-engine
Version:
A TypeScript/PIXI.js game engine for deterministic, replayable games with built-in rendering
27 lines • 616 B
TypeScript
/**
* Color Utilities
*
* Shared functions for color conversion and manipulation.
*/
import type { Color } from "../types";
/**
* Convert RGB object to hex number
*
* @param rgb RGB color object
* @returns Hex color number
*/
export declare function rgbToHex(rgb: {
r: number;
g: number;
b: number;
}): number;
/**
* Normalize color to hex number
*
* Accepts either hex number or RGB object and returns hex number.
*
* @param color Color in either format
* @returns Hex color number
*/
export declare function normalizeColor(color: Color): number;
//# sourceMappingURL=colorUtils.d.ts.map