Replace RGB() to constants and change bg flash animation process