I run below code in cocos2d-js 3.15.1.
var drawNode = new cc.DrawNode();
drawNode.drawRect(cc.p(0,0), cc.p(400,400), cc.color(0,200,200), 0);
drawNode.setOpacity(30);
It works in Native but doesn’t work in web.
FadeIn and FadeOut of DrawNode have also same issue.
Is there any effective way? Thanks.