Class Brush
- Namespace
- WitShells.CanvasDrawTool
Defines brush settings and properties for drawing.
[Serializable]
public class Brush
- Inheritance
-
Brush
- Inherited Members
Fields
AntiAlias
public bool AntiAlias
Field Value
Color
public Color Color
Field Value
- Color
Hardness
public float Hardness
Field Value
Jitter
public float Jitter
Field Value
MinPressureOpacity
public float MinPressureOpacity
Field Value
MinPressureSize
public float MinPressureSize
Field Value
Name
public string Name
Field Value
Opacity
public float Opacity
Field Value
Scatter
public float Scatter
Field Value
Size
public int Size
Field Value
Spacing
public float Spacing
Field Value
Type
public Brush.BrushType Type
Field Value
UsePressureForOpacity
public bool UsePressureForOpacity
Field Value
UsePressureForSize
public bool UsePressureForSize
Field Value
Properties
Airbrush
Create an airbrush.
public static Brush Airbrush { get; }
Property Value
Default
Create a default brush.
public static Brush Default { get; }
Property Value
Eraser
Create an eraser brush.
public static Brush Eraser { get; }
Property Value
Pencil
Create a pencil brush.
public static Brush Pencil { get; }
Property Value
Soft
Create a soft brush.
public static Brush Soft { get; }
Property Value
Methods
Clone()
Clone this brush.
public Brush Clone()
Returns
GetAlphaAtDistance(float)
Get the brush alpha at a given distance from center (0-1).
public float GetAlphaAtDistance(float normalizedDistance)
Parameters
normalizedDistancefloat
Returns
GetEffectiveOpacity(float)
Get the effective opacity based on pressure.
public float GetEffectiveOpacity(float pressure)
Parameters
pressurefloat
Returns
GetEffectiveSize(float)
Get the effective size based on pressure.
public int GetEffectiveSize(float pressure)
Parameters
pressurefloat