Jump to content
Software FX Community

RE: Color Palettes


Software FX

Recommended Posts

Good afternoon,

Whether you are in the case where you need more than 16 colors you have to set them manually open a color channel as the follow code shows:

ChartFX1.OpenDataEx COD_COLORS, 20, 0

ChartFX1.Color(0) = RGB(255, 255, 255)

ChartFX1.Color(1) = RGB(255, 200, 200)

ChartFX1.Color(2) = RGB(255, 100, 200)

ChartFX1.Color(3) = RGB(255, 100, 100)

ChartFX1.Color(4) = RGB(255, 100, 0)

ChartFX1.Color(5) = RGB(255, 50, 0)

ChartFX1.Color(6) = RGB(255, 0, 0)

ChartFX1.Color(7) = RGB(0, 255, 255)

ChartFX1.Color(8) = RGB(0, 255, 200)

ChartFX1.Color(9) = RGB(50, 255, 100)

ChartFX1.Color(10) = RGB(200, 100, 150)

ChartFX1.Color(11) = RGB(0, 255, 0)

ChartFX1.Color(12) = RGB(0, 200, 0)

ChartFX1.Color(13) = RGB(0, 100, 0)

ChartFX1.Color(14) = RGB(0, 0, 0)

ChartFX1.Color(15) = RGB(0, 0, 255)

ChartFX1.Color(16) = RGB(0, 0, 200)

ChartFX1.Color(17) = RGB(234, 3, 150)

ChartFX1.Color(18) = RGB(23, 244, 100)

ChartFX1.Color(19) = RGB(110, 0, 0)

ChartFX1.CloseData COD_COLORS

Regards,

PERCY DYER

Boca Raton, FL. USA

Tech Support: (561) 392-2023, Ext. 207

-----Original Message-----

From: SteveT [mailto:stephent@compassadv.com]

Sent: Tuesday, November 07, 2000 12:40 PM

Posted To: General

Conversation: Color Palettes

Subject: Color Palettes

Hi all,

Ok, I'll admit it, I've been in my registry (again) adjusting colors.

The palettes have 49 colors. Yet if you create a sample bar chart of 49 series, only the first 16 colors are used and the same colors repeat every 16 series. Is this the expected behavior? I would have expected each of the palette colors to be used from 1 to 49, in order.

I've been using the ChartFx 3.0 palette for chart colors and always through code. When I use the user interface and select the ChartFx 3.0 palette I get the 'bright' colors in the chart but the colors of the palette bar are in a completely different order vs the 'Default' palette which are shown in the palette bar in the same order as listed the registry (and it seems all other palettes follow this order).

Is this a ChartFx issue or a Windows issue?

Thanks,

Steve

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...