Hello. What I want is: the color should be transparent when creating the canvas.
var frame = new Frame({
scaling: scaling,
width: width,
height: height,
color: color,
outerColor: outerColor,
ready: ready,
assets: assets,
path: path,
progress: new Waiter(),
gpu:gpuVarmi
});
When I leave the color variable empty here, it still creates a color.
When I set the html style with #myCanvas{ opacity:0}
and write this code inside the
ready function,
document.getElementById("myCanvas").style.opacity=1
what I want happens. This time, the progress is not visible.
This video is the canvas background without opacity. When this canvas is created, it is blue and it is incompatible with the background I created with css. That's why I want it to be transparent at first.
Hahaha - we answered at the same time! I suspect that transparent defaults to false for performance reasons but you probably will not notice. Test and see.