It stills doesn't work. I tried giving the canvas with the background
color, and setting in different ways the clear color and alpha and
forcing to clear.
On 11/06/2014 11:06, Huo, Halton wrote:
You could try to set the background style of you <canvas> element.
<canvas id="mycanvas" width="400" height="200"
style="background-color:#00FFFF"/>
Thanks,
Halton.
-----Original Message-----
From: Crosswalk-dev
[mailto:[email protected]] On Behalf Of
Xavier Gibert
Sent: Wednesday, June 11, 2014 3:59 PM
To: [email protected]
Subject: [Crosswalk-dev] browser background color
Hello,
I am trying to set a black background to the browser so it does not remain
white while loading the webGL model.
I tried with:
mXwalkView.setBackgroundResource(R.color.black);
But it has no effect.
I also set the background color to black in: the body, the render division
and the clear color of the render. The layout including the xwalkview is in
black too.
Now, the first time that the browser is loaded, it stills white until the model
shows up. If I reload the browser, then I just get a short flash in white and
quickly changes to black while loading the model. Is there a way to correct
this behavior? to have always black. Why the first time it loads it remains
white more time?
Thanks
--
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev
--
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev