Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Color format?
Date: Tue, 25 Aug 2009 09:58:02 +0000 (UTC)
Organization: STFC Rutherford Appleton Laboratory
Lines: 29
Message-ID: <h70cja$jik$1@fred.mathworks.com>
References: <h6utpb$3rv$1@fred.mathworks.com> <h6uust$esc$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1251194282 20052 172.30.248.38 (25 Aug 2009 09:58:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 25 Aug 2009 09:58:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 968489
Xref: news.mathworks.com comp.soft-sys.matlab:565759


"us " <us@neurol.unizh.ch> wrote in message <h6uust$esc$1@fred.mathworks.com>...
> "Camron Call" <camroncall@gmail.cam> wrote in message <h6utpb$3rv$1@fred.mathworks.com>...
> > What is the color format used by most GUI properties that ranges from 0-1?  How do we convert it to RGB (0-255)?
> > 
> > Thanks.
> 
> normalized rgb...
> 
> % hence
>      guicolor=gray(3)
>      rgbcolor=255*guicolor
> %{
> %    guicolor =
>             0            0            0
>           0.5          0.5          0.5
>             1            1            1
> %    rgbcolor =
>             0            0            0
>         127.5        127.5        127.5
>           255          255          255
> %}
> 
> us

Just a very minor point. 'Us' has titled his explaination as normalized RGB. This phrase is often used to describe a totally different colour space, which is an effective intensity independent RGB colour space, which bears no relevance to the original OP's question. I added this so as to prevent the OP from getting confused if he Googles Normalized RGB.

Regards

Dave Robinson