blob: 6fbdac2dcd078d4e199ed2a5d513c0d14b063931 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
############################################################################
#
# File: joinpair.icn
#
# Subject: Procedure to connect pairs of points
#
# Author: Ralph E. Griswold
#
# Date: February 12, 1993
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# joinpair(points1, points2) draws lines between all pairs of points
# in the lists of points.
#
############################################################################
#
# Requires: Version 9 graphics
#
############################################################################
#
# Links: gobject, turtle
#
############################################################################
link gobject
link turtle
procedure joinpair(points1, points2)
local j, k, p1, p2
every p1 := !points1 do
every p2 := !points2 do {
TGoto(p1.x, p1.y)
TDrawto(p2.x, p2.y)
}
return
end
|