Contrain the value of the brightness between 0 and 255