ambient-cbg-ts
Version:
A React.js webpage backgrounds created using the HTML5 Canvas API and jwagner's Simplex Noise library
24 lines (23 loc) • 804 B
TypeScript
/// <reference types="react" />
import CanvasBackground, { CanvasBackgroundProps } from "./CanvasBackground";
export interface PipelineProps extends CanvasBackgroundProps {
backgroundColor?: string;
}
declare class Pipeline extends CanvasBackground<PipelineProps> {
protected pipeProps: Float32Array | null;
static defaultProps: {
backgroundColor: string;
styles: import("react").CSSProperties;
};
constructor(props: any);
init(): void;
draw(): void;
initPipes(): void;
initPipe(i: number): void;
updatePipes(): void;
updatePipe(i: number): void;
drawPipe(x: number, y: number, life: number, ttl: number, width: number, hue: number): void;
checkBounds(x: number, y: number): void;
renderPipeline(): void;
}
export default Pipeline;