UNPKG

modern-canvas

Version:

A JavaScript WebGL rendering engine. only the ESM.

9 lines (8 loc) 466 B
import type { LinearGradient, RadialGradient } from 'modern-idoc'; import type { Texture2DProperties } from './Texture2D'; import { Texture2D } from './Texture2D'; export declare class GradientTexture extends Texture2D { static test(value: string): boolean; static linearGradient(linearGradient: LinearGradient, width: number, height: number): Texture2DProperties; constructor(gradient: LinearGradient | RadialGradient, width: number, height: number); }