ensure integer for led colors