Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.2 KB

File metadata and controls

50 lines (41 loc) · 1.2 KB

SetGradientSpotColor

Description

Sets the spot color of the specified gradient segment.

PROCEDURE SetGradientSpotColor(
				gradient     : HANDLE;
				segmentIndex : INTEGER;
				red          : LONGINT;
				green        : LONGINT;
				blue         : LONGINT);
def vs.SetGradientSpotColor(gradient, segmentIndex, red, green, blue):
    return None

Parameters

Name Type Description
gradient HANDLE Gradient that contains the segment.
segmentIndex INTEGER Segment for which to set the data.
red LONGINT Red component of the color spot's color.
green LONGINT Green component of the color spot's color.
blue LONGINT Blue component of the color spot's color.

Examples

VectorScript

SetGradientSpotColor(gradientHandle, 4, 255, 255, 255);

Python

SetGradientSpotColor(gradient, 1, 2, 3, 10);
vs.SetGradientSpotColor(gradient, 1, red, green, blue)

Version

Availability: from VectorWorks10.0

Category