amos-three
create this for own demo
just use npm
-
npm install --save amos-three
-
- create element with id
'app'
- create element with id
-
const _amosThree = require('amos-three');
-
- create
index.js
- create
function render(){
_amosThree.initWaves(document.getElementById('app'));// opts
enableAnimate();
}
-
render();
opts is like this
{
spriteCanvasMaterial:{
color: 0x588c47
},
canvasRenderer:{
alpha: true,
clearColor: 0x1a1a1a,
clearColorAlpha: 0
}
};