Exemplo n.º 1
0
        protected override void Unleash(ArtisticString coloredString, int index, int length)
        {
            var rainbowSize = _fixedRainbowSize ?? (_nrOfRainbows.HasValue ? (length / _nrOfRainbows) : length);
            var rainbow     = new Rainbow(rainbowSize.Value, _start).Colors.GetEnumerator();

            for (int i = index; i < index + length; i++)
            {
                rainbow.MoveNext();
                coloredString.PaintYourself(i, 1, rainbow.Current);
            }
        }
Exemplo n.º 2
0
 protected override void Unleash(ArtisticString coloredString, int index, int length)
 {
     coloredString.PaintYourself(index, length, Paint);
 }
 public void Unleash(ArtisticString coloredString)
 {
     coloredString.PaintYourself(0, coloredString.Value.Length, Paint);
 }