ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Help/Support (https://www.esoui.com/forums/forumdisplay.php?f=164)
-   -   SetCentreColor(r,g,b,a) granularity (https://www.esoui.com/forums/showthread.php?t=7707)

nightdreaming 04/06/18 12:16 PM

SetCentreColor(r,g,b,a) granularity
 
Hi guys,

I am trying to set the backdrop of my window to SetCentreColor(2,0,0,1) but when I do this I am getting a bright red, it looks as if I have requested SetCentreColor(255,0,0,1).

Can anyone suggest why this might be?

Thanks

votan 04/06/18 12:28 PM

Quote:

Originally Posted by nightdreaming (Post 34319)
Hi guys,

I am trying to set the backdrop of my window to SetCentreColor(2,0,0,1) but when I do this I am getting a bright red, it looks as if I have requested SetCentreColor(255,0,0,1).

Can anyone suggest why this might be?

Thanks

The parameters scale from 0-1, not 0-255.

nightdreaming 04/06/18 10:37 PM

Ah, that would be why then! Thanks.

Do you know how many decimal places are supported? 0.1, 0.001, 0.0001?

nightdreaming 04/06/18 10:47 PM

Don't worry, I figured it out - two decimal places.

Thanks for your help


All times are GMT -6. The time now is 02:35 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI