Table of Contents

Struct Paint

Namespace
Lime.NanoVG
Assembly
Lime.dll
public struct Paint
Inherited Members

Constructors

Paint(Color4)

public Paint(Color4 color)

Parameters

color Color4

Fields

Extent

public Vector2 Extent

Field Value

Vector2

Feather

public float Feather

Field Value

float

Image

public int Image

Field Value

int

InnerColor

public Color4 InnerColor

Field Value

Color4

OuterColor

public Color4 OuterColor

Field Value

Color4

Radius

public float Radius

Field Value

float

Transform

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