0.0.13 • Published 9 years ago

three-component v0.0.13

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

How to

$ npm install three-component --save
import ThreeComponent from 'three-component'

class App extends ThreeComponent {

    constructor( args ) {
        super( args )
        
        this.init();
    }

    init() {
        this.onFrame();
    }

    onFrame() {
        requestAnimationFrame( this.onFrame.bind(this) );

        super.render();
    }

};

new App({
    selector: "#container",
    transparent: true,
    color: 0x0000ff,
    alpha: 0.4,
});
0.0.13

9 years ago

0.0.12

9 years ago

0.0.1

9 years ago