1.0.0 • Published 9 months ago

universe-bg v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 months ago

universe-bg

a simple universe bg plugin build with three.js

demo

http://html5beta.com/apps/universe-bg/

install

npm i universe-bg

Use

import UniverseBg from 'universe-bg'

const inst = new UniverseBg({
  id: ''
  className:  '',
  starSize: 0.1,
  shootingStarSize: 0.2,
  starCount: 10000,
  shootingStarCount: 30,
  starDistance: 100,
  shootingStarDistance: 50,
  starColor: 0xffffff,
  shootingStarColor: 0xffffff,
  bgColor: 0x000000
})

Could use cdn

<script src='//www.unpkg.com/three@0.155.0/build/three.min.js'></script>
<script src='//unpkg.com/universe-bg/dist/universe-bg.min.js'></script>

LICENCE

MIT

1.0.0

9 months ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

8 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.11

9 years ago

0.0.8

9 years ago

0.0.6

9 years ago