Пример #1
0
 /// <summary>
 /// Get the Color of a specific position.
 /// </summary>
 /// <param name="position">The position to get the Color of.</param>
 /// <returns></returns>
 public Color GetColor(ColorPosition position) {
     return colors[(int)position];
 }
Пример #2
0
 /// <summary>
 /// Set the Color of a specific position.
 /// </summary>
 /// <param name="color">The new Color.</param>
 /// <param name="position">The position to change the Color on.</param>
 public void SetColor(Color color, ColorPosition position) {
     colors[(int)position] = color;
     NeedsUpdate = true;
 }
Пример #3
0
 /// <summary>
 /// Get the Color of a specific position.
 /// </summary>
 /// <param name="position">The position to get the Color of.</param>
 /// <returns></returns>
 public Color GetColor(ColorPosition position)
 {
     return(colors[(int)position]);
 }
Пример #4
0
 /// <summary>
 /// Set the Color of a specific position.
 /// </summary>
 /// <param name="color">The new Color.</param>
 /// <param name="position">The position to change the Color on.</param>
 public void SetColor(Color color, ColorPosition position)
 {
     colors[(int)position] = color;
     NeedsUpdate           = true;
 }
Пример #5
0
 public int Add(ColorPosition colorPosition)
 {
     return(base.Add(colorPosition));
 }