<a-plane>

Note: This documentation is for the old 0.2.0 version of A-Frame. Check out the documentation for the current 1.5.0 version

The plane primitive creates flat surfaces. It is an entity that prescribes the geometry with its geometric primitive set to plane.

Example

<a-scene>
<a-assets>
<img id="ground" src="ground.jpg">
</a-assets>

<!-- Basic plane. -->
<a-plane color="#CCC" height="20" width="20"></a-plane>

<!-- Textured plane. -->
<a-plane src="#ground" height="100" width="100"></a-plane>
</a-scene>

Attributes

Note that the plane primitive inherits common mesh attributes.

Attribute Component Mapping Default Value
height geometry.height 1
width geometry.width 1