Linear gradient fill style

rsrc/linear-fill.png image LINEAR is a fill style that fills a shape with a linear gradient. The pattern is using currently selected foreground and background colors.

The starting and ending points are visualized by control handles and they can be moved in the raster editor. The relative distance to color mapping is controlled by a function defined in the fill style configuration. It is possible to enable automatic repositioning of the control handles according to bounds of the drawn shape.

Scripting interface

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

Example

DrawTool.SetFillStyle("LINEAR", "0,0,0,0,1,65535,1,1,1,1,ABSOLUTE,0,0,100,100");

speech bubble iconRecent comments

user icon