aframe-line-component

1.0.1 • Public • Published

aframe-line-component

Version License

A Line component for A-Frame.

For A-Frame.

line example

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');

Package Sidebar

Install

npm i aframe-line-component

Weekly Downloads

4

Version

1.0.1

License

MIT

Last publish

Collaborators

  • fernandojsg