%INCLUDE graphics
procedure setlinewidth(width : integer); external;
procedure drawline(x1, y1, x2, y2 : integer); external;
procedure drawrectangle(x, y, width, height : integer); external;
procedure drawstring(x, y : integer; s : graphics_string); external;
procedure stringsize(s : graphics_string; var width, height :integer); external;
program test;
%INCLUDE graphics
var width, height : integer;
begin
setlinewidth(10);
drawline(20, 30, 100, 150);
drawstring(100, 100, 'Il fait beau chez toto');
stringsize('Il fait beau chez', width, height);
writeln('width = ', width, ' height = ', height);
drawrectangle(10, 20, 60, 100);
readln;
end.