textmode.js
Version:
Apply real-time ASCII conversion to any HTML canvas.
21 lines (20 loc) • 697 B
TypeScript
import { Shape } from "./Shape";
/**
* Line shape implementation that supports stroke rendering only (lines don't have fill).
* Uses the Line geometry class for efficient WebGL rendering.
*/
export declare class LineShape extends Shape {
private x2;
private y2;
constructor(gl: WebGLRenderingContext, x1: number, y1: number, x2: number, y2: number);
/**
* Lines don't support fill rendering - this method does nothing.
* Lines are rendered only with stroke properties.
*/
renderFill(): void;
/**
* Render the line with the specified stroke weight.
* @param weight The stroke thickness in pixels
*/
renderStroke(weight: number): void;
}