useserde::{Deserialize, Serialize};usecrate::Ratio;/// A structure representing the center of a gradient, defined by x and y ratios.
#[derive(Serialize, Deserialize, Clone, PartialEq, Debug)]pubstructCenter{/// The horizontal position, as a ratio of the gradient's width.
pubx: Ratio,
/// The vertical position, as a ratio of the gradient's height.
puby: Ratio,
}implCenter{/// Creates a new `Center` instance with the specified x and y ratios.
////// # Arguments
////// * `x` - The x ratio of the center.
/// * `y` - The y ratio of the center.
////// # Examples
////// ```
/// use typwire::{Center, Ratio};
////// let center = Center::new(Ratio::new(0.5), Ratio::new(0.5));
/// assert_eq!(center.x, Ratio::new(0.5));
/// assert_eq!(center.y, Ratio::new(0.5));
/// ```
pubconstfnnew(x: Ratio, y: Ratio)->Self{Self{ x, y }}}