@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
46 lines • 1.16 kB
TypeScript
export class HarmonicDiffusionGrid {
/**
*
* @param {number[]|Float32Array|Float64Array} data
* @param {number} width
* @param {number} height
*/
constructor(data: number[] | Float32Array | Float64Array, width: number, height: number);
/**
*
* @type {number[]|Float32Array|Float64Array}
*/
data: number[] | Float32Array | Float64Array;
/**
*
* @type {number}
*/
width: number;
/**
*
* @type {number}
*/
height: number;
/**
* Maps which indices are assigned with values. Assigned cells retain their original values
* @type {BitSet}
*/
assignment: BitSet;
/**
* Clear all assignments
*/
reset(): void;
/**
*
* @param {number} x
* @param {number} y
* @param {number} value
*/
assign(x: number, y: number, value: number): void;
/**
* Diffuses assigned values across the grid, to achieve good diffusion large number of steps might be necessary
*/
step(): void;
}
import { BitSet } from "../../../../core/binary/BitSet.js";
//# sourceMappingURL=HarmonicDiffusionGrid.d.ts.map