1 /*! # The built-in rasterizers. 2 3 Plotters make a minimal backend ability assumption - which is drawing a pixel on 4 backend. And this is the rasterizer that utilize this minimal ability to build a 5 fully functioning backend. 6 7 */ 8 9 // TODO: ? operator is very slow. See issue #58 for details 10 macro_rules! check_result { 11 ($e:expr) => { 12 let result = $e; 13 if result.is_err() { 14 return result; 15 } 16 }; 17 } 18 19 mod line; 20 pub use line::draw_line; 21 22 mod rect; 23 pub use rect::draw_rect; 24 25 mod circle; 26 pub use circle::draw_circle; 27 28 mod polygon; 29 pub use polygon::fill_polygon; 30 31 mod path; 32 pub use path::polygonize; 33