Class ConicalGradientTexture
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Inherited Members
Namespace: RGB.NET.Presets.Textures
Assembly: RGB.NET.Presets.dll
Syntax
public sealed class ConicalGradientTexture : AbstractGradientTexture, IBindable, INotifyPropertyChanged, ITexture
Constructors
| Edit this page View SourceConicalGradientTexture(Size, IGradient)
Initializes a new instance of the ConicalGradientTexture class.
Declaration
public ConicalGradientTexture(Size size, IGradient gradient)
Parameters
Type | Name | Description |
---|---|---|
Size | size | The size of the texture. |
IGradient | gradient | The RGB.NET.Presets.Gradients.IGradient drawn by this ConicalGradientTexture. |
ConicalGradientTexture(Size, IGradient, Point)
Initializes a new instance of the ConicalGradientTexture class.
Declaration
public ConicalGradientTexture(Size size, IGradient gradient, Point center)
Parameters
Type | Name | Description |
---|---|---|
Size | size | The size of the texture. |
IGradient | gradient | The RGB.NET.Presets.Gradients.IGradient drawn by this ConicalGradientTexture. |
Point | center | The center Point (as percentage in the range [0..1]). |
ConicalGradientTexture(Size, IGradient, Point, float)
Initializes a new instance of the ConicalGradientTexture class.
Declaration
public ConicalGradientTexture(Size size, IGradient gradient, Point center, float origin)
Parameters
Type | Name | Description |
---|---|---|
Size | size | The size of the texture. |
IGradient | gradient | The RGB.NET.Presets.Gradients.IGradient drawn by this ConicalGradientTexture. |
Point | center | The center Point (as percentage in the range [0..1]). |
float | origin | The origin (radian-angle) the gradient is drawn to. |
Properties
| Edit this page View SourceCenter
Gets or sets the center Point (as percentage in the range [0..1]) of the IGradient drawn by this ConicalGradientTexture. (default: 0.5, 0.5)
Declaration
public Point Center { get; set; }
Property Value
Type | Description |
---|---|
Point |
Origin
Gets or sets the origin (radian-angle) this ConicalGradientTexture is drawn to. (default: -π/2)
Declaration
public float Origin { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceGetColor(in Point)
Gets the color at the specified location of the texture.
Declaration
protected override Color GetColor(in Point point)
Parameters
Type | Name | Description |
---|---|---|
Point | point | The location to get the color from. |
Returns
Type | Description |
---|---|
Color | The color at the specified location. |