Code formatting; convert ColorAttr to an enum; convert some array parameters to varargs.