Playfield.yaml Color Code decryption

Discussion in 'Other Discussion' started by pluto, Feb 28, 2016.

  1. pluto

    pluto Ensign

    Joined:
    Jan 4, 2016
    Messages:
    9
    Likes Received:
    6
    Hi,

    im looking for some help with the color code parameters in a playfield.yaml file.

    The values do not look like normal hex style. Would be very happy about some help here.
    I just want to know how I can read out of this numbers what color is hidden behind it.

    example:
    "1,0.95,0.92" (white)

    "1,0.6,0" (orange)

    This is not hex or im wrong? I remember the color codes like 1-255 without dots. Please help =)
     
    #1
  2. LiftPizzas

    LiftPizzas Rear Admiral

    Joined:
    Sep 28, 2015
    Messages:
    1,444
    Likes Received:
    2,574
    It's just RGB values expressed as floats with a range of 0.0 to 1.0 instead of 0-255. (This is how Unity, OpenGL, and DirectX do colors, and IIRC several other graphics engines. My guess would be it speeds up the math if they don't have to do type conversion first.)

    Just divide/multiply by 255 to convert. :)
     
    #2
  3. stimdealer0001

    stimdealer0001 Captain

    Joined:
    Sep 14, 2015
    Messages:
    159
    Likes Received:
    149
    Somebody should put together a 'chart' with these 0-1 color codes for quick reference. Somebody...hmmm....
     
    #3
  4. LiftPizzas

    LiftPizzas Rear Admiral

    Joined:
    Sep 28, 2015
    Messages:
    1,444
    Likes Received:
    2,574
    Do you mean somebody other than all the people who already have? :p
     
    #4
    =TCR= Big_Red likes this.
  5. stimdealer0001

    stimdealer0001 Captain

    Joined:
    Sep 14, 2015
    Messages:
    159
    Likes Received:
    149
    That's interesting, because I've searched this forum and found nothing like that.
     
    #5
  6. LiftPizzas

    LiftPizzas Rear Admiral

    Joined:
    Sep 28, 2015
    Messages:
    1,444
    Likes Received:
    2,574
    Heh. No I mean on the internet in general. Here's a program you can use to pick or mix colors and get the result in any format you want:
    http://annystudio.com/software/colorpicker/#jcp-download
     
    #6
  7. Vexray

    Vexray Captain

    Joined:
    May 12, 2016
    Messages:
    188
    Likes Received:
    338
    #7
    Krenios likes this.
  8. stimdealer0001

    stimdealer0001 Captain

    Joined:
    Sep 14, 2015
    Messages:
    159
    Likes Received:
    149
    Sorry for the rant/frustration earlier! I downloaded that program and it seems to work pretty well. I'm going to adjust some colors on planets, etc. after the next major patch/wipe rolls out. Thanks again!
     
    #8
  9. rampatter

    rampatter Ensign

    Joined:
    Nov 8, 2017
    Messages:
    1
    Likes Received:
    0
    #9
  10. BlueLodge33

    BlueLodge33 Ensign

    Joined:
    Feb 5, 2018
    Messages:
    1
    Likes Received:
    0
    That is some weird color code.... i thought white was like FFFFFF
     
    #10

Share This Page