convert brightness and colors to ints before passing to API