Jump to content
Software FX Community

Re: Palette Colors


User (Legacy)

Recommended Posts

Heh, you make it sound so easy Steve that I just have no desire to go do

it...I used the pie chart way, and stuff an array with colors...easy..just a

little overhead..and it works fine.

"SteveT" <stephent@compassadv.com> wrote in message

news:1Ido58sOAHA.1460@sfxserver.softwarefx.com...

I did know, didn't write it down.

If you "just haf'ta know" I suppose I can spend a bit of time this weekend

to "rediscover".

I seem to recall looking at all the palette entries and noticing the same

"header bits", then adjusted the next three entries to Red (which I recall

was ff,00,00) and made a graph.

While we're at it, a suggestion, export the branch to disk, make a working

copy and fiddle with it in notepad, upload, fiddle, upload, etc. When

you're done or give up, reload the "good" .reg file.

At the time I was on my way to define a custom color palette. Got

sidetracked!

Steve

Abram Krebs <duckwood@gamry.com> wrote in message

news:BGJmr3qOAHA.1460@sfxserver.softwarefx.com...

> Thanks for the pie chart idea. It may work.

>

> If not, do you or anyone else know the format in the registry of the

> palettes? The actual colors do not start at the very top..there appears

to

> be some sort of a header in there as they all match to a certain extent...

>

> Thanks,

> Abe

>

> "SteveT" <stephent@compassadv.com> wrote in message

> news:$dJUjvhOAHA.1460@sfxserver.softwarefx.com...

> I can tell you the palettes are stored in the registry:

>

> [HKEY_LOCAL_MACHINE\Software\Software FX, Inc.\Chart FX\Palettes]

>

> They are stored in Hex numbers that's a bit daunting (but not impossible)

to

> decode. Basicly RGB(R,G,B) values stored in hex format.

>

> Lots easier to create a pie chart with 49 sections and for each palette

loop

> through the points and save off the color value in a Color Table

> Fields like PALETTENAME, POSITION, COLORVALUE.

>

> Do this with a Pie chart (example in VBA, adjust for your

purpose/platform):

>

> For i = 0 To nPoints - 1

> Debug.Print ChartFX1.Color(i)

> Next

>

>

> First 4 points of various Palettes:

>

>

> "ChartFX 3.0"

> 65280 (Green)

> 16711680 (Blue)

> 255 (Red)

> 16711935 (Violet)

>

> "Nature"

> 12638144

> 11593903

> 10535071

> 9429135

>

> "Electric Fire"

> 3129599

> 3117296

> 48127

> 1089520

>

>

> Steve

>

> Abram Krebs <duckwood@gamry.com> wrote in message

> news:#6C1s3fOAHA.1460@sfxserver.softwarefx.com...

> > Hello,

> >

> > I maintain a collection of series in my program which basically mimics

the

> > ChartFX series. The big difference however, is that I allow the user to

> > hide a series... when I do this, I wipe all the data in the chart and

put

> > back only the pertinent data. Is there a way I can control the colors

to

> > make them the same. In other words, if I add two series, and the first

is

> > green and the second is blue..when I hide the first one, the second one

> > turns green...

> >

> > I want to keep track of the colors...so what I need is information as to

> > what the Nth color in the palette would be...how can I get this

> > information?

> >

> > Cheers,

> > Abe Krebs

> >

> >

>

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...