Skip to content

Commit ce2e6ba

Browse files
committed
update primitive docs
1 parent 30b111c commit ce2e6ba

File tree

16 files changed

+141
-46
lines changed

16 files changed

+141
-46
lines changed

‎docs/primitives/a-box.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The box primitive, formerly called `<a-cube>`, creates shapes such as boxes, cub
2323

2424
## Attributes
2525

26-
Note that the box primitive inherits common [mesh attributes](./mesh-attributes.md).
26+
Note that the box primitive inherits [common attributes](./common-attributes.md).
2727

2828
| Attribute | Component Mapping | Default Value |
2929
|-----------|-------------------|---------------|

‎docs/primitives/a-circle.md‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: <a-circle>
3+
type: primitives
4+
layout: docs
5+
parent_section: primitives
6+
---
7+
8+
Flat circle.
9+
10+
## Example
11+
12+
```html
13+
<a-scene>
14+
<a-assets>
15+
<img id="texture" src="texture.jpg">
16+
</a-assets>
17+
18+
<!-- Basic circle. -->
19+
<a-circle color="#CCC" radius="2"></a-circle>
20+
21+
<!-- Textured circle parallel to ground. -->
22+
<a-circle src="#texture" rotation="-90 0 0"></a-circle>
23+
</a-scene>
24+
```
25+
26+
## Attributes
27+
28+
Note that the circle primitive inherits [common attributes](./common-attributes.md).
29+
30+
| Attribute | Component Mapping | Default Value |
31+
|--------------|----------------------|---------------|
32+
| radius | geometry.radius | 1 |
33+
| segments | geometry.segments | 32 |
34+
| theta-length | geometry.thetaLength | 360 |
35+
| theta-start | geometry.thetaStart | 0 |

‎docs/primitives/a-collada-model.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The COLLADA model primitive displays a 3D COLLADA model created from a 3D modeli
2727

2828
## Attribute
2929

30-
Note that the COLLADA model primitive inherits common [mesh attributes](./mesh-attributes.md).
30+
Note that the COLLADA model primitive inherits [common attributes](./common-attributes.md).
3131

3232
| Attribute | Component Mapping | Default Value |
3333
|-----------|-------------------|---------------|

‎docs/primitives/a-cone.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The cone primitive creates a cone shape. It is an entity that prescribes the [ge
2323

2424
## Attributes
2525

26-
Note that the cone primitive inherits common [mesh attributes](./mesh-attributes.md).
26+
Note that the cone primitive inherits [common attributes](./common-attributes.md).
2727

2828
| Attribute | Component Mapping | Default Value |
2929
|-----------------|-------------------------|---------------|

‎docs/primitives/a-curvedimage.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The curved image primitive creates images that bend around the user. Curved imag
2727

2828
## Attributes
2929

30-
Note that the curved image primitive inherits common [mesh attributes](./mesh-attributes.md).
30+
Note that the curved image primitive inherits [common attributes](./common-attributes.md).
3131

3232
| Attribute | Component Mapping | Default Value |
3333
|-----------------|-------------------------|-----------------|

‎docs/primitives/a-cylinder.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The cylinder primitive is versatile and can actually be used to create various s
2727

2828
## Attributes
2929

30-
Note that the cylinder primitive inherits common [mesh attributes](./mesh-attributes.md).
30+
Note that the cylinder primitive inherits [common attributes](./common-attributes.md).
3131

3232
| Attribute | Component Mapping | Default Value |
3333
|-----------------|-------------------------|---------------|

‎docs/primitives/a-image.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The image primitive displays an image on a flat plane. It is an entity that pres
2525

2626
## Attributes
2727

28-
Note that the image primitive inherits common [mesh attributes](./mesh-attributes.md).
28+
Note that the image primitive inherits [common attributes](./common-attributes.md).
2929

3030
| Attribute | Component Mapping | Default Value |
3131
|-----------|-------------------|---------------|

‎docs/primitives/a-plane.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The plane primitive creates flat surfaces. It is an entity that prescribes the [
2525

2626
## Attributes
2727

28-
Note that the plane primitive inherits common [mesh attributes](./mesh-attributes.md).
28+
Note that the plane primitive inherits [common attributes](./common-attributes.md).
2929

3030
| Attribute | Component Mapping | Default Value |
3131
|-----------|-------------------|---------------|

‎docs/primitives/a-ring.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The ring primitive creates a ring or disc shape. It is an entity that prescribes
2323

2424
## Attributes
2525

26-
Note that the ring primitive inherits common [mesh attributes](./mesh-attributes.md).
26+
Note that the ring primitive inherits [common attributes](./common-attributes.md).
2727

2828
| Attribute | Component Mapping |
2929
|----------------|------------------------|

‎docs/primitives/a-sky.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ A plain color as a background:
2323

2424
## Attributes
2525

26-
Note that the sky primitive inherits common [mesh attributes](./mesh-attributes.md).
26+
Note that the sky primitive inherits [common attributes](./common-attributes.md).
2727

2828
| Attribute | Component Mapping | Default Value |
2929
|-----------------|-------------------------|---------------|

0 commit comments

Comments
 (0)