PeachDrawing.Core
PeachDrawing.Core.ColorGlyphs
LinearColorGlyphPaint Class
A gradient along the line from Start to End, padded beyond both ends.
public sealed record LinearColorGlyphPaint : PeachDrawing.Core.ColorGlyphs.ColorGlyphPaint, System.IEquatable<PeachDrawing.Core.ColorGlyphs.LinearColorGlyphPaint>
Inheritance System.Object → ColorGlyphPaint → LinearColorGlyphPaint
Implements System.IEquatable<LinearColorGlyphPaint>
| Constructors | |
|---|---|
| LinearColorGlyphPaint(PaintPoint, PaintPoint, IReadOnlyList<PaintColor>, IReadOnlyList<double>) | A gradient along the line from Start to End, padded beyond both ends. |
| Properties | |
|---|---|
| Colors | the stop colors, in ascending Positions order |
| End | the point where the last stop is reached, in target space |
| Positions | each stop’s position along the line, 0 at Start and 1 at End |
| Start | the point where the first stop is reached, in target space |