Gorgon
Show / Hide Table of Contents

Class GorgonGlyphPathGradientBrush

A brush that paints the font glyphs using a gradient that follows a specific path.

Inheritance
object
GorgonGlyphBrush
GorgonGlyphPathGradientBrush
Implements
IGorgonCloneable<GorgonGlyphBrush>
IEquatable<GorgonGlyphBrush>
Inherited Members
GorgonGlyphBrush.GetHashCode()
GorgonGlyphBrush.Equals(object)
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Graphics.Fonts
Assembly: Gorgon.Graphics.Fonts.dll
Syntax
public class GorgonGlyphPathGradientBrush : GorgonGlyphBrush, IGorgonCloneable<GorgonGlyphBrush>, IEquatable<GorgonGlyphBrush>
Remarks

This allows glyphs to be drawn using multiple colors that fade into one another.

Constructors

| Edit this page View Source

GorgonGlyphPathGradientBrush()

Initializes a new instance of the GorgonGlyphPathGradientBrush class.

Declaration
public GorgonGlyphPathGradientBrush()
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush

Properties

| Edit this page View Source

BlendFactors

Property to return the list of blending factors for the gradient falloff.

Declaration
public IList<float> BlendFactors { get; }
Property Value
Type Description
IList<float>
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush
| Edit this page View Source

BlendPositions

Property to return the list of blending positions for the gradient falloff.

Declaration
public IList<float> BlendPositions { get; }
Property Value
Type Description
IList<float>
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush
| Edit this page View Source

BrushType

Property to return the type of brush.

Declaration
public override GlyphBrushType BrushType { get; }
Property Value
Type Description
GlyphBrushType
Overrides
GorgonGlyphBrush.BrushType
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush
| Edit this page View Source

CenterColor

Property to set or return the color of the center point in the gradient.

Declaration
public GorgonColor CenterColor { get; set; }
Property Value
Type Description
GorgonColor
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush
| Edit this page View Source

CenterPoint

Property to set or return the center point position in the gradient.

Declaration
public Vector2 CenterPoint { get; set; }
Property Value
Type Description
Vector2
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush
| Edit this page View Source

FocusScales

Property to set or return the focus point for the gradient falloff.

Declaration
public Vector2 FocusScales { get; set; }
Property Value
Type Description
Vector2
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush
| Edit this page View Source

Interpolation

Property to return the interpolation values for the gradient.

Declaration
public IList<GorgonGlyphBrushInterpolator> Interpolation { get; }
Property Value
Type Description
IList<GorgonGlyphBrushInterpolator>
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush
| Edit this page View Source

Points

Property to return the points for the path to follow in the gradient fill.

Declaration
public IList<Vector2> Points { get; }
Property Value
Type Description
IList<Vector2>
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush
| Edit this page View Source

SurroundColors

Property to set or return the surrounding colors for the gradient path.

Declaration
public IList<GorgonColor> SurroundColors { get; }
Property Value
Type Description
IList<GorgonColor>
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush
| Edit this page View Source

WrapMode

Property to set or return the wrapping mode for the gradient fill.

Declaration
public GlyphBrushWrapMode WrapMode { get; set; }
Property Value
Type Description
GlyphBrushWrapMode
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush

Methods

| Edit this page View Source

Clone()

Function to clone an object.

Declaration
public override GorgonGlyphBrush Clone()
Returns
Type Description
GorgonGlyphBrush

The cloned object.

Overrides
GorgonGlyphBrush.Clone()
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush
| Edit this page View Source

Equals(GorgonGlyphBrush)

Indicates whether the current object is equal to another object of the same type.

Declaration
public override bool Equals(GorgonGlyphBrush other)
Parameters
Type Name Description
GorgonGlyphBrush other

An object to compare with this object.

Returns
Type Description
bool true True true true (True in Visual Basic) if the current object is equal to the other parameter; otherwise, falseFalsefalsefalse (False in Visual Basic).
Overrides
GorgonGlyphBrush.Equals(GorgonGlyphBrush)
See Also
GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush

Implements

IGorgonCloneable<T>
IEquatable<T>

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)

See Also

GorgonGlyphSolidBrush
GorgonGlyphHatchBrush
GorgonGlyphLinearGradientBrush
GorgonGlyphTextureBrush
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author