Trait RenderHelper

Source
pub trait RenderHelper {
    // Required methods
    fn rand_offset(&self, x: f64, options: &RoughOptions) -> f64;
    fn rand_offset_with_range(
        &self,
        min: f64,
        max: f64,
        options: &RoughOptions,
    ) -> f64;
    fn ellipse(
        &self,
        x: f64,
        y: f64,
        width: f64,
        height: f64,
        options: &RoughOptions,
    ) -> OpSet;
    fn double_line_ops(
        &self,
        x1: f64,
        y1: f64,
        x2: f64,
        y2: f64,
        options: &RoughOptions,
    ) -> Vec<Op>;
}

Required Methods§

Source

fn rand_offset(&self, x: f64, options: &RoughOptions) -> f64

Source

fn rand_offset_with_range( &self, min: f64, max: f64, options: &RoughOptions, ) -> f64

Source

fn ellipse( &self, x: f64, y: f64, width: f64, height: f64, options: &RoughOptions, ) -> OpSet

Source

fn double_line_ops( &self, x1: f64, y1: f64, x2: f64, y2: f64, options: &RoughOptions, ) -> Vec<Op>

Implementors§