From 842d655f3369c8dd8da1b15a5e66f33d3084165e Mon Sep 17 00:00:00 2001 From: Nic0Nic0Nii Date: Fri, 19 Nov 2021 06:53:29 +0000 Subject: [PATCH] Square Co-authored-by: sigonasr2 --- src/sig/SigKeeper.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/sig/SigKeeper.java b/src/sig/SigKeeper.java index 1ea4b2c..0004e9c 100644 --- a/src/sig/SigKeeper.java +++ b/src/sig/SigKeeper.java @@ -48,6 +48,16 @@ public class SigKeeper implements WindowFocusListener,KeyListener,MouseListener, GraphicsDevice screen = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice(); frame.setLocation((screen.getDisplayMode().getWidth()-SCREEN_WIDTH)/2,(screen.getDisplayMode().getHeight()-SCREEN_HEIGHT)/2); panel.init(); + for (int x=30;x<=100;x++) { + for (int y=30;y<=100;y++) { + if (y==30||y==100) { + panel.pixel[y*SCREEN_WIDTH+x]=0xFF; + } else + if (x==30||x==100){ + panel.pixel[y*SCREEN_WIDTH+x]=0xFF00; + } + } + } new Thread() { public void run(){