What does dimColor really do? (1 Viewer)

NoBugS

Portal Pro
August 22, 2009
91
54
Hoover, AL
Home Country
United States of America United States of America
Hi,

for my skineditor I wanted to know what dimColor really does. I know whats in the wiki but I would need to know how the resulting pixel-color gets calculated.
For example: I have an image completely filled with 0xFFFFFFFF (plain white) and I got a dimcolor of 0x80FF0000, how do I calculate the output-color?

Thanks!
:D
 

FredP42

MP Donator
  • Premium Supporter
  • May 2, 2009
    237
    243
    78
    Home Country
    France France
    For what I saw in the code (GUIControl.Render)

    Code:
            if (Dimmed)
            {
              color &= DimColor;
            }

    So it is a "logical and" for all bit.

    With your example:
    color = 0xFFFFFFFF (plain white)
    dimcolor = 0x80FF0000

    the results is 0x80FF0000
     

    Users who are viewing this thread

    Top Bottom