Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SimStadt
3DClient4SimStadtAPI
Commits
8776f62e
Commit
8776f62e
authored
Dec 08, 2021
by
Turbil
Browse files
clean
parent
980a8b0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/js/shadowPalette.js
View file @
8776f62e
...
@@ -11,24 +11,7 @@ function getShadowPalette(inputShadowValue){
...
@@ -11,24 +11,7 @@ function getShadowPalette(inputShadowValue){
//console.log(inputShadowValue,"---",shadowPalette[index]);
//console.log(inputShadowValue,"---",shadowPalette[index]);
return
shadowPalette
[
index
];
return
shadowPalette
[
index
];
/* Can be ignored for now
if(!Number.isInteger(inputShadowValue)){
var index = Math.ceil((shadowPalette.length-1)*inputShadowValue);
//console.log(shadowPalette[index]);
return shadowPalette[index];
}
//edge case for 0 and 1
else{
//console.log(inputShadowValue);
if(inputShadowValue===0){
//console.log(inputShadowValue);
return shadowPalette[shadowPalette.length-1];
}else{
return shadowPalette[0];
}
//console.log("black",shadowPalette[shadowPalette.length-1]);
return shadowPalette[shadowPalette.length-1];
}*/
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment