mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
xml comments
This commit is contained in:
@@ -27,5 +27,9 @@ public static partial class Application // Driver abstractions
|
||||
[SerializableConfigurationProperty (Scope = typeof (SettingsScope))]
|
||||
public static string ForceDriver { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Collection of sixel images to write out to screen when updating.
|
||||
/// Only add to this collection if you are sure terminal supports sixel format.
|
||||
/// </summary>
|
||||
public static List<SixelToRender> Sixel = new List<SixelToRender> ();
|
||||
}
|
||||
|
||||
@@ -55,6 +55,12 @@ public class ColorQuantizer
|
||||
Palette = PaletteBuildingAlgorithm.BuildPalette (allColors, MaxColors);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the closest color in <see cref="Palette"/> that matches <paramref name="toTranslate"/>
|
||||
/// based on the color comparison algorithm defined by <see cref="DistanceAlgorithm"/>
|
||||
/// </summary>
|
||||
/// <param name="toTranslate"></param>
|
||||
/// <returns></returns>
|
||||
public int GetNearestColor (Color toTranslate)
|
||||
{
|
||||
if (_nearestColorCache.TryGetValue (toTranslate, out int cachedAnswer))
|
||||
|
||||
@@ -23,6 +23,7 @@ public class PopularityPaletteWithThreshold : IPaletteBuilder
|
||||
_mergeThreshold = mergeThreshold; // Set the threshold for merging similar colors
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public List<Color> BuildPalette (List<Color> colors, int maxColors)
|
||||
{
|
||||
if (colors == null || colors.Count == 0 || maxColors <= 0)
|
||||
|
||||
Reference in New Issue
Block a user