When you use WritePixel, there is a number at the end which is the colour.
You probably know colours like
$ffffffff = white
$ffff0000 = red
$ff00ff00 = green
$ff0000ff = blue
What you need to know is hexadecimal numbers, and the way to put them together into the colour.
First, each colour component, red, green, blue, is a sliding scale from 0 (off) to 255 (full on).
So to make a dark green, you might have 0 blue, 0 red and 100 green (just under half intensity).
Or to make pink, you might want a lot of red, and some green and some blue, say 255,200,200.
You can make any colour you like.
Now you need to know how to make those magic hexadecimal (hex) values $xxxxxxxx
Each pair of xs of that hexadecimal number represents a bit of the colour, and it looks like this
$AARRGGBB
Where AA is alpha, the transparency part, RR is red, GG is green, BB is blue.
Don't worry about the alpha right now. We'll just set it to be totally not transparent. It only works in a few cases anyway.
So, how do we get from 255,200,200 to $ffRRGGBB? We need to convert the decimal values into hex.
One way of doing this is with Windows Calculator.
StartMenu->Accessories->Calculator.
Then go into the View menu and select Scientific - it's the 2nd option down.
Now, for each of the colour values, click the Dec button, type in the number and then click the Hex button.
So
Dec.
255
Hex
FF
Dec
200
Hex
C8
Dec
200
Hex
C8
That gives you FFC8C8
And the full colour with alpha as FF is
$FFFFC8C8
Try it with some other colours.
If you would like hexadecimal explained properly, let me know.
Have fun! (And please post up your starfield in the other thread!)
Jim