Name
GetFillStyle -- get current fill style (V7.1)
Synopsis
style[, t] = GetFillStyle()
Function
This function returns the current fill style set using SetFillStyle(). The return value style is set to either #FILLNONE, #FILLCOLOR, #FILLGRADIENT, or #FILLTEXTURE. See SetFillStyle for details.

If style is #FILLNONE, GetFillStyle() will also return a table with the following fields:

Thickness:
The outline thickness in pixels.

If style is #FILLGRADIENT, the return table will contain the following fields:

Type:
Gradient type. This will be either #LINEAR, #CONICAL, or #RADIAL.

StartColor:
Gradient start color.

EndColor:
Gradient end color.

Angle:
Gradient angle. Only supported for types #LINEAR and #CONICAL.

CenterX, CenterY:
Gradient center point. Only supported for types #RADIAL and #CONICAL.

Balance:
Gradient balance point. Only supported for #CONICAL.

Border:
Gradient border. Only supported for #RADIAL.

Colors:
If the gradient uses more than two colors, this field will contain a table with all those colors and their stop points.

See CreateGradientBGPic for more information on gradients.

If style is #FILLTEXTURE, the return table will contain the following fields:

Brush:
Identifier of the brush used for texturing.

X, Y:
Pixel offset inside the brush to use as a starting offset for texturing.

See SetFillStyle for more information on fill styles.

Inputs
none

Results
style
the current fill style
t
optional: table containing additional style information (see above)

Show TOC