API Documentation > CorelDRAW > 2025-v26 > Color > IVGColor
Color.CorelScriptGetComponent method
Gets Corel SCRIPT values from a color object for use in Corel SCRIPT
Syntax:
Sub CorelScriptGetComponent(ByRef ColorModel As Long, ByRef V1 As Long, Optional ByRef V2 As Long = 0, Optional ByRef V3 As Long = 0, Optional ByRef V4 As Long = 0, Optional ByRef V5 As Long = 0, Optional ByRef V6 As Long = 0, Optional ByRef V7 As Long = 0)
Parameters:
Name Type Description
ColorModel
Long
V1
Long
V2
Long
Specifies the numeric variable that is assigned to the second color component of the selected color model.
V3
Long
Specifies the numeric variable that is assigned to the third color component of the selected color model.
V4
Long
Specifies the numeric variable that is assigned to the fourth color component of the selected color model.
V5
Long
Specifies the numeric variable that is assigned to the fifth color component of the selected color model.
V6
Long
Specifies the numeric variable that is assigned to the sixth color component of the selected color model.
V7
Long
Specifies the numeric variable that is assigned to the seventh color component of the selected color model.
Remarks:
The CorelScriptGetComponent method returns Corel SCRIPT values from a color object for use in Corel SCRIPT. A color is an effect applied to an object that alters the object's appearance by the way it reflects light. A color model is a system that defines the number and type of colors that make up an image and that is used to organize and define colors according to a set of basic properties that can be reproduced. Black-and-white, grayscale, RGB, CMYK, and paletted are examples of popular color modes.