Gets the midpoint position of the specified gradient segment.
PROCEDURE GetGradientMidpointPosition(
gradient : HANDLE;
segmentIndex : INTEGER;
VAR position : REAL);def vs.GetGradientMidpointPosition(gradient, segmentIndex):
return position| Name | Type | Description |
|---|---|---|
| gradient | HANDLE | Gradient that contains the segment. |
| segmentIndex | INTEGER | Segment from which to get the data. |
| position | REAL | Position of the segment's midpoint relatvie to color spot immediately to left. |
GetGradientMidpointPosition(gradientHandle, 4, midpointPosition);midpointPosition = vs.GetGradientMidpointPosition(gradientHandle, 4)GetGradientMidpointPosition(gradient, 1, 1.0);import vs
# Gets the midpoint position of the specified gradient segment.
gradient = vs.FSActLayer() # handle to the first selected object on the active layer
segmentIndex = 1
result = vs.GetGradientMidpointPosition(gradient, segmentIndex)Availability: from VectorWorks10.0