All Projects → dbradleyfl → aframe-gridhelper

dbradleyfl / aframe-gridhelper

Licence: MIT license
A threejs grid helper as an aframe scene component.

Programming Languages

javascript
184084 projects - #8 most used programming language

aframe-gridhelper-component

A GridHelper component for A-Frame.

Properties

Property Description Default Value
size 5
divisions 10
colorCenterLine red
colorGrid black

Usage

Browser Installation

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.4.0/aframe.min.js"></script>
  <script src="https://rawgit.com/dbradleyfl/aframe-gridhelper/master/dist/aframe-gridhelper-component.min.js"></script>
</head>

<body>
  <a-scene gridhelper>
    <a-entity geometry="primitive: box" material="color: #C03546"></a-entity>
  </a-scene>
</body>

NPM Installation

Install via NPM:

npm install aframe-gridhelper-component

Then register and use.

require('aframe');
require('aframe-gridhelper-component');
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].