Linear colour gradient paint server.
GradientLinear draws a colour ramp along the line defined by (X1, Y1) and (X2, Y2). The object must be registered with a VectorScene via VectorScene⇒AddDef() before it can be referenced by vector fill or stroke attributes.
Structure
The GradientLinear class consists of the following fields:
Access | Name | Type | Comment | | | X1 | UNIT | Initial X coordinate for the gradient. |
|---|
The (X1, Y1) field values define the starting coordinate for mapping linear gradients. Coordinate values can be expressed as units that are scaled to the target space.
|
| | X2 | UNIT | Final X coordinate for the gradient. |
|---|
The (X2, Y2) field values define the end coordinate for mapping linear gradients. Coordinate values can be expressed as units that are scaled to the target space.
|
| | XMLDef | STRING | Returns an SVG compliant XML string that describes the effect. |
| | Y1 | UNIT | Initial Y coordinate for the gradient. |
|---|
The (X1, Y1) field values define the starting coordinate for mapping linear gradients. Coordinate values can be expressed as units that are scaled to the target space.
|
| | Y2 | UNIT | Final Y coordinate for the gradient. |
|---|
The (X2, Y2) field values define the end coordinate for mapping linear gradients. Coordinate values can be expressed as units that are scaled to the target space.
|