// ReSharper disable UnusedMember.Global using System; using System.Drawing; using CUE.NET.Helper; namespace CUE.NET.Brushes { //TODO DarthAffe 30.09.2015: Like this the brush seems kinda useless. Think about making it cool. /// /// Represents a brush drawing random colors. /// public class RandomColorBrush : AbstractBrush { #region Properties & Fields private Random _random = new Random(); #endregion #region Methods /// /// Gets a random color. /// /// This value isn't used. /// This value isn't used. /// A random color. public override Color GetColorAtPoint(RectangleF rectangle, PointF point) { return FinalizeColor(ColorHelper.ColorFromHSV((float)_random.NextDouble() * 360f, 1, 1)); } #endregion } }