<a-sphere>

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

The sphere primitive creates a spherical or polyhedron shapes. It wraps an entity that prescribes the geometry component with its geometric primitive set to sphere.

Example

<a-sphere color="yellow" radius="5"></a-sphere>

Attributes

Note that the sphere primitive inherits common mesh attributes.

Attribute Component Mapping Default Value
radius 0.85 geometry.radius
segments-height 18 geometry.segmentsHeight
segments-width 36 geometry.segmentsWidth