X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=examples%2Fgroovy%2FfeaturesCounter.groovy;fp=examples%2Fgroovy%2FfeaturesCounter.groovy;h=990800e24f6a0b3345c6e63e984e57cd9ebdbd06;hb=3459a8a691cb22508d7067f240b7254e588e77d3;hp=dc4c97c6a27b2b480103dee4f81d4492de4d8ee0;hpb=5b27f1062b2203c4c31702e205f4c78e1992063e;p=jalview.git diff --git a/examples/groovy/featuresCounter.groovy b/examples/groovy/featuresCounter.groovy index dc4c97c..990800e 100644 --- a/examples/groovy/featuresCounter.groovy +++ b/examples/groovy/featuresCounter.groovy @@ -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