Colors generation and proper rounding for tiles animation