예제 #1
0
 public string Unleash(ArtisticString s)
 {
     foreach (var brush in _brushes)
     {
         brush.Unleash(s);
     }
     return(s);
 }
예제 #2
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);
            }
        }
예제 #3
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);
 }