@kya-os/cli
Version:
CLI for MCP-I setup and management
80 lines • 1.94 kB
TypeScript
/**
* Beams Effect
* Creates beams which travel over the canvas illuminating the characters
*/
import { BaseEffect } from "../types.js";
/**
* Configuration options for the Beams effect
*/
export interface BeamsEffectOptions {
/** Duration in milliseconds */
duration?: number;
/** Number of beams */
beamCount?: number;
/** Beam width */
beamWidth?: number;
/** Beam speed range */
beamSpeedRange?: [number, number];
/** Beam colors */
beamColors?: string[];
/** Illumination brightness multiplier */
illuminationBrightness?: number;
/** Base character color */
baseColor?: string;
}
/**
* Beams effect implementation
*/
export declare class BeamsEffect extends BaseEffect {
readonly name = "Beams";
readonly description = "Creates beams which travel over the canvas illuminating the characters";
private options;
private beams;
private animationFrameCount;
private totalFrames;
private nextBeamId;
private lastBeamSpawn;
private _isEffectComplete;
constructor(options?: BeamsEffectOptions);
/**
* Initialize the effect
*/
protected onInitialize(): void;
/**
* Render the next frame
*/
render(): Promise<string[]>;
/**
* Update beam positions and states
*/
private updateBeams;
/**
* Spawn a new beam
*/
private spawnBeam;
/**
* Get beam color based on its properties
*/
private getBeamColor;
/**
* Apply illumination to a base color
*/
private applyIllumination;
/**
* Get ANSI color code for a color
*/
private getColorCode;
/**
* Render fallback for when effects are disabled
*/
renderFallback(): string[];
/**
* Check if effect is complete
*/
isComplete(): boolean;
/**
* Reset the effect
*/
protected onReset(): void;
}
//# sourceMappingURL=beams.d.ts.map