Convert file image representations in R into JSON-formatted arrays
suitable for use as three.js textures. This function is automatically
invoked for images used in the
A character string file name referring to an image file, or referring to an image uri (see the examples).
JSON-formatted list with image, width, and height fields suitable for use as a three.js texture created with the base64texture function. The image field contains a base64 dataURI encoding of the image.
Due to browser
"same origin policy" security restrictions, loading textures
from a file system in three.js may lead to a security exception,
References to file locations work in Shiny apps, but not in stand-alone
texture function facilitates transfer of image
texture data from R into three.js textures. Binary image data are
encoded and inserted into three.js without using files as dataURIs.
The threejs project http://threejs.org. https://github.com/mrdoob/three.js/wiki/How-to-run-things-locally.
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.