Retrieves the color name of the specified color index.
FUNCTION GetColorName(ColorIndex : INTEGER): STRING;def vs.GetColorName(ColorIndex):
return STRING| Name | Type | Description |
|---|---|---|
| ColorIndex | INTEGER | The index of the color |
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))VS Functions: SetColorName
Availability: from Vectorworks 2011