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();
|
||||
|
||||
Rectangle::new(
|
||||
Point::new(state.x, state.y),
|
||||
Size::new(ctx.screen.width(), 1),
|
||||
)
|
||||
.into_styled(PrimitiveStyle::with_fill((255, 0, 0, 255).into()))
|
||||
.draw(&mut ctx.screen)
|
||||
.ok();
|
||||
Rectangle::new(Point::new(state.x - 5, state.y - 5), Size::new(10, 10))
|
||||
.into_styled(PrimitiveStyle::with_fill((255, 0, 0, 255).into()))
|
||||
.draw(&mut ctx.screen)
|
||||
.ok();
|
||||
|
||||
true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user