View Single Post
10-15-19, 08:29 AM   #8
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
Hmm are you saying that ..

If you changed these two lines from this :

frame_1.texture:SetColorTexture(0, 0.007, 0.257)
frame_2.texture:SetColorTexture(0, 0.100, 0.007)

to

frame_1.texture:SetColorTexture(0, 0.007, 0.257)
frame_2.texture:SetColorTexture(0, 0.141, 0.007)

that there is no visual difference ?

If so that is quite possible as there is only a slight change in the green coloring .. did you try a more drastic change to confirm that it changes if the difference between the numbers changed is more varied in its color equivalent ?

Using an online RGB picker the equivalent numbers in the 255 range are ..

0,0.007,0.257 = 0,0,0
0,0.141,0.007 = 0,0,0
0,0.100,0.007 = 0,0,0

Try the following number instead of 0.100 to see if there is a visual difference
0.294

It should show a dark green coloring value as it is slightly away from the black portion of the green color.

You would have a similar issue working close to the 1.0 value.. Say use 0.98 and 1.00 .. it looks like there should be a 0.02 color difference but converted to the 255 number range they result in 250 and 255 which are almost identical colors if the other numbers do not change at all between the two colors being changed.
__________________
  Reply With Quote