I am trying to make a class with a method that will accept a single colour as an argument and return the closest colour to it from a predefined palette of colours.
I