Canvas is originally white

Just starting out? Need help? Post your questions and find answers here.
AZJIO
Posts: 73
Joined: Wed Dec 14, 2022 1:13 pm

Canvas is originally white

Post by AZJIO »

I have a black theme. When you start the program, Canvas is initially white. There is time to process the data before drawing it to the Canvas. Before the Canvas is filled it is white for one second. Is it possible to make Canvas initially black. I found style only sbCanvasBorder. I searched all the "background" tags (446 pieces) and there is no light color anywhere. At the moment I have done this:

Code: Select all

CanvasGadget(#cnv, 0, 70, s*7, s*6)
If StartDrawing(CanvasOutput(#cnv))
	Box(0, 0, s*7, s*6, $1e2021)
	StopDrawing()
EndIf
I tried to style it myself, but it didn't help.

Code: Select all

.dijitCanvas {
	background: #333;
	background-color: #333;
}
bembulak
Posts: 71
Joined: Wed Feb 26, 2014 9:53 am

Re: Canvas is originally white

Post by bembulak »

The Flag

Code: Select all

#PB_CANVAS_TRANSPARENT
doesn't help?
AZJIO
Posts: 73
Joined: Wed Dec 14, 2022 1:13 pm

Re: Canvas is originally white

Post by AZJIO »

helped.

It remains to eliminate the background flashing white immediately after the logo. It seems that all my global tags contain a black background color.

Code: Select all

html {background-color:#1e2021;}
body {background-color:#1e2021;}
Post Reply