Radial gradient fill style

Log-in or register.

Radial gradient fill style

rsrc/radial-fill.png image RADIAL is a fill style that fills a shape with a radial gradient (value equals distance from center). The gradient is using currently selected foreground and background colors.

Scripting interface

RADIAL can be used from scripts and has the following arguments.

  • gradient (optional) - at least two items each consisting of position in range 0-65535 followed by 4 numbers for RGBA channels in range 0-1. First item must be at position 0, last item must be at position 65535 and the sequence must be increasing.
  • mode - "ABSOLUTE", "RELSHAPE" (default) or "RELIMAGE".
  • center_X, center_Y, radius (optional if mode is not ABSOLUTE) - a central point and radius. In relative modes [0, 0] is upper right corner of shape or image, and [1, 1] is lower right corner of shape or image.


DrawTool.SetFillStyle("RADIAL", "ABSOLUTE,100,100,50");

Recent comments

user icon Anonymous
Select background
Vista & Win 7 icons