来源:1-2 图片滑动组件介绍

344599112

2014-10-11 16:44

  lvT: _lang[_config.lang].lv_txt,  // 游戏结束时候显示的文字
        render: function(e, f) {          // render方法 
            var g = _config.color.lvMap[f] || _.last(_config.color.lvMap);
            this.d = 15 * Math.max(9 - g, 1); 
            this.d = f > 20 ? 10 : this.d; 
            this.d = f > 40 ? 8 : this.d; 
            this.d = f > 50 ? 5 : this.d;
            var h = Math.floor(Math.random() * e * e),
                i = this.getColor(255 - this.d),  //干扰色
                j = this.getLvColor(i[0]);        //目标颜色

                console.log(i);


写回答 关注

0回答

还没有人回答问题,可以看看其他问题

Web App下图片滑动组件的开发

本课程就是讲述从零开始,如何构建一个移动端的滑动组件

39562 学习 · 168 问题

查看课程

相似问题