mirror of
https://github.com/pyalot/webgl-heatmap.git
synced 2025-12-08 20:13:00 +00:00
update documentation
This commit is contained in:
parent
ec6dcf3036
commit
eb909fd1a4
10
readme.md
10
readme.md
@ -46,6 +46,16 @@ Add a data point.
|
||||
heatmap.addPoint(x, y, size, intensity);
|
||||
```
|
||||
|
||||
Add a list of data points.
|
||||
|
||||
* x and y relative to the canvas in pixels
|
||||
* size in pixels (radius)
|
||||
* intensity between 0 and 1
|
||||
|
||||
```javascript
|
||||
heatmap.addPoints([{x:x, y:y, size:size, intensity:intensity}]);
|
||||
```
|
||||
|
||||
Draw queued data points:
|
||||
|
||||
```javascript
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user