画板功能
let drow = new GraffitiJs('.drow',{ bg:"#253d39", color:"#e3e3e3", lineWidth:"10" });
刮刮乐
刮刮乐
let scratch = new GraffitiJs('.scratch',{ color:"#e3e3e3", percent:0.5, scratch:true, bg:"./images/bg.jpg", onComplete:()=>{ console.log('scratch') } });