Ejemplo n.º 1
0
 /// <summary>
 /// Adds a palette to the palette set with the specified palette number.
 /// </summary>
 /// <param name="palette">The palette to add.</param>
 /// <param name="number">The palette number to use.</param>
 public void Add(Palette palette, in int number)
Ejemplo n.º 2
0
 /// <summary>
 /// Adds a palette to the palette set. The palette number is chosen to be the current highest palette number in the palette set incremented by one.
 /// </summary>
 /// <param name="palette"></param>
 public void Add(Palette palette)
 => this.Add(palette, this
             .PaletteEntries.Select(p => p.Number)
             .DefaultIfEmpty(-1)
             .Max() + 1
             );