Socket
Socket
Sign inDemoInstall

aframe-star-component

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    aframe-star-component

Star component for A-Frame.


Version published
Weekly downloads
1
Maintainers
1
Install size
22.5 kB
Created
Weekly downloads
 

Readme

Source

aframe-star-component

A Star component for A-Frame. The component produces a flat star in the x-z plane. The outer points are on the unit circle. The component comes with a <a-star\> primitive for convenience. Chrome requires aframe > 0.2.0 for this component to function properly.

Properties

PropertyDescriptionDefault Value
pointsnumber of points3
widthwidth of the arms0.3

Width should be larger than 0 and smaller than 1. A small width produces thin arms.

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.2.0/aframe.min.js"></script>
	<!-- for Chrome -->
  <!--script src="https://rawgit.com/aframevr/aframe/master/dist/aframe.min.js"></script-->
  <script src="https://rawgit.com/andreasplesch/aframe-faceset-component/master/dist/aframe-faceset-component.min.js"></script>
  <script src="https://rawgit.com/andreasplesch/aframe-star-component/master/dist/aframe-star-component.min.js"></script>
</head>

<body>
  <a-scene>
    <a-entity star="points: 23"></a-entity>
  </a-scene>
</body>
NPM Installation

Install via NPM:

npm install aframe-star-component

Then register and use.

require('aframe');
require('aframe-faceset-component');
require('aframe-star-component');

Keywords

FAQs

Last updated on 15 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc