fn convert_stroke_settings(stroke_settings: StrokeSettings) -> StrokeOptions {
        let mut stroke_options = StrokeOptions::default();

        stroke_options.line_width   = stroke_settings.line_width;
        stroke_options.end_cap      = match stroke_settings.cap {
            canvas::LineCap::Butt   => tessellation::LineCap::Butt,
            canvas::LineCap::Square => tessellation::LineCap::Square,
            canvas::LineCap::Round  => tessellation::LineCap::Round

        };
        stroke_options.start_cap    = stroke_options.end_cap;
        stroke_options.line_join    = match stroke_settings.join {
            canvas::LineJoin::Miter => tessellation::LineJoin::Miter,
            canvas::LineJoin::Bevel => tessellation::LineJoin::Bevel,
            canvas::LineJoin::Round => tessellation::LineJoin::Round
        };

        stroke_options
    }
///
/// Converts some stroke settings to Lyon stroke options
///
Converts some stroke settings to Lyon stroke options
Converts some stroke settings to Lyon stroke options
fn convert_stroke_settings(stroke_settings: StrokeSettings) -> StrokeOptions {
        let mut stroke_options = StrokeOptions::default();
        stroke_options.line_width   = stroke_settings.line_width;
        stroke_options.end_cap      = match stroke_settings.cap {
            canvas::LineCap::Butt   => tessellation::LineCap::Butt,
            canvas::LineCap::Square => tessellation::LineCap::Square,
            canvas::LineCap::Round  => tessellation::LineCap::Round
        };
        stroke_options.start_cap    = stroke_options.end_cap;
        stroke_options.line_join    = match stroke_settings.join {
            canvas::LineJoin::Miter => tessellation::LineJoin::Miter,
            canvas::LineJoin::Bevel => tessellation::LineJoin::Bevel,
            canvas::LineJoin::Round => tessellation::LineJoin::Round
        };
        stroke_options
    }
fn convert_stroke_settings ( stroke_settings : StrokeSettings ) -> StrokeOptions { let mut stroke_options = StrokeOptions :: default ( ) ; stroke_options . line_width = stroke_settings . line_width ; stroke_options . end_cap = match stroke_settings . cap { canvas :: LineCap :: Butt => tessellation :: LineCap :: Butt , canvas :: LineCap :: Square => tessellation :: LineCap :: Square , canvas :: LineCap :: Round => tessellation :: LineCap :: Round } ; stroke_options . start_cap = stroke_options . end_cap ; stroke_options . line_join = match stroke_settings . join { canvas :: LineJoin :: Miter => tessellation :: LineJoin :: Miter , canvas :: LineJoin :: Bevel => tessellation :: LineJoin :: Bevel , canvas :: LineJoin :: Round => tessellation :: LineJoin :: Round } ; stroke_options }
Converts some stroke settings to Lyon stroke options
Converts some stroke settings to Lyon stroke options
stroke_settings
StrokeSettings