Language:
Русский
English
{Moverel.PAS}
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
{Sample code for the MoveRel procedure.}
uses Graph;
var Gd, Gm: Integer;
begin
Gd := Detect;
InitGraph(Gd, Gm, '');
if GraphResult <> grOk then
Halt(1);
MoveTo(1, 2);
MoveRel(10, 10); { Move to the point (11, 12) }
PutPixel(GetX, GetY, GetMaxColor);
Readln;
CloseGraph;
end.