Skip to content

Latest commit

 

History

History
48 lines (38 loc) · 905 Bytes

File metadata and controls

48 lines (38 loc) · 905 Bytes

GetColorName

Description

Retrieves the color name of the specified color index.

FUNCTION GetColorName(ColorIndex : INTEGER): STRING;
def vs.GetColorName(ColorIndex):
    return STRING

Parameters

Name Type Description
ColorIndex INTEGER The index of the color

Examples

	green:=65535;
	blue:=65535;
END;
RGBToColorIndexN(red, blue, green, gelIndex, TRUE);
IF GetColorName(gelIndex) <> colorList[i].colorSort THEN BEGIN
	boo:=SetColorName(gelIndex, colorList[i].colorSort);
END;
import vs

# Retrieves the color name of the specified color index.
ColorIndex = 1

name = vs.GetColorName(ColorIndex)
vs.Message('GetColorName returned: ' + str(name))

See Also

VS Functions: SetColorName

Version

Availability: from Vectorworks 2011

Category