Browse Source

red color bug

Former-commit-id: bdf9e89a9d1a4661af086bdc5b7c8e1fe7e2c76f
Alec Jacobson 11 years ago
parent
commit
d016d6faad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/igl/jet.cpp

+ 1 - 1
include/igl/jet.cpp

@@ -94,7 +94,7 @@ IGL_INLINE void igl::jet(const T x_in, T & r, T & g, T & b)
     b = 0;
   }else
   {
-    r = (bone-(x-7./8.)/(1.-7./8.)*0.5);
+    r = (rone-(x-7./8.)/(1.-7./8.)*0.5);
     g = 0;
     b = 0;
   }