<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.

AttributeComponent MappingDefault Value
radius0.85geometry.radius
segments-height18geometry.segmentsHeight
segments-width36geometry.segmentsWidth