You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ See a complete example at [example/index.js](example/index.js).
69
69
70
70
-`regl` a Regl instance to be used for rendering.
71
71
-`background` background color of the scatterplot.
72
-
-`backgroundImage` background image for the scatterplot. This must be a [regl texture object](https://github.com/regl-project/regl/blob/gh-pages/API.md#textures).
72
+
-`backgroundImage` background image for the scatterplot. This must be a [regl texture object](https://github.com/regl-project/regl/blob/gh-pages/API.md#textures) and can be created with [`createTextureFromUrl`](#const-texture--createTextureFromUrlregl-url-isCrossOrigin).
73
73
-`canvas` canvas element.
74
74
-`colors` colormap.
75
75
-`pointSize` size of the points.
@@ -92,7 +92,7 @@ See a complete example at [example/index.js](example/index.js).
92
92
93
93
**Returns:** a new [Regl texture](https://github.com/regl-project/regl/blob/gh-pages/API.md#textures) from a remote image.
94
94
95
-
**regl:** the Regl instance associated to your scatterplot instance. Either use [`createRegl()`](#const-regl--createreglcanvas) or `scatterplot.regl`;
95
+
**regl:** the Regl instance **associated to your scatterplot instance**. Either use [`createRegl()`](#const-regl--createreglcanvas) or `scatterplot.regl`. Important, if you use `createRegl()` make sure to pass the created regl instance into the scatterplot constructor as well!
96
96
97
97
**url:** the URL to an image.
98
98
@@ -188,7 +188,7 @@ The version number of the scatterplot.
188
188
the background with CSS! `background` is used when drawing the
189
189
outline of selected points to simulate the padded border only.
190
190
191
-
- The background image must be a Regl texture function. To easily set a remote
191
+
- The background image must be a Regl texture. To easily set a remote
192
192
image as the background please use [`createTextureFromUrl`](#const-texture--createTextureFromUrlregl-url-isCrossOrigin).
193
193
194
194
- The scatterplot stores 4 colors per color representing 4 states, representing:
0 commit comments