Expand description
WindMouse: A Rust implementation of the WindMouse algorithm
This module provides a WindMouse struct and associated methods to generate realistic mouse movement paths. The algorithm simulates mouse movements with consideration for gravity, wind, and randomness to create more human-like cursor trajectories.
§Dependencies
-
rand = “0.9.0-alpha.2” We’re using the updated syntax for future compatibility with Rust 2024. Unfortunately this requires the 0.9.0 Alpha.
-
thiserror = “1.0.63” For custom error handling.
§Example
use windmouse::{WindMouse, Coordinate};
let wind_mouse = WindMouse::new_default();
let start = Coordinate::new(0.0, 0.0);
let end = Coordinate::new(100.0, 100.0);
let points = wind_mouse.generate_points(start, end);
Structs§
- Coordinate
- Represents a 2D coordinate with floating-point precision
- Wind
Mouse - WindMouse struct containing parameters for the mouse movement algorithm