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