-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathColorManager.cs
48 lines (45 loc) · 1.06 KB
/
ColorManager.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System.Drawing;
namespace SmartLogger
{
public class ColorManager
{
int _nextColor = 0;
public ColorManager()
{
}
public Color NextColor()
{
Color result;
result = defaultLogColors[_nextColor];
_nextColor++;
if (_nextColor >= defaultLogColors.Length)
{
_nextColor = 0;
}
return result;
}
public static Color[] defaultLogColors =
{
Color.SeaShell,
Color.PowderBlue,
Color.LemonChiffon,
Color.Gainsboro,
Color.DarkSeaGreen,
Color.Plum,
Color.Bisque,
Color.PaleGreen,
Color.LightCoral,
Color.Honeydew,
Color.DodgerBlue,
Color.DarkSlateBlue,
Color.SlateGray,
Color.Aqua,
Color.DarkKhaki,
Color.Chocolate,
Color.Orange,
Color.Pink,
Color.IndianRed,
Color.Olive
};
}
}