This cat needs to see a vet right away. The yellow pigment you are seeing is an excess of bilirubin and indicative of liver issues.
If the cat is not eating, then hepatic lipidosis (a.k.a. fatty liver disease) is certainly a possibility. This is a reversible condition, but only if caught early.
Please, please get this kitty to the vet ASAP!