function FlattenColor($c) { return Cartoonfy::RGB(Cartoonfy::R($c) >> 5 << 5, Cartoonfy::G($c) >> 5 << 5, Cartoonfy::B($c) >> 5 << 5); }