adds generateCenter
removes dependency on processing's PVector