Language:
Русский
English
Getpltsz.PAS
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
{ Example for GetPaletteSize }
uses
Graph;
var
Driver, Mode : Integer;
begin
Driver := Detect;
InitGraph(Driver, Mode, '');
if GraphResult < 0 then Halt(1);
SetColor(1);
OutText('Color = 1, ');
SetColor(GetPaletteSize - 1);
OutText('Color = Max');
ReadLn;
Closegraph;
end.