Mailing List Archive

What did the old <color> numbers mean ?
I'm converting the old Retro-OSD theme, and the fonts have color defs like

<color>200</color>
<color>255</color>
<color>128</color>

What did a color of a single 0-255 number mean ?


==========================================================
Chris Candreva -- chris@westnet.com -- (914) 948-3162
WestNet Internet Services of Westchester
http://www.westnet.com/
_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming
Re: What did the old <color> numbers mean ? [ In reply to ]
On Saturday 20 Nov 2010 17:38:22 Christopher X. Candreva wrote:
> I'm converting the old Retro-OSD theme, and the fonts have color defs like
>
> <color>200</color>
> <color>255</color>
> <color>128</color>
>
> What did a color of a single 0-255 number mean ?

They were 8-bit colours, probably '8bit Truecolour', so 3bits Red, 3bits
Green, 2bits Blue.

I'm not aware of a simple/accurate method to convert from 8bit to 32bit (24bit
Truecolour). You could try plugging the 8bit values into an application like
Gimp and see what the equivalent 32bit hex code is.

--
Stuart Morgan
MythTV
_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming
Re: What did the old <color> numbers mean ? [ In reply to ]
On 20/11/10 17:38, Christopher X. Candreva wrote:
> I'm converting the old Retro-OSD theme, and the fonts have color defs like
>
> <color>200</color>
> <color>255</color>
> <color>128</color>
>
> What did a color of a single 0-255 number mean ?
>
>
>

Looking at the color parsing code it looks like they are a quick way to
represent a gray scale so they are the same as :-

<color>200,200,200</color>
<color>255,255,255</color>
<color>128,128,128</color>

http://svn.mythtv.org/trac/browser/branches/release-0-23-fixes/mythtv/libs/libmythtv/osd.cpp#L1774

Paul H.
_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming
Re: What did the old <color> numbers mean ? [ In reply to ]
On Saturday 20 Nov 2010 18:04:49 Paul Harrison wrote:
> On 20/11/10 17:38, Christopher X. Candreva wrote:
> > I'm converting the old Retro-OSD theme, and the fonts have color defs
> > like
> >
> > <color>200</color>
> > <color>255</color>
> > <color>128</color>
> >
> > What did a color of a single 0-255 number mean ?
>
> Looking at the color parsing code it looks like they are a quick way to
> represent a gray scale so they are the same as :-
>
> <color>200,200,200</color>
> <color>255,255,255</color>
> <color>128,128,128</color>
>
> http://svn.mythtv.org/trac/browser/branches/release-0-23-fixes/mythtv/libs/
> libmythtv/osd.cpp#L1774

Whoops, yeah, ignore what I said entirely, I was completely wrong.

--
Stuart Morgan
MythTV
_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming
Re: What did the old <color> numbers mean ? [ In reply to ]
On Sat, 20 Nov 2010, Paul Harrison wrote:

> Looking at the color parsing code it looks like they are a quick way to
> represent a gray scale so they are the same as :-
>
> <color>200,200,200</color>
> <color>255,255,255</color>
> <color>128,128,128</color>
>
> http://svn.mythtv.org/trac/browser/branches/release-0-23-fixes/mythtv/libs/libmythtv/osd.cpp#L1774

Thanks !

==========================================================
Chris Candreva -- chris@westnet.com -- (914) 948-3162
WestNet Internet Services of Westchester
http://www.westnet.com/
_______________________________________________
mythtv-theming mailing list
mythtv-theming@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-theming