Re: how to set RGB color
Re: how to set RGB color
- Subject: Re: how to set RGB color
- From: John Poole <email@hidden>
- Date: Mon, 20 May 2002 11:55:08 -0400
found the answer to the question on the apple site:
RGB Color
The RGB Color value class represents a collection of three integer
values that specify the red, green, and blue components of a color. You
can coerce a list of three integer values into an RGB color if each of
the values is from 0 to 65535. In fact, AppleScript reports the class of
an RGB Color value as List:
set myGreenRGB to {0, 65535, 0} as RGB color --result: {0, 65535, 0}
class of myGreenRGB --result: list
You can get or set individual values in an RGB color by accessing the
items as you would those in any list:
set myRGB to {500,25000,500} as RGB color --result: {500, 25000, 500}
set myGreenValue to second item of myRGB --result: 25000
set item 3 of myRGB to 12000
myRGB --result: {500, 25000, 12000}
You can use the RGB Color value class to obtain RGB colors from, or
supply RGB colors to, applications that work with RGB colors. For
example, a graphic object in an AppleWorks drawing document has Fill
Color and Pen Color properties that are RGB colors.
-------- Original Message --------
Subject: how to set RGB color
Date: Mon, 20 May 2002 11:18:47 -0400
From: John Poole <email@hidden>
To: email@hidden
References: <email@hidden>
anyone know the right format to set an RGB color in Graphic Converter?
I need to set the background color ...
set background color of window 1 to ?
thanks in advance ...
-JP
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.