Struct Paint
- Namespace
- Lime.NanoVG
- Assembly
- Lime.dll
- Inherited Members
-
Constructors
Paint(Color4)
public Paint(Color4 color)
Parameters
color
Color4
Fields
Extent
Field Value
- Vector2
Feather
Field Value
- float
Image
Field Value
- int
InnerColor
Field Value
- Color4
OuterColor
Field Value
- Color4
Radius
Field Value
- float
public Matrix32 Transform
Field Value
- Matrix32
Methods
BoxGradient(float, float, float, float, float, float, Color4, Color4)
public static Paint BoxGradient(float x, float y, float width, float height, float radius, float feather, Color4 innerColor, Color4 outerColor)
Parameters
x
float
y
float
width
float
height
float
radius
float
feather
float
innerColor
Color4
outerColor
Color4
Returns
- Paint
ImagePattern(float, float, float, float, float, int, float)
public static Paint ImagePattern(float cx, float cy, float w, float h, float angle, int image, float alpha)
Parameters
cx
float
cy
float
w
float
h
float
angle
float
image
int
alpha
float
Returns
- Paint
LinearGradient(float, float, float, float, Color4, Color4)
public static Paint LinearGradient(float startX, float startY, float endX, float endY, Color4 innerColor, Color4 outerColor)
Parameters
startX
float
startY
float
endX
float
endY
float
innerColor
Color4
outerColor
Color4
Returns
- Paint
RadialGradient(float, float, float, float, Color4, Color4)
public static Paint RadialGradient(float centerX, float centerY, float innerRadius, float outerRadius, Color4 innerColor, Color4 outerColor)
Parameters
centerX
float
centerY
float
innerRadius
float
outerRadius
float
innerColor
Color4
outerColor
Color4
Returns
- Paint
Operators
implicit operator Paint(Color4)
public static implicit operator Paint(Color4 color)
Parameters
color
Color4
Returns
- Paint