SetColorTexture strange behaviour
hi folks!
!please! why in this two examples one working well seconds goese wrong two frames will have different colors like expected Code:
frame_1.texture:SetColorTexture(0, 0.007, 0.257) Code:
frame_1.texture:SetColorTexture(0, 0.007, 0.257) https://wow.gamepedia.com/API_Texture_SetColorTexture tell that RGB can be Number (0.0 to 1.0) but then why it work well in some cases some not. is it possible to set there 0.1111 without errors ? duhh... client BfA (28153) x64 Oct 16 2018 |
Please post all of your code
|
Quote:
Code:
local EventFrame = CreateFrame("Frame") |
And where in your code are you coloring your textures?
|
regard API SetColorTexture() is coloring. it does but sometimes wrong. that is why i made this post.
|
Quote:
|
Quote:
Code:
print(1) -- 2 Code:
local EventFrame = CreateFrame("Frame") |
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. |
All times are GMT -6. The time now is 03:32 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI