Webセーフカラーを求める

■プログラム説明
 Webセーフカラーを求めるにはRGBカラーなどを設定した後にnearestWebColorのred, green, blueプロパティの値を読み出します。

■ソースコード
colObj = new SolidColor();
colObj.rgb.red = 108;
colObj.rgb.green = 255;
colObj.rgb.blue = 64;
r = colObj.nearestWebColor.red;
g = colObj.nearestWebColor.green;
b= colObj.nearestWebColor.blue;
alert(r+","+g+","+b);

■ポイント
 なし