Skip to content

Commit

Permalink
UI style updated
Browse files Browse the repository at this point in the history
  • Loading branch information
fuguoxue-nyu committed Oct 12, 2024
1 parent c3e2b3a commit 71ff2c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function setup() {
});

buttonGenerate = createButton("Go!");
buttonGenerate.position(windowWidth / 2 + 100, windowHeight - 115);
buttonGenerate.position(windowWidth / 2 + 95, windowHeight - 115);
buttonGenerate.mouseClicked(() => {
resetGrid();
});
Expand Down Expand Up @@ -151,7 +151,7 @@ function resetGrid() {

function UIPanel() {
fill("rgba(255, 255, 255, 0.25)");
rect(width / 2 - 300, height - 300, 600, 300);
rect(width / 2 - 300, height - 300, 600, 300, 20, 20, 0, 0);
fill(0);
textFont("monospace", 40);
textAlign(CENTER, CENTER);
Expand Down
6 changes: 4 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ canvas {
}

button {
padding: 10px;
border-color: transparent;
padding: 10px 20px;
text-align: center;
border: none;
background-color: aliceblue;
font-size: 20px;
font-family: monospace;
border-radius: 8px;
}

button:hover {
Expand Down

0 comments on commit 71ff2c7

Please sign in to comment.