Jump to content
  • Colour distance measurement for kit selection nonsensical


    scythian12
    • Files Uploaded: Screenshot Public Status: Open Screenshot:
     Share

    Description of issue

    So I play with a team with a bright red kit, and have three GK kits set up, an sage green one, a pink one and a sand / light golden coloured one. I play against Villareal in their bright yellow kit. Game decides all GK kits clash and generates a bright orange one.

    Now the colour distance of this generated orange kit is significantly smaller to both outfield kits than the original green home GK kit (see attached images, I used https://davidjohnstone.net/lch-lab-colour-gradient-picker). I believe it can also be seen quite clearly subjectively that these numbers (seen at "delta" in the top of the images) correspond fairly well to the subjective distances conceived. Why on earth does the game decide that it clashes and generates a kit that clashes more?

    Please SI, for the love of God, get a small bit of code that will convert your RGB values to CIELab, it is not complicated, I have one in C# for instance you could use, and then compare the colours in CIELab space, because that colourspace is adequate for this, RGB (or HSL or whatever you do) is NOT. And because and inadequate method of comparing colours is utilized ingame (otherwise it would not produce silly things like this), you will always end up with wrong kit combinations, which people -justly- complain about. It is not difficult.

    Just as an added bonus, you can use the L* (or lightness) channel of any CIELab pairing to check contrast. E. g. when evaluating kit choices, you could first always go for the greatest L* distance between home and away kit, that will help also people with different colourblindness issues. But it can also be used to check whether a background / foreground club colour combo has enough contrast for legibility, which topic there also seems to be a struggle with, given the draconic and unnecessary let's just make any text white or black approach for UI features using club colours, most notably match commentary boxes...

     

    Steps to reproduce

    1. Take a team in a home kit in rgb(248,48,72) + GK 1 kit rgb(104,136,104) + GK 2 kit rgb(248,120,168) + GK 3 kit rgb(216,200,136)
    2. Play them against an away team in a plain kit rgb(248,248,56)
    3. See the game generate a home kit with ~ rgb (248, 128, 0), which is subjectively and objectively closer to both kits' colours than the original GK 1 kit...
     Share


    User Feedback

    Recommended Comments

    scythian12

    Posted

    Incidentally, the sand coloured GK kit is also further away from both kits, but there the distances are " swapped", e. g. it is further away from the yellow than the orange is from the red, and vice versa.

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...