ngx-acuw
Version:
Angular components using WEBGL (threejs)
25 lines (24 loc) • 558 B
TypeScript
import { Texture } from 'three';
import { Trail } from './trail';
export declare class TouchTexture {
private size;
private maxAge;
private radius;
private trail;
private canvas;
private ctx;
texture: Texture;
constructor();
/**
* Initializes the texture for the touch area
*/
initTexture(): void;
/**
* Updates the trail
*/
update(): void;
clear(): void;
addTouch(px: number, py: number): void;
drawTouch(point: Trail): void;
private easeOutSine;
}