amaran-light-cli
Version:
Command line tool for controlling Aputure Amaran lights via WebSocket to a local Amaran desktop app.
13 lines • 608 B
TypeScript
export type CctLuxMap = Record<number, number>;
/**
* Parses a string in the format "CCT:LUX,CCT:LUX" into a map.
* Example: "2700:8000,5600:10000" -> { 2700: 8000, 5600: 10000 }
*/
export declare function parseMaxLuxMap(input: string): CctLuxMap | null;
/**
* Interpolates the max lux for a specific CCT using a map of calibration points.
* Uses linear interpolation between the two closest points.
* Clamps to the nearest boundary if outside the range.
*/
export declare function interpolateMaxLux(cct: number, map: CctLuxMap | Record<string, number>): number;
//# sourceMappingURL=mathUtil.d.ts.map