C Program:
int main() { int width = 640; for (x = 0; x < width; x++) { zx = 1500 * (x - (width>>1)) / (width>>1); }