case GRAD_MIDVER:
                $steps = ceil(abs($xr - $xl) / 2);
                $delta = $xr >= $xl ? 1 : -1;
                $this->GetColArray($from_color, $to_color, $steps, $colors, $this->numcolors);
                for ($x = $xl, $i = 0; $i < $steps; ++$i) {