Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Color format?
Date: Mon, 24 Aug 2009 20:58:05 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 22
Message-ID: <h6uust$esc$1@fred.mathworks.com>
References: <h6utpb$3rv$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 1251147485 15244 172.30.248.38 (24 Aug 2009 20:58:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 24 Aug 2009 20:58:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:565660


"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