root/plot/Pybrary.Plot/ColorFactory.cs

Revision 746, 1.0 kB (checked in by mfenniak, 2 years ago)

--

Line 
1 using System;
2 using System.Collections.Generic;
3 using System.Drawing;
4
5 namespace Pybrary.Plot
6 {
7     public static class ColorFactory
8     {
9         public static IEnumerable<Color> StandardColors
10         {
11             get
12             {
13                 yield return Color.Red;
14                 yield return Color.Green;
15                 yield return Color.Blue;
16                 yield return Color.Purple;
17                 yield return Color.Cyan;
18                 yield return Color.LightGreen;
19                 yield return Color.LightCyan;
20                 yield return Color.Orange;
21                 yield return Color.Gray;
22                 yield return Color.Black;
23                 yield return Color.DarkRed;
24                 yield return Color.DarkGreen;
25                 // Never run out - just repeat ourselves.
26                 foreach (Color c in ColorFactory.StandardColors)
27                     yield return c;
28             }
29         }
30     }
31 }
Note: See TracBrowser for help on using the browser.