开始做推币机

This commit is contained in:
rucky
2022-02-17 18:50:20 +08:00
parent 08fafbb06e
commit f9c501a0f9
30 changed files with 4639 additions and 93 deletions

View File

@@ -0,0 +1,26 @@
import base64Str from './pathCodes'
/*create mask*/
class maskCreater {
constructor(pname, type, param, debug) {
let mask = new createjs.Shape();
if (type == 'code')
mask.graphics.p(base64Str[pname]);
if (type == 'func')
// ;(new Function('',base64Str[pname]))();
// eval(base64Str[pname])
base64Str[pname](mask)
if (param)
mask.setTransform(...param)
// console.log(mask)
return mask;
}
}
module.exports = maskCreater;