Horizontal Pixel Gap Method in rust.