Merge branch 'features/JAL-4071_visibleFeaturesCounter' into features/JAL-3417_sdppre...
[jalview.git] / examples / groovy / featuresCounter.groovy
index dc4c97c..990800e 100644 (file)
@@ -40,8 +40,8 @@ def annotator =
     [
      getNames: { ['Phosphorylation', 'Turn'] as String[] }, 
      getDescriptions:  { ['Count of Phosphorylation features', 'Count of Turn features'] as String[] },
-     getMinColour: { [0, 255, 255] as int[] }, // cyan
-     getMaxColour: { [0, 0, 255] as int[] }, // blue
+     getMinColour: {  i -> [0, 255, 255] as int[] }, // cyan
+     getMaxColour: { i -> [0, 0, 255] as int[] }, // blue
      count: 
          { res, feats -> 
                 int phos