protected override MutableObject Mutate(MutableObject mutable)
        {
            foreach (var entry in ColorIndex.GetEntries(mutable))
            {
                ColorTarget.SetValue(
                    ColorPalette.ColorFromIndex(ColorIndex.GetValue(entry)),
                    entry);
            }

            return(mutable);
        }
Esempio n. 2
0
        protected override MutableObject Mutate(MutableObject mutable)
        {
            var groupId = GroupId.GetLastKeyValue(mutable);

            var index = DataShare.ContainsKey(groupId)
                ? DataShare[groupId]
                : 0;

            if (groupId != "")
            {
                DataShare[groupId] = index + 1;
            }

            ColorTarget.SetValue(ColorPalette.ColorFromIndex(index), mutable);

            return(mutable);
        }