shamansir / elm-aframe / AFrame.Primitives

A-Frame primitives.

Geometric primitives

box : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The box primitive, formerly called , creates shapes such as boxes, cubes, or walls.

circle : List (Html.Attribute msg) -> List (Html msg) -> Html msg

colladaModel : List (Html.Attribute msg) -> List (Html msg) -> Html msg

cone : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The cone primitive creates a cone shape.

cursor : List (Html.Attribute msg) -> List (Html msg) -> Html msg

curvedimage : List (Html.Attribute msg) -> List (Html msg) -> Html msg

cylinder : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The cylinder primitive is an entity that prescribes the geometry with its geometric primitive set to cylinder. It can be used to create tubes and curved surfaces.

dodecahedron : List (Html.Attribute msg) -> List (Html msg) -> Html msg

gltfModel : List (Html.Attribute msg) -> List (Html msg) -> Html msg

icosahedron : List (Html.Attribute msg) -> List (Html msg) -> Html msg

link : List (Html.Attribute msg) -> List (Html msg) -> Html msg

objModel : List (Html.Attribute msg) -> List (Html msg) -> Html msg

octahedron : List (Html.Attribute msg) -> List (Html msg) -> Html msg

plane : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The plane primitive creates flat surfaces.

ring : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The ring primitive creates a ring or disc shape.

sound : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The sound primitive wraps a sound component

sphere : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The sphere primitive creates a spherical or polyhedron shapes.

tetrahedron : List (Html.Attribute msg) -> List (Html msg) -> Html msg

text : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The text primitive displays a text.

torusKnot : List (Html.Attribute msg) -> List (Html msg) -> Html msg

torus : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The torus primitive creates a donut or circular tube shape.

triangle : List (Html.Attribute msg) -> List (Html msg) -> Html msg

video : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The video primitive shows a video on a flat plane.

videosphere : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The videosphere primitive shows a video on a sphere.

Scene primitives

sky : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The sky primitive adds a background to a scene or display a 360-degree photo. It is an entity that prescribes a large sphere with the material mapped to the inside.

Asset management

assets : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The assets group is used to store assets that are pre-loaded

assetItem : List (Html.Attribute msg) -> List (Html msg) -> Html msg

An individual asset item. Asset items load an asset up front and can be referenced as a source later on. Use a src attribute to define what to load and specify an id which is used later on to use this asset as a source.

image : List (Html.Attribute msg) -> List (Html msg) -> Html msg

The image primitive shows an image on a flat plane.