Struct Renderer

Source
pub struct Renderer;

Implementations§

Source§

impl Renderer

Source

pub fn line(x1: f64, y1: f64, x2: f64, y2: f64, options: &RoughOptions) -> OpSet

Source

pub fn linear_path( points: &Vec<Point<f64>>, close: bool, options: &RoughOptions, ) -> OpSet

Source

pub fn polygon(points: &Vec<Point<f64>>, options: &RoughOptions) -> OpSet

Source

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

Source

pub fn curve(points: &Vec<Point<f64>>, options: &RoughOptions) -> OpSet

Source

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

Source

pub fn generate_ellipse_params( width: f64, height: f64, options: &RoughOptions, ) -> EllipseParams

Source

pub fn ellipse_with_params( x: f64, y: f64, o: &RoughOptions, ellipse_params: &EllipseParams, ) -> EllipseResult

Source

pub fn arc( x: f64, y: f64, width: f64, height: f64, start: f64, stop: f64, closed: bool, rough_closure: bool, options: &RoughOptions, ) -> OpSet

Source

pub fn solid_fill_polygon( points: &Vec<Point<f64>>, options: &RoughOptions, ) -> OpSet

Source

pub fn pattern_fill_polygon( points: &Vec<Point<f64>>, options: &RoughOptions, ) -> OpSet

Source

pub fn pattern_fill_arc( x: f64, y: f64, width: f64, height: f64, start: f64, stop: f64, o: &RoughOptions, ) -> OpSet

Source

pub fn rand_offset(x: f64, o: &RoughOptions) -> f64

Source

pub fn rand_offset_with_range(min: f64, max: f64, o: &RoughOptions) -> f64

Source

pub fn double_line_fill_ops( x1: f64, y1: f64, x2: f64, y2: f64, o: &RoughOptions, ) -> Vec<Op>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Fr, To> IntoColor<To> for Fr
where To: FromColor<Fr>,

Source§

fn into_color(self) -> To

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V