Skip to content

Commit

Permalink
use randomColor
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed May 11, 2024
1 parent 5591c5d commit c607dd6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions docs/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,7 @@ changeBackgroundColorButton.addEventListener("click", () => {
});

changeHighlightColorButton.addEventListener("click", () => {
const r = Math.round(Math.random() * 255);
const g = Math.round(Math.random() * 255);
const b = Math.round(Math.random() * 255);
const color = "rgb(" + r + "," + g + "," + b + ")";

signaturePad.highlightColor = color;
signaturePad.highlightColor = randomColor();
});

changeHighlightSizeButton.addEventListener("click", () => {
Expand Down

0 comments on commit c607dd6

Please sign in to comment.