universe


this plugin will draw simple universe in canvas with three.js.

webGL needed

@github

download

download from github

install

npm i universe-bg
#or
bower install universe-bg

how to use

reference it in html

<script src="three.min.js"></script>
<script src="universe.min.js"></script>

in js

var uni = new Universe()

//or with options
var uni = new Universe({
        size: 5 //star size
        ,id: null //id
        ,starNumber: 10000
        ,color: 0xffffff
        ,width: null
        ,height: null
        ,container: document.body
        ,map: null //star map such as THREE.ImageUtils.loadTexture( 'star.png' )
})