macintosh_cookbook/examples/pen.pas
2020-05-07 18:47:11 +09:00

25 lines
278 B
ObjectPascal

program ExamplePen;
var
x, y: Integer;
Pt: Point;
begin
ShowDrawing;
PenSize(10, 1);
while true do
begin
repeat
until Button;
GetMouse(Pt);
MoveTo(Pt.h, Pt.v);
while Button do
begin
GetMouse(Pt);
LineTo(Pt.h, Pt.v);
end
end
end.