Pixy(CMUcam5) robot Distance code
Try to play with this one:

int forwardSpeed = constrain(400 - (size/256), -100, 400);


By changing the value of 256 and 400, not at the same time though, you better use 2 potentiometer to change those values. That's a trial and error though, I hope this will give you an idea.