-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShiftColor.cs
More file actions
26 lines (25 loc) · 740 Bytes
/
ShiftColor.cs
File metadata and controls
26 lines (25 loc) · 740 Bytes
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
using System.Drawing;
namespace ColorHelper
{
/// <summary>
/// a shift color is made out of 3 colors and can shift a third color around in color space
/// </summary>
public struct ShiftColor
{
public ShiftColor()
{
Red_channel = RandomColor.Next();
Blue_channel = RandomColor.Next();
Green_channel = RandomColor.Next();
}
public ShiftColor(Color red, Color green, Color blue)
{
Red_channel = red;
Blue_channel = green;
Green_channel = blue;
}
public Color Red_channel { get; set; }
public Color Blue_channel { get; set; }
public Color Green_channel { get; set; }
}
}