emergency deabstraction

This commit is contained in:
Laetitia (O-01-67) 2023-04-03 11:10:24 -04:00 committed by GitHub
parent 4a585cf91b
commit a99d82f75b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -279,6 +279,11 @@
function bound(number,lowerBound,upperBound) {
return Math.min(upperBound,Math.max(lowerBound,number));
};
//Emergency color wrapper
rgbColorBound = function(color) {
return bound(color,0,255);
};
function addTwoNumbers(number1,number2) { //reducer
return number1 + number2