editing custom shaders text file colour format?

widget
widget Global Mapper User
edited July 2008 in Technical Support
Hi Mike,

Could you please clarify the format of the colour coding in the custom shaders text file. I'd find it much easier constructing my colour palettes here directly, as I find the graphical interface a bit tedious & time consuming with having to repick each colour. I've tried to figure it out, but obviously its not RGB, LAB or CMYK? Maybe CIA 28bit code? ;-)

Thanks for your help,
Truely magnificent programme by the way!

Comments

  • global_mapper
    global_mapper Administrator
    edited July 2008
    Actually the color encoded in the custom_shaders.txt file is RGB. It is just a standard Windows 32-bit COLORREF as decimal. The layout in hex is 0x00bbggrr. So to get the number to use, just use Calculator to write your number in hex, then convert it to decimal.

    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • widget
    widget Global Mapper User
    edited July 2008
    aaahhh...of course...compuspeak...I should have known but just didnt think that far.
    Thanks Mike - on the ball as usual!
    cheers.