Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Palette

Status
Not open for further replies.

SteveD73

Programmer
Jan 5, 2001
109
GB
Hello

I wrote a program to test the output of PALETTEINDEX and it does not seem to produce the results I expected.

The program draws 400 lines each of which is assigned the colour returned by PALETTEINDEX. So for example line 0 is assigned PALETTEINDEX(0) line 50 is assigned PALETTEINDEX(50). I would expect the output to be a range of smooth colours. However the output is produces the following:

The first 10 to 15 lines are made up of a few bright
colours.
The rest of the lines are black.

I guess I need to setup the palette in some way.

Does anyone know how to get PALETTEINDEX to work correctly?

Thank you
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top