ColorPalette.AddFirst (gb.form)

Sub AddFirst ( Color As Integer )

Insert the Color color at the beginning of the palette.

If the color was already present, it is moved at the beginning of the list.

If there is more than 32 colors in the palette, the surplus colors are removed.