webglimpse
Version:
Webglimpse is a data visualization library for the web.
22 lines (21 loc) • 697 B
TypeScript
import { Axis2D, Axis1D } from './axis';
import { Texture } from '../texture';
import { Painter } from '../core';
export interface HeatmapPainterOptions {
blend?: boolean;
}
export interface HeatMapData {
array: Float32Array;
xSize: number;
ySize: number;
xMin: number;
xMax: number;
yMin: number;
yMax: number;
}
export declare let heatmap_VERTSHADER: string;
export declare let heatmap_FRAGSHADER: string;
/**
* Simple heatmap painter which displays a 2d matrix of static data
*/
export declare function newHeatmapPainter(axis: Axis2D, colorAxis: Axis1D, data: HeatMapData, colorTexture: Texture, options?: HeatmapPainterOptions): Painter;