I was looking in an addon to define bar colors (mainly for the default UI), and I was quite confused about the different numbers. In the same line of code, there are
two different number types used. Is this developer error, him taking a shortcut (ie laziness), and can I redo all of the numbers to the same format?
Here is a sample...
Code:
PowerBarColor["MANA"] = { r = 0/255, g = 0.6, b = 1 } -- r = 0/255, g = 150/255, b = 1900/255
PowerBarColor["ENERGY"] = { r = 1, g = 1, b = 35/255 }
I understand #/255. Looking at colors in Photoshop or MS Paint explains those. I do not however, understand the decimal number.