pub struct RoughGenerator {
pub config: RoughConfig,
pub default_options: RoughOptions,
}
Fields§
§config: RoughConfig
§default_options: RoughOptions
Implementations§
Source§impl RoughGenerator
impl RoughGenerator
pub fn new(config: RoughConfig) -> Self
pub fn new_seed(&self) -> u64
pub fn line<'a>( &self, x1: f64, y1: f64, x2: f64, y2: f64, options: &'a RoughOptions, ) -> Drawable<'a>
pub fn rectangle<'a>( &self, x: f64, y: f64, width: f64, height: f64, options: &'a RoughOptions, ) -> Drawable<'a>
pub fn ellipse<'a>( &self, x: f64, y: f64, width: f64, height: f64, options: &'a RoughOptions, ) -> Drawable<'a>
pub fn circle<'a>( &self, x: f64, y: f64, diameter: f64, options: &'a RoughOptions, ) -> Drawable<'a>
pub fn linear_path<'a>( &self, points: &Vec<Point<f64>>, options: &'a RoughOptions, ) -> Drawable<'a>
pub fn arc<'a>( &self, x: f64, y: f64, width: f64, height: f64, start: f64, stop: f64, closed: bool, options: &'a RoughOptions, ) -> Drawable<'a>
pub fn curve<'a>( &self, points: &Vec<Point<f64>>, options: &'a RoughOptions, ) -> Drawable<'a>
pub fn polygon<'a>( &self, points: &Vec<Point<f64>>, options: &'a RoughOptions, ) -> Drawable<'a>
pub fn path<'a>(&self, d: &str, options: &'a RoughOptions) -> Drawable<'a>
pub fn ops_to_path(&self, drawing: &OpSet) -> String
pub fn to_paths(&self, drawable: Drawable<'_>) -> Vec<PathInfo>
pub fn fill_sketch(&self, drawing: &OpSet, options: &RoughOptions) -> PathInfo
Auto Trait Implementations§
impl Freeze for RoughGenerator
impl RefUnwindSafe for RoughGenerator
impl Send for RoughGenerator
impl Sync for RoughGenerator
impl Unpin for RoughGenerator
impl UnwindSafe for RoughGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more