Hi

Is it possible to play with the palette for a static window, like we did in 16bit to get the fire and plasma effect.

peace
Posted on 2004-07-22 04:04:30 by mistronr1
Yes it is possible. Take a look at this thread.

http://www.asmcommunity.net/board/index.php?topic=15892
Posted on 2004-07-22 08:46:59 by roticv
Hi again

Thanx roticv I've seen the fireworks it's very cool, but what I am looking for is a simple palette manipulaton, not DirectX, OpenGL or some complicated algorithms, just a static window with some colours and access to the palette memory.

peace
Posted on 2004-07-22 14:54:01 by mistronr1
You can create a palette and select it into the DC with SelectPalette. Creating a Palette is easy enough, you can either modify an exisitng palette with SetPaletteEntries or create a new one with CreatePalette. When you have modified it use UpdateColors to apply the changes.
Posted on 2004-07-22 15:22:20 by donkey
thank you Donkey now I have something to start with I take off my redhat for you (or is it greenhat hmmmmm) anyway.

peace
Posted on 2004-07-22 16:08:58 by mistronr1
Originally posted by mistronr1
Hi again

Thanx roticv I've seen the fireworks it's very cool, but what I am looking for is a simple palette manipulaton, not DirectX, OpenGL or some complicated algorithms, just a static window with some colours and access to the palette memory.

peace


It does not use DirectX or OpenGL or any complicated algorithm.
Posted on 2004-07-23 04:08:59 by roticv
Hi roticv

I was just preventing any answars containing DirectX and OpenGL, btw the fireworks doesnt play with the palette at all, and uses MMX which I am not good at..

thanx anyway

peace
Posted on 2004-07-23 07:13:45 by mistronr1
UpdateColors does not change the palette. It just remaps colors in a window to fit a new palette. To set the palette, use RealizePalette.
Posted on 2004-07-27 13:09:30 by Sephiroth3