move GetColors to here from noflo/noflo-canvas#30