createColor method


Converts a color name, or an RGB value represented as a string of hexadecimal digits, to a java.awt.Color object.

Syntax

Color = ScriptHelper.createColor(name)

Applies to

ScriptHelper object.

Parameters

name
String. The name of a color, or an RGB value represented as a string of hexadecimal digits.

Return value

Color. A Color object, or null if the name cannot be translated.

See also

ScriptHelper applet