splash screen background colour

the splash screen background colour is black how can i change this to white ? 

One option is to fill it with a colored rectangle on your main.lua

[lua]local bg = display.newRect( 0, 0, display.contentWidth, display.contentHeight )

bg:setFillColor( 255 )[/lua]

that only works when the games is loaded im talking about the splash screen :smiley:

i have made all the splash screen  sizes but on my galaxy s4 im still getting a black background  behind the image 

In Corona there is no such thing as splash screen. When app loads it’s managed by your os and then control of window content render is passed to application. On each render pass screen is empty (filled with black) and then Corona renders app’s content. There is no way to change it, you have to fill your screen with object of difference color (empty pixel = black pixel)

Hi @mmk.verheijden,

To clarify a bit on this, the “splash screen” is shown before Corona begins to render its objects, so the screen is black by default on most devices. Inherently, the splash screen concept is also iOS-only, and Apple designed them to be like a “preview of what your app will look like during menu/play”, no so much for showing a company/studio logo. There is a fair amount of confusion about this in the overall developer community. On Android, splash screens don’t exist, but in Corona we have made them work somewhat the same as iOS, by specifying the “Default” pngs in your project directory.

You can see a list of the suggested sizes here, under “Launch Images”:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

Hope this helps,

Brent

Oh, missed it somehow ;( Thought it was about loading app by os

By the way:

So basically, on the lowest level, the solution is still to create object which will cover empty pixels, it means with Default.png texture, isn’t it? There is no mean to change renderer default pixel color, right?

Hi Brent i have seen the page and created :

Default.png     320 × 480  

Default@2x.png     640 × 960    

Default-568h@2x.png     640 × 1136    

Default-Portrait.png     768 × 1004

Default-Portrait@2x.png     1536 × 2008        

Default-Landscape.png     1024 × 748

Default-Landscape@2x.png     2048 × 1496

but im still getting black bars at the top and bottom of my image in the s4

you could create the images bigger

also using Brent’s explanation about android use of splash could it be a config.lua issue

One option is to fill it with a colored rectangle on your main.lua

[lua]local bg = display.newRect( 0, 0, display.contentWidth, display.contentHeight )

bg:setFillColor( 255 )[/lua]

that only works when the games is loaded im talking about the splash screen :smiley:

i have made all the splash screen  sizes but on my galaxy s4 im still getting a black background  behind the image 

In Corona there is no such thing as splash screen. When app loads it’s managed by your os and then control of window content render is passed to application. On each render pass screen is empty (filled with black) and then Corona renders app’s content. There is no way to change it, you have to fill your screen with object of difference color (empty pixel = black pixel)

Hi @mmk.verheijden,

To clarify a bit on this, the “splash screen” is shown before Corona begins to render its objects, so the screen is black by default on most devices. Inherently, the splash screen concept is also iOS-only, and Apple designed them to be like a “preview of what your app will look like during menu/play”, no so much for showing a company/studio logo. There is a fair amount of confusion about this in the overall developer community. On Android, splash screens don’t exist, but in Corona we have made them work somewhat the same as iOS, by specifying the “Default” pngs in your project directory.

You can see a list of the suggested sizes here, under “Launch Images”:

http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

Hope this helps,

Brent

Oh, missed it somehow ;( Thought it was about loading app by os

By the way:

So basically, on the lowest level, the solution is still to create object which will cover empty pixels, it means with Default.png texture, isn’t it? There is no mean to change renderer default pixel color, right?

Hi Brent i have seen the page and created :

Default.png     320 × 480  

Default@2x.png     640 × 960    

Default-568h@2x.png     640 × 1136    

Default-Portrait.png     768 × 1004

Default-Portrait@2x.png     1536 × 2008        

Default-Landscape.png     1024 × 748

Default-Landscape@2x.png     2048 × 1496

but im still getting black bars at the top and bottom of my image in the s4

you could create the images bigger

also using Brent’s explanation about android use of splash could it be a config.lua issue