Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.1 KB

SetPrefRGB.md

File metadata and controls

51 lines (41 loc) · 1.1 KB

SetPrefRGB

Description

Procedure SetPrefRGB return the RGB color components of the specified preference item. The color must be specified using the RGB components of the desired color. The RGB values are in the range of 0 - 65535.

PROCEDURE SetPrefRGB(
				prefIndex : INTEGER;
				colorRV   : LONGINT;
				colorGV   : LONGINT;
				colorBV   : LONGINT);
def vs.SetPrefRGB(prefIndex, colorRV, colorGV, colorBV):
    return None

Parameters

Name Type Description
prefIndex INTEGER
colorRV LONGINT The RGB color component (red).
colorGV LONGINT The RGB color component (green).
colorBV LONGINT The RGB color component (blue).

Examples

SetPrefRGB(1, 2, 3, 10);
import vs

# Procedure SetPrefRGB return the RGB color components of the specified
# preference item.
prefIndex = 1
colorRV = 5
colorGV = 5
colorBV = 5

vs.SetPrefRGB(prefIndex, colorRV, colorGV, colorBV)

See Also

GetPrefRGB

Version

Availability: from Vectorworks14.0

Category