Modding Help Opacity in hex code

Discussion in 'Starbound Modding' started by Ultimate sandvich, Aug 3, 2017.

  1. Ultimate sandvich

    Ultimate sandvich Scruffy Nerf-Herder

    So I came across something I don't really understand. In the "mughat.head" file, the colors all show "cc" behind the usual hex code, which gave me some issues when I tried to get the colors in paint.net.
    When removing the cc, I get the right color as shown in-game. But apparently the cc stands for the opacity of the color, although I have no idea what opacity level is the right one, since paint.net doesn't show any code for this (as far as I'm aware).

    Any suggestions on how to find this out? I need it to change the base colors of the image, so that if it's shown in a collection, people will see the default colors and not the copper/orange-ish from the files.


    Code:
    "colorOptions" : [
        // BEER YELLOW
        { "ffca8a" : "fcf27ecc", "e0975c" : "f1db1ccc", "a85636" : "eeb70fcc", "6f2919" : "a7d9fbcc" },
        // BLACK
        { "ffca8a" : "838383cc", "e0975c" : "555555cc", "a85636" : "383838cc", "6f2919" : "151515cc" },
        // GREY
        { "ffca8a" : "b5b5b5cc", "e0975c" : "808080cc", "a85636" : "555555cc", "6f2919" : "303030cc" },
        // WHITE
        { "ffca8a" : "e6e6e6cc", "e0975c" : "b6b6b6cc", "a85636" : "7b7b7bcc", "6f2919" : "373737cc" },
        // RED
        { "ffca8a" : "f4988ccc", "e0975c" : "d93a3acc", "a85636" : "932625cc", "6f2919" : "601119cc" },
        // ORANGE
        { "ffca8a" : "ffd495cc", "e0975c" : "ea9931cc", "a85636" : "af4e00cc", "6f2919" : "6e2900cc" },
        // YELLOW
        { "ffca8a" : "fcf27ecc", "e0975c" : "f1db1ccc", "a85636" : "eeb70fcc", "6f2919" : "642f00cc" },
        // GREEN
        { "ffca8a" : "b2e89dcc", "e0975c" : "51bd3bcc", "a85636" : "247824cc", "6f2919" : "144216cc" },
        // BLUE
        { "ffca8a" : "96cbe7cc", "e0975c" : "5588d4cc", "a85636" : "344495cc", "6f2919" : "1a1c51cc" },
        // PURPLE
        { "ffca8a" : "d29ce7cc", "e0975c" : "a451c4cc", "a85636" : "6a2284cc", "6f2919" : "320c40cc" },
        // PINK
        { "ffca8a" : "eab3dbcc", "e0975c" : "d35eaecc", "a85636" : "97276dcc", "6f2919" : "59163fcc" },
        // BROWN
        { "ffca8a" : "ccae7ccc", "e0975c" : "a47844cc", "a85636" : "754c23cc", "6f2919" : "472b13cc" }
      ]
     
  2. bk3k

    bk3k Oxygen Tank

    If you want no transparency, the code hex could be is FF

    00 - FF in hex works out to 0-255

    Just put the actual number you want into any calculator that can do hex conversion. Calculator.exe that comes with windows can do this if you click "view" and change to "programmer".
     
    Cyel likes this.
  3. Ultimate sandvich

    Ultimate sandvich Scruffy Nerf-Herder

    The problem is it had to be transparent, but I found a solution, thanks anyway!
     

Share This Page