Skip to content

Commit

Permalink
Add a comment about sparse colour maps.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert D. Vincent committed Nov 18, 2016
1 parent cd539b1 commit 76afedd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/brainbrowser/lib/color-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@
if (line_length < 3) continue;

if (line_length > 4) {
/* Sparse colour map. The first column gives the
* label to associate with the colour, the remaining
* 4 columns give the RGBA values to associate with
* the label.
*/
ic = parseInt(color[0], 10);
ic *= 4;
line_length = 4;
Expand Down

0 comments on commit 76afedd

Please sign in to comment.