Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 897 Bytes

File metadata and controls

40 lines (31 loc) · 897 Bytes

SetGradientMidpointPosition

Description

Sets the midpoint position of the specified gradient segment.

PROCEDURE SetGradientMidpointPosition(
				gradient     : HANDLE;
				segmentIndex : INTEGER;
				position     : REAL);
def vs.SetGradientMidpointPosition(gradient, segmentIndex, position):
    return None

Parameters

Name Type Description
gradient HANDLE Gradient that contains the segment.
segmentIndex INTEGER Segment for which to set the data.
position REAL Position of the segment's midpoint relatvie to color spot immediately to left.

Examples

==== VectorScript ====

SetGradientMidpointPosition(gradientHandle, 4, 0.6);

==== Python ====

Version

Availability: from VectorWorks10.0

Category

  • Document Attributes