blob: f7661151e6f3b80cccc9a57a2a2b1610c7ad1b03 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
.TH "schematic" 3 "Fri Sep 9 2011" "Cmd2" \" -*- nroff -*-
.ad l
.nh
.SH NAME
schematic \-
.SH SYNOPSIS
.br
.PP
.SS "Functions"
.in +1c
.ti -1c
.RI "def \fBrectangle\fP"
.br
.in -1c
.SS "Variables"
.in +1c
.ti -1c
.RI "int \fBpensize\fP = 10"
.br
.in -1c
.SH "Function Documentation"
.PP
.SS "def schematic::rectangle (x, y, _label)"
.PP
Definition at line 8 of file schematic\&.py'\&.
.PP
.nf
8
9 def rectangle(x, y, _label):
10 pu()
11 seth(0)
12 backward(x / 2)
13 fontsize = 40
14 pd()
15 for i in range(2):
16 forward(x)
17 left(90)
18 forward(y)
19 left(90)
20 pu()
21 forward(x / 2)
22 left(90)
23 forward(y / 2 - fontsize)
24 pd()
25 write(_label, align='center', font=('Arial', fontsize, 'bold'))
26
27 rectangle(800, 80, 'cmd')
28 pu()
29 forward(80)
30 rectangle(200, 400, 'cmd2')
.fi
.SH "Variable Documentation"
.PP
.SS "int \fBschematic::pensize\fP = 10"
.PP
Definition at line 4 of file schematic\&.py'\&.
.SH "Author"
.PP
Generated automatically by Doxygen for Cmd2 from the source code'\&.
|