aframe-line-component
v1.0.1
Published
A Line component for A-Frame.
Downloads
44
Maintainers
Readme
aframe-line-component
A Line component for A-Frame.
For A-Frame.
API
| Property | Description | Default Value | | -------- | ----------- | ------------- | | start | Start line position | 0 0 0 | | end | End line position | 0 0 0 | | color | Line color | #fff | | opacity | Line opacity | 1 |
Installation
Browser
Install and use by directly including the browser files:
<head>
<title>My A-Frame Scene</title>
<script src="https://aframe.io/releases/0.5.0/aframe.min.js"></script>
<script src="https://unpkg.com/aframe-line-component/dist/aframe-line-component.min.js"></script>
</head>
<body>
<a-scene>
<a-entity line="start: 1 2 3; end: 4 5 6; color: #ff0"></a-entity>
</a-scene>
</body>
npm
Install via npm:
npm install aframe-line-component
Then require and use.
require('aframe');
require('aframe-line-component');