Hi,
I am trying to add Opacity onto my canvas. Basically I am displaying a scene with a background that has Opacity. In my html5 I am display a background screen which has the Canvas in the center. I cannot figure out how to set the Opacity.
I have tested with
var canvas = document.getElementById(‘gameCanvas’);
var gl = canvas.getContext(“experimental-webgl”,
{premultipliedAlpha: false});
gl.clearColor(1, 0, 0, 0.5);
gl.clear(gl.COLOR_BUFFER_BIT);
In my index.html. This works and I have Opacity but as soon as cocos takes over I loose it. I have been hunting through the library code to figure out what I need to change but wondered if anyone else had already done this to save me some time.
Thanks