Skip to content

Commit

Permalink
Update canvas_animated.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi1709 committed Dec 13, 2024
1 parent 97755e5 commit 96f3695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiments/Levi/Graphics/canvas_animated.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<body>

<header>
Click to let shapes appear! Drag them wherever you want! Click on them to change their color! Right click anywhere on the canvas to delete every shape!
Click to let shapes appear! Drag them wherever you want! Click on them to change their color! Right click anywhere on the canvas to delete every shape!<br>The button might even make them move...
</header>

<svg xmlns="http://www.w3.org/2000/svg"></svg>
Expand All @@ -58,7 +58,7 @@
let isAnimating = false; // Track whether animation mode is enabled
const shapes = []; // Array to store shapes and their properties

// Generate a random color in hexadecimal format
// Generate a random color hex
function randomColor() {
return `#${Math.floor(Math.random() * 16777215).toString(16)}`;
}
Expand Down

0 comments on commit 96f3695

Please sign in to comment.