1786006853
This commit is contained in:
@@ -26,10 +26,7 @@ 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),
|
||||
)
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user