build-in-public-bot
Version:
AI-powered CLI bot for automating build-in-public tweets with code screenshots
30 lines • 755 B
TypeScript
interface ThemeColors {
primary: string;
secondary: string;
accent: string;
background: string;
}
export declare class WasmRasterizer {
private width;
private height;
private pixels;
private themeColors?;
constructor(width: number, height: number, themeColors?: ThemeColors);
private hexToRgb;
private getThemedColor;
private setPixel;
renderWaveGradient(): Uint8Array;
renderMatrix(): Uint8Array;
renderHalftone(): Uint8Array;
renderDisruptor(): Uint8Array;
private dither;
private hash;
private noise;
private fbm;
private mix;
private smoothstep;
toPNG(): Promise<Buffer>;
getPixels(): Uint8Array;
}
export {};
//# sourceMappingURL=wasm-rasterizer.d.ts.map