From 76afedd3fd6fa4f600eaa4902801a76fcaf2b8ad Mon Sep 17 00:00:00 2001 From: "Robert D. Vincent" Date: Fri, 18 Nov 2016 09:57:44 -0500 Subject: [PATCH] Add a comment about sparse colour maps. --- src/brainbrowser/lib/color-map.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/brainbrowser/lib/color-map.js b/src/brainbrowser/lib/color-map.js index a79bc62e..9742e249 100644 --- a/src/brainbrowser/lib/color-map.js +++ b/src/brainbrowser/lib/color-map.js @@ -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;