public string Unleash(ArtisticString s) { foreach (var brush in _brushes) { brush.Unleash(s); } return(s); }
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); } }
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); }