Horizon icon indicating copy to clipboard operation
Horizon copied to clipboard

Change background color to white doesn't show anything

Open NehaDhanwani opened this issue 9 years ago • 6 comments

I changed the colors of waveform from VerticesDataGenerator and put a background color white/transparent but it doesn't work. It works with gray or any other such variant. How to fix it?

NehaDhanwani avatar Sep 29 '16 11:09 NehaDhanwani

Hi, firstly, it's pretty hard to set transparent colour for GlSurfaceView. You need to use solid colour. Please, specify what are you trying to achieve.

Cool04ek avatar Sep 29 '16 12:09 Cool04ek

I want to display the waveform, same colors as it displays in the sample on Playstore but on white background

NehaDhanwani avatar Sep 29 '16 17:09 NehaDhanwani

You can use solid white color like #FFFFFF

Cool04ek avatar Sep 30 '16 11:09 Cool04ek

I did.. doesn't work, no matter what colors i give to waveform it doesn't work with white. Any other color is fine

NehaDhanwani avatar Sep 30 '16 15:09 NehaDhanwani

Any update on this? I am having the same issue. If you set the background to white or transparent it is not working. Transparent gives a black background since there are some values you need to update to allow for transparent (see here). Passing in #FFFFFF (white) hides the waves and the entire glSurfaceView is just white.

LeeWoo337 avatar Dec 05 '16 13:12 LeeWoo337

Heey, i woud like to implement Horizon on white background as well and maybe there is something like transparency of wave colors in horizon library ? It looks like it. Where can i change it ?

magicster avatar Jan 15 '18 23:01 magicster