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
**Options:** is an object that accepts the following properties:
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) and can be created with [`createTextureFromUrl`](#const-texture--createTextureFromUrlregl-url-isCrossOrigin).
72
+
-`backgroundImage` background image for the scatterplot. This can either be a URL or a [regl texture object](https://github.com/regl-project/regl/blob/gh-pages/API.md#textures). The latter can be created with [`scatterplot.createTextureFromUrl`](#scatterplot.createTextureFromUrl).
73
73
-`canvas` canvas element.
74
74
-`colors` colormap.
75
75
-`pointSize` size of the points.
@@ -82,25 +82,19 @@ See a complete example at [example/index.js](example/index.js).
82
82
-`rotation` rotation of the camera around the target.
83
83
-`view` view matrix defining `target`, `distance`, and `rotation`. When given `target`, `distance`, and `rotation` are ignored.
**Returns:** a new [Regl texture](https://github.com/regl-project/regl/blob/gh-pages/API.md#textures) from a remote image.
94
-
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
-
97
-
**url:** the URL to an image.
98
-
99
-
**isCrossOrigin:** if `url` is pointing to another origin `isCrossOrigin` must be set to `true`.
93
+
_DEPRECATED! Use [`scatterplot.createTextureFromUrl()`](#scatterplot.createTextureFromUrl) instead._
**Returns:** a Promise that resolves to a [Regl texture](https://github.com/regl-project/regl/blob/gh-pages/API.md#textures) that can be used, for example, as the [background image](#).
0 commit comments