impellers 0.4.1

Bindings to Flutter's 2D vector graphics renderer
Documentation
use impellers::*;

mod common;

fn main() {
    let framework = common::SdlGlImpellerFrameWork::new();
    // if you want to do any initialization before event loop,
    // this is the place for that.
    let dl = {
        let mut builder = DisplayListBuilder::new(None);
        let mut paint = Paint::default();
        paint.set_color(Color::BLACK); // clear with black first
        builder.draw_paint(&paint);
        paint.set_color(Color::ACID_GREEN);
        paint.set_draw_style(DrawStyle::Stroke);
        paint.set_stroke_width(15.0);
        let blur_filter = MaskFilter::new_blur(BlurStyle::Normal, 4.0);
        paint.set_mask_filter(&blur_filter);

        builder.draw_rect(
            &Rect::new(Point::new(100.0, 100.0), Size::new(250.0, 250.0)),
            &paint,
        );
        builder.build().unwrap()
    };
    framework.enter_event_loop(Some(dl), None);
}