use graphicility::{Color, Config,};
fn main() {
let conf = Config::builder().with_title("Geometry").build();
graphicility::run_with(conf, |ctx| {
let g= ctx.graphics();
g.clear(Color::rgb(30, 30, 45));
g.line((320, 0), (320, 400), Color::rgba(255, 255, 255, 0.2));
g.line((0, 200), (640, 200), Color::rgba(255, 255, 255, 0.2));
g.rect((135, 260), (50, 50), Color::CYAN);
let center = (160, 100);
g.circle(center, 40, Color::RED);
g.circle(center, 30, Color::WHITE);
g.circle(center, 20, Color::RED);
g.circle(center, 10, Color::WHITE);
g.triangle(
(475, 50), (525, 120), (425, 120), Color::YELLOW
);
g.triangle(
(425, 250), (525, 310), (425, 310), Color::GREEN
);
g.text((220, 10), "Graphicility Shapes Demo", Color::WHITE);
});
}