Artemis.Utilities.Keyboard.KeyboardRectangle.CreateTilebleColors C# (CSharp) Method

CreateTilebleColors() private method

private CreateTilebleColors ( List sourceColors ) : List
sourceColors List
return List
        private List<Color> CreateTilebleColors(List<Color> sourceColors)
        {
            // Create a list using the original colors
            var tilebleColors = new List<Color>(sourceColors);
            // Add the original colors again
            tilebleColors.AddRange(sourceColors);
            // Add the first color, smoothing the transition
            tilebleColors.Add(sourceColors.FirstOrDefault());
            return tilebleColors;
        }
    }