Thread Tools Display Modes
04/06/18, 12:16 PM   #1
nightdreaming
Join Date: Feb 2018
Posts: 8
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
  Reply With Quote
04/06/18, 12:28 PM   #2
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by nightdreaming View Post
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.
  Reply With Quote
04/06/18, 10:37 PM   #3
nightdreaming
Join Date: Feb 2018
Posts: 8
Ah, that would be why then! Thanks.

Do you know how many decimal places are supported? 0.1, 0.001, 0.0001?
  Reply With Quote
04/06/18, 10:47 PM   #4
nightdreaming
Join Date: Feb 2018
Posts: 8
Don't worry, I figured it out - two decimal places.

Thanks for your help
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » SetCentreColor(r,g,b,a) granularity

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off