Skip to content
Snippets Groups Projects
Commit 0fc45faa authored by Manuel Amesberger's avatar Manuel Amesberger
Browse files

fixed logic issue with color gradient

parent b55cc9fe
No related branches found
No related tags found
No related merge requests found
......@@ -76,10 +76,11 @@
var b = 0;
var fullrange = (arrowMaxLength - arrowMinLength);
var vectorRangeonScale = (vectorLength - arrowMinLength);
if(fullrange==0){ percentile = 100}
else{
var percentile = (vectorLength/fullrange)*100;
var percentile = (vectorLength/arrowMaxLength)*100;
}
if(percentile < 50){
r = 255;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment