Fixed code issues

This commit is contained in:
DarthAffe committed 2021-08-01 16:53:21 +02:00
1 parent 7c0a216ccd
commit 4dbeaf802a
25 files changed
+46 -33

No files matched your search

@@ -94,8 +94,8 @@ namespace RGB.NET.Presets.Textures.Gradients
/// <summary>
/// Clips the offset and ensures, that it is inside the bounds of the stop list.
/// </summary>
/// <param name="offset"></param>
/// <returns></returns>
/// <param name="offset">The offset to clip.</param>
/// <returns>The clipped offset.</returns>
protected float ClipOffset(float offset)
{
float max = GradientStops.Max(stop => stop.Offset);
@@ -111,7 +111,7 @@ namespace RGB.NET.Presets.Textures.Gradients
/// <param name="offset">The reference offset.</param>
/// <param name="orderedStops">The ordered list of <see cref="GradientStop"/> to choose from.</param>
/// <param name="wrap">Bool indicating if the gradient should be wrapped or not.</param>
/// <returns></returns>
/// <returns>The two <see cref="GradientStop"/>s encapsulating the specified offset.</returns>
protected virtual (GradientStop gsBefore, GradientStop gsAfter) GetEnclosingGradientStops(float offset, LinkedList<GradientStop> orderedStops, bool wrap)
{
LinkedList<GradientStop> gradientStops = new(orderedStops);