: : : This message was edited by cof123 at 2004-12-28 3:21:56
: : : Thanks everyone. Now i'm having problem with the palette i'm using the
: : : for i:= 0 to 15 do
: : : begin
: : : SetRGBPalette(i,ORD(current+2),ORD(Current+1),ORD(Current));
: : : Current:=Current+4;
: : : end;
: : : But the first few colours are almost all black while the black one is being outputted as white. Am i doing something wrong? Or am i using the wrong command?
: : :
: : :
: : :
: : if Current is initially 0 then after this code the palette has gradient colors from #020100 to #3E3D3C which is from black to dark grey
: : not sure if this is what u want
: :
NetGert[/italic]
: :
: :
: No current is the variable which is keeping the pointer of the ascii code in a string that is currently being read
:
that (using strings) seems like an ugly way to do it
i would blockread() and convert data to Graph memory image (array of bytes containing the color's index in palette).... not sure if Graph's memory image uses 2-colors-to-1-byte encoding, havent worked with it a while
NetGert[/italic]