Update ogbox.r

slightly more elegant toColor