[]WebGL 绘制图形报错

问题是WebGLContext2D的fillRect报错
QQ截图20170216213224.png


代码如下:
Laya.init(1136, 640, WebGL );

var mask :Sprite = new Sprite();
mask.graphics.save();
mask.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height, 0xff0000 );
mask.graphics.restore();
mask.x = 0;
mask.y = 0;
Laya.stage.addChild( mask );

麻烦看下是什么问题。
 
已邀请:

cuixueying

赞同来自:

请修改0xFF0000为"#FF0000",这个参数是个string,而并非number

要回复问题请先

商务合作
商务合作