Hi Tom,
sorry for the late response, but could you provide us with a little more
info on exactly what you want to do.
Regards
Brenda
Tom Fitzgerald <tfitz1@hotmail.com> wrote:
I am trying to take a PgColor_t structure and using some for loops and if
statements, I would like to assign to a 4x64 PgColor_t array, main colors
with 8 shades each. I would like to do this without having to create the
array values by hand but it is proving a little tricky. Does anyone know of
a reference or an existing algorithm to do this?
Tom Fitzgerald
Sure,
The RGB in QNX is a 24 bit number. This gives 16.x million colors.
If I am using a 256 color display driver, in order to make sure tha out of
the 256 colors no colors repeat, I have to select certain values in RGB.
However, this is proving to be not so easy. Any advice?
-Tom Fitzgerald
“Gui Group” <gui@qnx.com> wrote in message news:9m5ibp$693$1@nntp.qnx.com…
Hi Tom,
sorry for the late response, but could you provide us with a little more
info on exactly what you want to do.
Regards
Brenda
Tom Fitzgerald <> tfitz1@hotmail.com> > wrote:
I am trying to take a PgColor_t structure and using some for loops and
if
statements, I would like to assign to a 4x64 PgColor_t array, main
colors
with 8 shades each. I would like to do this without having to create
the
array values by hand but it is proving a little tricky. Does anyone
know of
a reference or an existing algorithm to do this?
\
Tom Fitzgerald
Hi Tom,
Unfortunately, we have no easy way to do this. But I did some checking online
and I have seem some utilities that will do the conversions for you but the utilities
aren’t free. The talk about using a Modified Diversity Algorithm for selecting the colors.
I have a link that follows that explains this algorithm that you might be able to use.
http://www.trilon.com/xv/manual/xv-3.10a/diversity-algorithm.html
http://www.engineering.uiowa.edu/~gec/248_s00_students/john_dill/hw1/
Hopefully these will get you started.
Good Luck
Regards
Brenda
Tom Fitzgerald <tfitz1@hotmail.com> wrote:
Sure,
The RGB in QNX is a 24 bit number. This gives 16.x million colors.
If I am using a 256 color display driver, in order to make sure tha out of
the 256 colors no colors repeat, I have to select certain values in RGB.
However, this is proving to be not so easy. Any advice?
-Tom Fitzgerald
“Gui Group” <> gui@qnx.com> > wrote in message news:9m5ibp$693$> 1@nntp.qnx.com> …
Hi Tom,
sorry for the late response, but could you provide us with a little more
info on exactly what you want to do.
Regards
Brenda
Tom Fitzgerald <> tfitz1@hotmail.com> > wrote:
I am trying to take a PgColor_t structure and using some for loops and
if
statements, I would like to assign to a 4x64 PgColor_t array, main
colors
with 8 shades each. I would like to do this without having to create
the
array values by hand but it is proving a little tricky. Does anyone
know of
a reference or an existing algorithm to do this?
\
Tom Fitzgerald