// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. namespace SixLabors.ImageSharp.Processing { /// /// Modes to repeat a gradient. /// public enum GradientRepetitionMode { /// /// don't repeat, keep the color of start and end beyond those points stable. /// None, /// /// Repeat the gradient. /// If it's a black-white gradient, with Repeat it will be Black->{gray}->White|Black->{gray}->White|... /// Repeat, /// /// Reflect the gradient. /// Similar to , but each other repetition uses inverse order of s. /// Used on a Black-White gradient, Reflect leads to Black->{gray}->White->{gray}->White... /// Reflect, /// /// With DontFill a gradient does not touch any pixel beyond it's borders. /// For the this is beyond the orthogonal through start and end, /// TODO For the cref="PolygonalGradientBrush" it's outside the polygon, /// For and it's beyond 1.0. /// DontFill } }