A-Frame master screenshot

In this example below you will see how to do a A-Frame master screenshot with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by fabricius, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright fabricius ©
  • HTML
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A-Frame master screenshot</title>
  <script src="https://rawgit.com/aframevr/aframe/master/dist/aframe-master.js"></script>
  
  
  
  
</head>

<body>

  <a-scene screenshot>
      <a-sphere position="0 1.25 -1" radius="1.25" color="#EF2D5E"></a-sphere>
      <a-box position="-1 0.5 1" rotation="0 45 0" width="1" height="1" depth="1"  color="#4CC3D9"></a-box>
      <a-cylinder position="1 0.75 1" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder>
      <a-plane rotation="-90 0 0" width="4" height="4" color="#7BC8A4"></a-plane>

      <a-sky color="#ECECEC"></a-sky>
      <a-entity position="0 0 3.8">
        <a-camera></a-camera>
      </a-entity>  
</a-scene>
  
  

</body>

</html>

Comments