UNPKG

@meganetaaan/mouse-follower

Version:

TypeScript library for creating animated sprites that smoothly follow mouse cursor or other targets using physics-based movement

28 lines 955 B
/** * Sprite utility functions - stateless operations for sprite handling */ /** * Load sprite image from URL */ export declare function loadSpriteImage(url: string): Promise<HTMLImageElement>; /** * Apply transparency to an image using color key */ export declare function applyTransparency(image: HTMLImageElement, transparentColor: string): HTMLImageElement; /** * Parse color string to RGB values */ export declare function parseColor(colorString: string): [number, number, number]; /** * Create wrapper element for sprite */ export declare function createWrapper(className?: string): HTMLDivElement; /** * Create sprite container element */ export declare function createSpriteContainer(width: number, height: number): HTMLDivElement; /** * Process sprite image with transparency */ export declare function processSpriteImage(url: string, transparentColor?: string): Promise<HTMLImageElement>; //# sourceMappingURL=sprite-utils.d.ts.map