Replaces the color at the specified index with a new color.

 public Color SetColorAt(int index, int red, int green, int blue)
Public Function SetColorAt(ByVal index As Integer, ByVal red As Integer, ByVal green As Integer, ByVal blue As Integer) As Color

The 0-based index of the color to modify. Must be between 0 and 55.

The red component of the desired color. Must be between 0 and 255.

The green component of the desired color. Must be between 0 and 255.

The blue component of the desired color. Must be between 0 and 255.

A object representing the new color at the specified index in the palette.

pal.SetColorAt(4, 162, 221, 138);
pal.SetColorAt(4, 162, 221, 138)