Skip to content

Commit

Permalink
Merge pull request #1 from hackelite01/main-cf-autofix
Browse files Browse the repository at this point in the history
Apply fixes from CodeFactor
  • Loading branch information
hackelite01 authored Sep 19, 2022
2 parents 164d9fd + 9ee460d commit c87e724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions particles.js
Original file line number Diff line number Diff line change
Expand Up @@ -1459,11 +1459,11 @@ function hexToRgb(hex){
g: parseInt(result[2], 16),
b: parseInt(result[3], 16)
} : null;
};
}

function clamp(number, min, max) {
return Math.min(Math.max(number, min), max);
};
}

function isInArray(value, array) {
return array.indexOf(value) > -1;
Expand Down

0 comments on commit c87e724

Please sign in to comment.