An open API service indexing awesome lists of open source software.

https://github.com/timendus/three-dimensional-image

A Javascript implementation for showing anaglyph and interlaced 3D images from side-by-side source images
https://github.com/timendus/three-dimensional-image

Last synced: about 1 year ago
JSON representation

A Javascript implementation for showing anaglyph and interlaced 3D images from side-by-side source images

Awesome Lists containing this project

README

          

# 3D images in Javascript
A Javascript implementation for showing anaglyph and interlaced 3D images from side-by-side source images.

Create a 3D image from a specific image:
```javascript
image = new threeDimensionalImage(document.querySelector("img#my-3d-image"));
```

3D-ify all image elements with attribute `data-type='3d-sbs'`:
```javascript
var images = document.querySelectorAll("img[data-type='3d-sbs']");
Array.prototype.forEach.call(images, function(el, i){
new threeDimensionalImage(el);
});
```

To undo:
```javascript
image.dismiss();
```