dojox/gfx/_gfxBidiSupport.defaultLinearGradient (version 1.10)

Summary

An object defining the default stylistic properties used for Linear Gradient fills. Linear gradients are drawn along a virtual line, which results in appearance of a rotated pattern in a given direction/orientation.

See the dojox/gfx/_gfxBidiSupport.defaultLinearGradient reference documentation for more information.

Property Summary

  • colorsAn array of colors at given offsets (from the start of the line).
  • typeSpecifies this object is a Linear Gradient, value 'linear'
  • x1The X coordinate of the start of the virtual line along which the gradient is drawn, default value 0.
  • x2The X coordinate of the end of the virtual line along which the gradient is drawn, default value 100.
  • y1The Y coordinate of the start of the virtual line along which the gradient is drawn, default value 0.
  • y2The Y coordinate of the end of the virtual line along which the gradient is drawn, default value 100.

Properties

colors
Defined by: dojox/gfx/_base

An array of colors at given offsets (from the start of the line). The start of the line is defined at offest 0 with the end of the line at offset 1. Default value, [{ offset: 0, color: 'black'},{offset: 1, color: 'white'}], is a gradient from black to white.

type
Defined by: dojox/gfx/_base

Specifies this object is a Linear Gradient, value 'linear'

x1
Defined by: dojox/gfx/_base

The X coordinate of the start of the virtual line along which the gradient is drawn, default value 0.

x2
Defined by: dojox/gfx/_base

The X coordinate of the end of the virtual line along which the gradient is drawn, default value 100.

y1
Defined by: dojox/gfx/_base

The Y coordinate of the start of the virtual line along which the gradient is drawn, default value 0.

y2
Defined by: dojox/gfx/_base

The Y coordinate of the end of the virtual line along which the gradient is drawn, default value 100.

Error in the documentation? Can’t find what you are looking for? Let us know!