Using modular offset function in Rust-Graphics