1786006853
This commit is contained in:
11
src/main.rs
11
src/main.rs
@@ -26,13 +26,10 @@ fn main() {
|
|||||||
|
|
||||||
ctx.screen.clear((0, 0, 0, 255).into()).ok();
|
ctx.screen.clear((0, 0, 0, 255).into()).ok();
|
||||||
|
|
||||||
Rectangle::new(
|
Rectangle::new(Point::new(state.x - 5, state.y - 5), Size::new(10, 10))
|
||||||
Point::new(state.x, state.y),
|
.into_styled(PrimitiveStyle::with_fill((255, 0, 0, 255).into()))
|
||||||
Size::new(ctx.screen.width(), 1),
|
.draw(&mut ctx.screen)
|
||||||
)
|
.ok();
|
||||||
.into_styled(PrimitiveStyle::with_fill((255, 0, 0, 255).into()))
|
|
||||||
.draw(&mut ctx.screen)
|
|
||||||
.ok();
|
|
||||||
|
|
||||||
true
|
true
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user