UNPKG

warpvas

Version:

This JavaScript library enables fast and efficient image distortion transformations using Canvas 2D.

12 lines (11 loc) 288 B
### 7. Set Maximum Grid Subdivision Ratio ```typescript // Set sparse grid to improve performance const warpvas = new Warpvas(canvas); warpvas .setSplitUnit(0.2) .setRenderingConfig({ enableGridDisplay: true, gridColor: { r: 206, g: 102, b: 91, a: 1 } }); ```