Skip to content

Commit ce41afd

Browse files
committed
xml comments
1 parent 3156641 commit ce41afd

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

Terminal.Gui/Application/Application.Driver.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,9 @@ public static partial class Application // Driver abstractions
2727
[SerializableConfigurationProperty (Scope = typeof (SettingsScope))]
2828
public static string ForceDriver { get; set; } = string.Empty;
2929

30+
/// <summary>
31+
/// Collection of sixel images to write out to screen when updating.
32+
/// Only add to this collection if you are sure terminal supports sixel format.
33+
/// </summary>
3034
public static List<SixelToRender> Sixel = new List<SixelToRender> ();
3135
}

Terminal.Gui/Drawing/Quant/ColorQuantizer.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ public void BuildPalette (Color [,] pixels)
5555
Palette = PaletteBuildingAlgorithm.BuildPalette (allColors, MaxColors);
5656
}
5757

58+
/// <summary>
59+
/// Returns the closest color in <see cref="Palette"/> that matches <paramref name="toTranslate"/>
60+
/// based on the color comparison algorithm defined by <see cref="DistanceAlgorithm"/>
61+
/// </summary>
62+
/// <param name="toTranslate"></param>
63+
/// <returns></returns>
5864
public int GetNearestColor (Color toTranslate)
5965
{
6066
if (_nearestColorCache.TryGetValue (toTranslate, out int cachedAnswer))

Terminal.Gui/Drawing/Quant/PopularityPaletteWithThreshold.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public PopularityPaletteWithThreshold (IColorDistance colorDistance, double merg
2323
_mergeThreshold = mergeThreshold; // Set the threshold for merging similar colors
2424
}
2525

26+
/// <inheritdoc/>
2627
public List<Color> BuildPalette (List<Color> colors, int maxColors)
2728
{
2829
if (colors == null || colors.Count == 0 || maxColors <= 0)

0 commit comments

Comments
 (0)