If it's not starving to death, then it may be it was just napping.
My blue mandarin goes to sleep at night, and sometimes during the day she'll sleep in a dark place. When she sleeps, her colors fade dramatically and you would swear she looks dead!
BTW she is about 4 years old in my 29 and very fat and happy!