white Line following of arduino robot on black background

The program given in the examples of Arduino IDE software is only for running the robot on a black line, I want to replace the black line with a white line and make the robot follow the white line with black background, is it possible to do so by altering the given program? If so, then how?

is it possible to do so by altering the given program? If so, then how?

Yes, it is possible.
You have to think about it, come up with a solution, and try it out.
If the solution you came up with doesn't work, you have to fix it.
If you have a specific problem, post it in the appropriate part of the forum, and someone may be able to help you with it.

If you want a ready-packaged solution, post in "Gigs and collaborations" and expect to provide an incentive.

As AWOL says, but a hint on how.

You are looking for a change from white to black to say you have left the line. The example is looking for black to white. Pretty simple to change.

Please note you are unlikely to get any further help unless you post further questions in the Projects or Programming section which is where this question should have been.

Weedpharma :o

I also strongly urge you not to post multiple copies of the same question in different parts of the forum.