Subversion Repositories wimsdev

Rev

Rev 7353 | Rev 8520 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7353 Rev 8414
Line 2... Line 2...
2
 
2
 
3
 Make an affine transformation for the subsequent objects: (x;y) -> [a,b;c,d](x;y)+(tx;ty).
3
 Make an affine transformation for the subsequent objects: (x;y) -> [a,b;c,d](x;y)+(tx;ty).
4
:animate fra,del,rep 
4
:animate fra,del,rep
5
 
5
 
6
 This command is only available for WIMS OEF and doc, and MUST appear on the first line. Set up animation for fra frames, with del seconds between frames, and rep repetitions (rep=0 means infinite repetition).<br> Frame control is done via two variables: <tt>animstep</tt> (integer) going from 1 to frame count, and <tt>s</tt> going from 0 to 1.
6
 This command is only available for WIMS OEF and doc, and MUST appear on the first line. Set up animation for fra frames, with del seconds between frames, and rep repetitions (rep=0 means infinite repetition).<br> Frame control is done via two variables: <tt>animstep</tt> (integer) going from 1 to frame count, and <tt>s</tt> going from 0 to 1.
7
:animstep n
7
:animstep n
8
 
8
 
9
 Set up an integer which can be called in any evaluation. Used for animation. Direct use of this command must be avoided under WIMS.
9
 Set up an integer which can be called in any evaluation. Used for animation. Direct use of this command must be avoided under WIMS.
Line 18... Line 18...
18
 Two sided arrow (x1,y1)<--->(x2,y2), where l is the length (in pixels) of arrowhead.
18
 Two sided arrow (x1,y1)<--->(x2,y2), where l is the length (in pixels) of arrowhead.
19
:circle x,y,d,[color]
19
:circle x,y,d,[color]
20
 
20
 
21
 Circle of center (x,y) and diameter d (in pixels).
21
 Circle of center (x,y) and diameter d (in pixels).
22
:comment
22
:comment
23
 
23
 
24
 Does nothing.
24
 Does nothing.
25
:copy x,y,x1,y1,x2,y2,[filename]
25
:copy x,y,x1,y1,x2,y2,[filename]
26
 insert
26
 insert
27
 Insert the region from (x1,y1) to (x2,y2) (in pixels) of [filename] to (x,y). If x1=y1=x2=y2=-1, the whole [filename] is copied. [filename] is the address of the file from the directory wims/public_html/gifs or from the directory common_images for OEF modules.
27
 Insert the region from (x1,y1) to (x2,y2) (in pixels) of [filename] to (x,y). If x1=y1=x2=y2=-1, the whole [filename] is copied. [filename] is the address of the file from the directory wims/public_html/gifs or from the directory common_images for OEF modules.
28
:copyresized x1,y1,x2,y2,dx1,dy1,dx2,dy2,[filename]
28
:copyresized x1,y1,x2,y2,dx1,dy1,dx2,dy2,[filename]
29
 
29
 
30
 Insert the region from (x1,y1) to (x2,y2) (in pixels) of [filename], possibly resized, to the region of (dx1,dy1) to (dx2,dy2). If x1=y1=x2=y2=-1, the whole [filename] is copied and resized.
30
 Insert the region from (x1,y1) to (x2,y2) (in pixels) of [filename], possibly resized, to the region of (dx1,dy1) to (dx2,dy2). If x1=y1=x2=y2=-1, the whole [filename] is copied and resized.
-
 
31
:crosshair x1,y1,[color]
-
 
32
 
-
 
33
 draw a crosshair point at (x1,y1)
-
 
34
:crosshairs [color], x1,y1,x2,y2,...
-
 
35
 
-
 
36
 draw multiple crosshair points at given coordinates (x1,y1), (x2,y2), ...
-
 
37
:crosshairsize w
-
 
38
 
-
 
39
 Set crosshair size to w (in pixels).
-
 
40
 
31
:darrow x1,y1,x2,y2,l,[color]
41
:darrow x1,y1,x2,y2,l,[color]
32
 dasharrow dashedarrow
42
 dasharrow dashedarrow
33
 Dashed arrow (x1,y1)- - ->(x2,y2), where l is the length (in pixels) of arrowhead.
43
 Dashed arrow (x1,y1)- - ->(x2,y2), where l is the length (in pixels) of arrowhead.
34
:darrow2 x1,y1,x2,y2,l,[color]
44
:darrow2 x1,y1,x2,y2,l,[color]
35
 dasharrow2 dashedarrow2
45
 dasharrow2 dashedarrow2
Line 38... Line 48...
38
dashedhorizontalline dashhorizontalline hdline horizontaldashedline
48
dashedhorizontalline dashhorizontalline hdline horizontaldashedline
39
  Dashed horizontal line through (x,y).
49
  Dashed horizontal line through (x,y).
40
:diamondfill x,y,nx,ny,[color]
50
:diamondfill x,y,nx,ny,[color]
41
 diafill
51
 diafill
42
 Flood fill the region containing (x,y) with the same original color by double hatching (parallel lines), (nx,ny) being the horizontal and vertical distance between adjacent lines (in pixels).
52
 Flood fill the region containing (x,y) with the same original color by double hatching (parallel lines), (nx,ny) being the horizontal and vertical distance between adjacent lines (in pixels).
43
:dline x1,y1,x2,y2,[color]
53
:dsegment x1,y1,x2,y2,[color]
44
 dashedline dashline
54
 dashsegment
45
 Dashed line segment (x1,y1)---(x2,y2).
55
 Dashed line segment (x1,y1)---(x2,y2).
46
:dlines [color],x1,y1,x2,y2,x3,y3...
56
:dlines [color],x1,y1,x2,y2,x3,y3...
47
 dashedlines dashlines
57
 dashedlines dashlines
48
 n dashed line segments (x1,y1)---(x2,y2)---(x3,y3)...
58
 n dashed line segments (x1,y1)---(x2,y2)---(x3,y3)...
49
:dotfill x,y,nx,ny,[color]
59
:dotfill x,y,nx,ny,[color]
Line 113... Line 123...
113
 
123
 
114
 Draws level curves for expression, with levels l1, l2,...
124
 Draws level curves for expression, with levels l1, l2,...
115
:levelstep n
125
:levelstep n
116
 
126
 
117
 Set the number of pixel steps in levelcurve plotting. Between 1 and 16, defaults to 4.
127
 Set the number of pixel steps in levelcurve plotting. Between 1 and 16, defaults to 4.
118
:line x1,y1,x2,y2,[color]
-
 
119
 seg segment
-
 
120
 Line segment (x1,y1)---(x2,y2).
-
 
121
:linear a,b,c,d
128
:linear a,b,c,d
122
 
129
 
123
 Make a linear transformation for the subsequent objects: (x;y) -> [a,b;c,d](x;y).
130
 Make a linear transformation for the subsequent objects: (x;y) -> [a,b;c,d](x;y).
124
:lines [color],x1,y1,x2,y2,x3,y3...
131
:lines [color],x1,y1,x2,y2,x3,y3...
125
 
132
 polyline
126
 n line segments (x1,y1)---(x2,y2)---(x3,y3)...
133
 n line segments (x1,y1)---(x2,y2)---(x3,y3)...
127
:linewidth w
134
:linewidth w
128
 
135
 
129
 Set line width to w (in pixels) for line drawing.
136
 Set line width to w (in pixels) for line drawing.
130
:multicopy n1,n2,...,nk, [filename]
137
:multicopy n1,n2,...,nk, [filename]
Line 162... Line 169...
162
 Polygon (x1,y1)-(x2,y2)-(x3,y3)...
169
 Polygon (x1,y1)-(x2,y2)-(x3,y3)...
163
:range x1,x2,y1,y2
170
:range x1,x2,y1,y2
164
 
171
 
165
 Set the drawing range to [x1,x2] horizontally and [y1,y2] vertically. Note that by default, horizontal range is [0,xsize-1] and vertical range is [ysize-1,0].
172
 Set the drawing range to [x1,x2] horizontally and [y1,y2] vertically. Note that by default, horizontal range is [0,xsize-1] and vertical range is [ysize-1,0].
166
:rays [color],x0,y0,x1,y1,x2,y2...
173
:rays [color],x0,y0,x1,y1,x2,y2...
167
 
174
 
168
 Line segments (x0,y0)---(x1,y1), (x0,y0)---(x2,y2), ...
175
 Line segments (x0,y0)---(x1,y1), (x0,y0)---(x2,y2), ...
169
:rect x1,y1,x2,y2,[color]
176
:rect x1,y1,x2,y2,[color]
170
 rectangle
177
 rectangle
171
 Rectangle with corners (x1,y1) and (x2,y2).
178
 Rectangle with corners (x1,y1) and (x2,y2).
172
:resetmatrix n
179
:resetmatrix n
Line 174... Line 181...
174
Reset n-th linear or affine transformation to identity.
181
Reset n-th linear or affine transformation to identity.
175
:resetparallelogram
182
:resetparallelogram
176
 
183
 
177
kill setparallelogram
184
kill setparallelogram
178
:resetvector n
185
:resetvector n
179
 
186
 
180
Reset n-th translation to identity.
187
Reset n-th translation to identity.
181
:resettransform n
188
:resettransform n
182
 
189
 
183
Reset n-th linear, affine transformation and n-th translation to initial values (identity or null vector).
190
Reset n-th linear, affine transformation and n-th translation to initial values (identity or null vector).
184
:rotation d
191
:rotation d
185
 rotate
192
 rotate
186
 Make a rotation of degree d counter-clockwise (centered at (0,0)), for the subsequent objects.
193
 Make a rotation of degree d counter-clockwise (centered at (0,0)), for the subsequent objects.
-
 
194
:segment x1,y1,x2,y2,[color]
-
 
195
 seg line
-
 
196
 Line segment (x1,y1)---(x2,y2).
-
 
197
 
187
:setbrush [filename]
198
:setbrush [filename]
188
 
199
 
189
 Use the image [filename] as a brush for all line draws.
200
 Use the image [filename] as a brush for all line draws.
190
:setmatrix n,a,b,c,d
201
:setmatrix n,a,b,c,d
191
 
202