Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html>

<head>
  <title> Geometry</title>

  <!--  --------- IMPORTED LIBRARIES  ------>
  

  <script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script>

</head>

<body>

  <a-scene> <!-- Creating scene -->


    

    <!--  --------- SKY  --------- -->

    <a-sky id="background-img" color="#EBEBEB"></a-sky>
      
 
   <!--  --------- GROUND  --------- -->

    <a-plane id="ground" color="#000000" position="0 0 0" rotation="-90 0 0" width="10" lenght="10"></a-plane>
    
    <!--  --------- SHAPES  --------- -->
    
     <!-- There's a few more of shapes you can use.
          I'll leave it here with the respective dodumentation links for you to check out:
<a-circle> : https://aframe.io/docs/0.6.0/primitives/a-circle.html

<a-triangle> : https://aframe.io/docs/0.6.0/primitives/a-triangle.html

<a-torus>: 
https://aframe.io/docs/0.6.0/primitives/a-torus.html

<a-torus-knot>: https://aframe.io/docs/0.6.0/primitives/a-torus-knot.html

      --> 
     <a-cylinder position="0 0.75 -0.25" radius="0.5" height="1.5" color="#FFC65D"></a-cylinder>
    <!--Since I want this to stand on top of the plane, I'll add half it's height to the plane height on the y axis of the position property
I wrote -0.25 on the z axis so I would move the cylinder a little further in the plane-->  
     
      <a-box position="-1 0.5 0.5" depth="0.5" height="0.5" width="0.5" color="#FFF65D"></a-box>
    
    <a-cone  position="1 0.5 0" color="tomato" radius-bottom="0.5" radius-top="0"></a-cone>
    <!--If the radius top is other than 0, you'll have a cone top cut by a plane, if it's 0 is a regular cone -->  
    
    <a-dodecahedron position="2 0.25 0"  color="#FF9FFF" radius="0.5"></a-dodecahedron>
    
    <a-octahedron position="-2.5 0.25 0" color="#FF926B" radius="0.45"></a-octahedron>
    
    <a-ring  position="-3.7 0.7 0" color="teal" radius-inner="0.25" radius-outer="0.7"></a-ring>
    <!--The position on the y axis of the ring is determined according to the bottom which is why the outer radius and y position have the same value

The same happens with the sphere-->
    
  <a-sphere  position="3.7 0.5 0"color="blue" radius="0.5"></a-sphere>
    
 <!--  --------- CAMERA AND CURSOR  --------- -->  
     
      
<a-camera  look-controls-enabled wasd-controls-enabled position="0 0 3"> 
   <!--The camera is a bit far from position 0 0 0 so you can view the full picture  -->  
  
    <a-cursor position="0 0 -3"
              geometry="primitive: ring; radiusOuter: 0.030; radiusInner: 0.020;" 
              material="color: #11d8c4; shader: flat"
              fuse="true" timeout="10">   
    </a-cursor>  

</a-camera> 
    
      

  </a-scene>
  <!-- Closing scene -->
  
</body>

</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console