Rev 16272 | Rev 17570 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16272 | Rev 16344 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | :animate fra,del,rep |
7 | :animate fra,del,rep |
8 | 8 | ||
9 | This command is only available for WIMS OEF and doc, and MUST appear on the first line or after the command alt. 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. |
9 | This command is only available for WIMS OEF and doc, and MUST appear on the first line or after the command alt. 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. |
10 | :animstep n |
10 | :animstep n |
11 | 11 | ||
12 |
|
12 | Set up an integer which can be called in any evaluation. Used for animation. Direct use of this command must be avoided under WIMS. |
13 | :arc x,y,w,h,a1,a2,[color] |
13 | :arc x,y,w,h,a1,a2,[color] |
14 | 14 | ||
15 | Arc segment of an ellipse of width w and hight h centered at (x,y), from angle a1 to angle a2 (in degrees). |
15 | Arc segment of an ellipse of width w and hight h centered at (x,y), from angle a1 to angle a2 (in degrees). |
16 | :arrow x1,y1,x2,y2,l,[color] |
16 | :arrow x1,y1,x2,y2,l,[color] |
17 | 17 | ||
Line 43... | Line 43... | ||
43 | 43 | ||
44 | :darrow x1,y1,x2,y2,l,[color] |
44 | :darrow x1,y1,x2,y2,l,[color] |
45 | dasharrow dashedarrow |
45 | dasharrow dashedarrow |
46 | Dashed arrow (x1,y1)- - ->(x2,y2), where l is the length (in pixels) of arrowhead. |
46 | Dashed arrow (x1,y1)- - ->(x2,y2), where l is the length (in pixels) of arrowhead. |
47 | :darrow2 x1,y1,x2,y2,l,[color] |
47 | :darrow2 x1,y1,x2,y2,l,[color] |
48 |
|
48 | dasharrow2 dashedarrow2 |
49 | Two sided dashed arrow (x1,y1)<- - ->(x2,y2), where l is the length (in pixels) of arrowhead. |
49 | Two sided dashed arrow (x1,y1)<- - ->(x2,y2), where l is the length (in pixels) of arrowhead. |
50 | :dhline x,y,[color] |
50 | :dhline x,y,[color] |
51 | dashedhorizontalline dashhorizontalline hdline horizontaldashedline |
51 | dashedhorizontalline dashhorizontalline hdline horizontaldashedline |
52 | Dashed horizontal line through (x,y). |
52 | Dashed horizontal line through (x,y). |
53 | :diamondfill x,y,nx,ny,[color] |
53 | :diamondfill x,y,nx,ny,[color] |
54 | diafill |
54 | diafill |
55 | 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). |
55 | 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). |
56 | : |
56 | :dline x1,y1,x2,y2,[color] |
57 |
|
57 | dashedline dashline |
58 |
|
58 | Segment en pointillés entre les points de coordonnées (x1; y1) et (x2; y2). |
59 | :dlines [color],x1,y1,x2,y2,x3,y3... |
59 | :dlines [color],x1,y1,x2,y2,x3,y3... |
60 | dashedlines dashlines |
60 | dashedlines dashlines |
61 | n dashed line segments (x1,y1)---(x2,y2)---(x3,y3)... |
61 | n dashed line segments (x1,y1)---(x2,y2)---(x3,y3)... |
62 | :dotfill x,y,nx,ny,[color] |
62 | :dotfill x,y,nx,ny,[color] |
63 | pointfill diskfill |
63 | pointfill diskfill |
64 | Flood fill the region containing (x,y) with the same original color by (fat) dots at each (nx,ny) pixels. |
64 | Flood fill the region containing (x,y) with the same original color by (fat) dots at each (nx,ny) pixels. |
- | 65 | :dsegment x1,y1,x2,y2,[color] |
|
- | 66 | dashsegment |
|
- | 67 | Dashed line segment (x1,y1)---(x2,y2). |
|
65 | :dvline x,y,[color] |
68 | :dvline x,y,[color] |
66 |
|
69 | dashedverticaline dashverticalline vdline verticaldashedline |
67 | Dashed vertical line through (x,y). |
70 | Dashed vertical line through (x,y). |
68 | :ellipse x,y,w,h,[color] |
71 | :ellipse x,y,w,h,[color] |
69 | 72 | ||
70 | Ellipse with center (x,y), width w and height h. |
73 | Ellipse with center (x,y), width w and height h. |
71 | :fcircle x,y,d,[color] |
74 | :fcircle x,y,d,[color] |
72 | ball disk filledcircle |
75 | ball disk filledcircle |
73 | Filled circle of center (x,y) and diameter d (in pixels). |
76 | Filled circle of center (x,y) and diameter d (in pixels). |
74 | :fellipse x,y,w,h,[color] |
77 | :fellipse x,y,w,h,[color] |
75 |
|
78 | filledellipse |
76 | Filled ellipse with center (x,y), width w and height h. |
79 | Filled ellipse with center (x,y), width w and height h. |
77 | :fill x,y,[color] |
80 | :fill x,y,[color] |
78 |
|
81 | flood floodfill |
79 | Flood fill the region containing (x,y) with the same original color, by color. |
82 | Flood fill the region containing (x,y) with the same original color, by color. |
80 | :filltoborder x,y,[color1],[color2] |
83 | :filltoborder x,y,[color1],[color2] |
81 | 84 | ||
82 | Flood fill by color2 the region containing (x,y) and bounded by color1. |
85 | Flood fill by color2 the region containing (x,y) and bounded by color1. |
83 | :fpoly [color],x1,y1,x2,y2,x3,y3... |
86 | :fpoly [color],x1,y1,x2,y2,x3,y3... |
Line 85... | Line 88... | ||
85 | Filled polygon (x1,y1)-(x2,y2)-(x3,y3)... |
88 | Filled polygon (x1,y1)-(x2,y2)-(x3,y3)... |
86 | :frect x1,y1,x2,y2,[color] |
89 | :frect x1,y1,x2,y2,[color] |
87 | filledrect fillecrectangle frectangle |
90 | filledrect fillecrectangle frectangle |
88 | Filled rectangle with corners (x1,y1) and (x2,y2). |
91 | Filled rectangle with corners (x1,y1) and (x2,y2). |
89 | :fsquare x,y,s,[color] |
92 | :fsquare x,y,s,[color] |
90 |
|
93 | filledsquare |
91 | Filled square with sides s (in pixels) and first corner at (x,y). |
94 | Filled square with sides s (in pixels) and first corner at (x,y). |
92 | :ftriangle x1,y1,x2,y2,x3,y3,[color] |
95 | :ftriangle x1,y1,x2,y2,x3,y3,[color] |
93 | filledtriangle |
96 | filledtriangle |
94 | Filled triangle with vertices (x1,y1),(x2,y2),(x3,y3). |
97 | Filled triangle with vertices (x1,y1),(x2,y2),(x3,y3). |
95 | :gridfill x,y,nx,ny,[color] |
98 | :gridfill x,y,nx,ny,[color] |
96 | 99 | ||
97 | Flood fill the region containing (x,y) with the same original color by a grid of horizontal and vertical lines with distance (nx,ny) (in pixels). |
100 | Flood fill the region containing (x,y) with the same original color by a grid of horizontal and vertical lines with distance (nx,ny) (in pixels). |
98 | :hatchfill x,y,nx,ny,[color] |
101 | :hatchfill x,y,nx,ny,[color] |
99 | 102 | ||
100 | Flood fill the region containing (x,y) with the same original color by hatching (parallel lines), (nx,ny) being the horizontal and vertical displacement of adjacent lines (in pixels). |
103 | Flood fill the region containing (x,y) with the same original color by hatching (parallel lines), (nx,ny) being the horizontal and vertical displacement of adjacent lines (in pixels). |
101 | :hline x,y,[color] |
104 | :hline x,y,[color] |
102 |
|
105 | horizontalline |
103 | Horizontal line through (x,y). |
106 | Horizontal line through (x,y). |
104 | :interlace |
107 | :interlace |
105 | 108 | ||
106 |
|
109 | Set interlaced image |
107 | :killaffine |
110 | :killaffine |
108 | 111 | ||
109 | Reset affine transformation to identity. |
112 | Reset affine transformation to identity. |
110 | :killbrush |
113 | :killbrush |
111 | 114 | ||
112 | Turns off brush selection for line drawing. |
115 | Turns off brush selection for line drawing. |
113 | :killlinear |
116 | :killlinear |
114 |
|
117 | killrotation killrotate |
115 | Reset linear transformation to identity. |
118 | Reset linear transformation to identity. |
116 | :killtile |
119 | :killtile |
117 | 120 | ||
118 | Turns off tile selection for filling. |
121 | Turns off tile selection for filling. |
119 | :killtranslation |
122 | :killtranslation |
120 |
|
123 | killtranslate |
121 | Reset translation to identity. |
124 | Reset translation to identity. |
122 | :lattice x0,y0,x1,y1,x2,y2,n1,n2,[color] |
125 | :lattice x0,y0,x1,y1,x2,y2,n1,n2,[color] |
123 | 126 | ||
124 | A lattice of n1xn2 points starting with (x0,y0), with n1 rows in direction of (x1,y1) and n2 rows in direction of (x2,y2). |
127 | A lattice of n1xn2 points starting with (x0,y0), with n1 rows in direction of (x1,y1) and n2 rows in direction of (x2,y2). |
125 | :levelcurve [color],expression,l1,l2,... |
128 | :levelcurve [color],expression,l1,l2,... |
126 | 129 | ||
127 | Draws level curves for expression, with levels l1, l2,... |
130 | Draws level curves for expression, with levels l1, l2,... |
128 | :levelstep n |
131 | :levelstep n |
129 | 132 | ||
130 | Set the number of pixel steps in levelcurve plotting. Between 1 and 16, defaults to 4. |
133 | Set the number of pixel steps in levelcurve plotting. Between 1 and 16, defaults to 4. |
131 | :linear a,b,c,d |
134 | :linear a,b,c,d |
132 | 135 | ||
133 | Make a linear transformation for the subsequent objects: (x;y) -> [a,b;c,d](x;y). |
136 | Make a linear transformation for the subsequent objects: (x;y) -> [a,b;c,d](x;y). |
134 | :polyline [color],x1,y1,x2,y2,x3,y3... |
- | |
135 | lines (deprecated) |
- | |
136 | n line segments (x1,y1)---(x2,y2)---(x3,y3)... |
- | |
137 | :linewidth w |
137 | :linewidth w |
138 | 138 | ||
139 | Set line width to w (in pixels) for line drawing. |
139 | Set line width to w (in pixels) for line drawing. |
140 | :multicopy n1,n2,...,nk, [filename] |
140 | :multicopy n1,n2,...,nk, [filename] |
141 | 141 | ||
Line 151... | Line 151... | ||
151 | n parallel lines starting from (x1,y1)---(x2,y2), with displacement (xv,yv). |
151 | n parallel lines starting from (x1,y1)---(x2,y2), with displacement (xv,yv). |
152 | :pixels [color],x1,y1,x2,y2,... |
152 | :pixels [color],x1,y1,x2,y2,... |
153 | 153 | ||
154 | Points (all of diameter 1) at (x1,y1), (x2,y2), ... |
154 | Points (all of diameter 1) at (x1,y1), (x2,y2), ... |
155 | :plot [color],[formula] |
155 | :plot [color],[formula] |
156 |
|
156 | curve |
157 | Plot a curve according to [formula] which can be either an explicit function of x, or a pair of parametric functions in t. |
157 | Plot a curve according to [formula] which can be either an explicit function of x, or a pair of parametric functions in t. |
158 | :plotjump j |
158 | :plotjump j |
159 | 159 | ||
160 | Plotted curve will jump if two consecutive points have distance more than j pixels. Useful to avoid plotting discontinuous functions as continuous. Default value: 200. |
160 | Plotted curve will jump if two consecutive points have distance more than j pixels. Useful to avoid plotting discontinuous functions as continuous. Default value: 200. |
161 | :plotstep n |
161 | :plotstep n |
162 |
|
162 | plotsteps tstep tsteps |
163 | Set the number of point computations in curve plot. Defaults to 100. |
163 | Set the number of point computations in curve plot. Defaults to 100. |
164 | :point x,y,[color] |
164 | :point x,y,[color] |
165 | 165 | ||
166 | A (fat) point at (x,y), whose diameter is equal to linewidth. |
166 | A (fat) point at (x,y), whose diameter is equal to linewidth. |
167 | :points [color],x1,y1,x2,y2,... |
167 | :points [color],x1,y1,x2,y2,... |
168 | 168 | ||
169 | (Fat) points at (x1,y1), (x2,y2), ..., whose diameters are equal to linewidth. |
169 | (Fat) points at (x1,y1), (x2,y2), ..., whose diameters are equal to linewidth. |
170 | :polygon [color],x1,y1,x2,y2,x3,y3... |
170 | :polygon [color],x1,y1,x2,y2,x3,y3... |
171 |
|
171 | poly |
172 | Polygon (x1,y1)-(x2,y2)-(x3,y3)... |
172 | Polygon (x1,y1)-(x2,y2)-(x3,y3)... |
- | 173 | :polyline [color],x1,y1,x2,y2,x3,y3... |
|
- | 174 | brokenline lines (deprecated) |
|
- | 175 | n line segments (x1,y1)---(x2,y2)---(x3,y3)... |
|
173 | :range x1,x2,y1,y2 |
176 | :range x1,x2,y1,y2 |
174 | 177 | ||
175 | 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]. |
178 | 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]. |
176 | :rays [color],x0,y0,x1,y1,x2,y2... |
179 | :rays [color],x0,y0,x1,y1,x2,y2... |
177 | 180 | ||
Line 195... | Line 198... | ||
195 | rotate |
198 | rotate |
196 | Make a rotation of degree d counter-clockwise (centered at (0,0)), for the subsequent objects. |
199 | Make a rotation of degree d counter-clockwise (centered at (0,0)), for the subsequent objects. |
197 | :segment x1,y1,x2,y2,[color] |
200 | :segment x1,y1,x2,y2,[color] |
198 | seg line (deprecated) |
201 | seg line (deprecated) |
199 | Line segment (x1,y1)---(x2,y2). |
202 | Line segment (x1,y1)---(x2,y2). |
- | 203 | :segments [color],x1,y1,x2,y2,x3,y3,x4,y4, ... |
|
200 | 204 | ||
- | 205 | Line segments (x1; y1)---(x2; y2), (x3; y3)---(x4; y4), ... |
|
201 | :setbrush [filename] |
206 | :setbrush [filename] |
202 | 207 | ||
203 | Use the image [filename] as a brush for all line draws. |
208 | Use the image [filename] as a brush for all line draws. |
204 | :setmatrix n,a,b,c,d |
209 | :setmatrix n,a,b,c,d |
205 | 210 | ||
Line 227... | Line 232... | ||
227 | Set the image size to x pixels horizontally and y pixels vertically. |
232 | Set the image size to x pixels horizontally and y pixels vertically. |
228 | :square x,y,s,[color] |
233 | :square x,y,s,[color] |
229 | 234 | ||
230 | Square with sides s (in pixels) and first corner at (x,y). |
235 | Square with sides s (in pixels) and first corner at (x,y). |
231 | :text [color],x,y,[font],[string] |
236 | :text [color],x,y,[font],[string] |
232 |
|
237 | print string write |
233 | Write the string at (x,y), with font=small,medium,large or giant. |
238 | Write the string at (x,y), with font=small,medium,large or giant. |
234 | :textup [color],x,y,[font],[string] |
239 | :textup [color],x,y,[font],[string] |
235 |
|
240 | stringup writeup |
236 | Write upwards the string at (x,y), with font=small,medium,large or giant. |
241 | Write upwards the string at (x,y), with font=small,medium,large or giant. |
237 | :trange t1,t2 |
242 | :trange t1,t2 |
238 | ranget |
243 | ranget |
239 | Set the t range to [t1,t2] for parametric curve plotting. Defaults to [0,1]. |
244 | Set the t range to [t1,t2] for parametric curve plotting. Defaults to [0,1]. |
240 | :translation tx,ty |
245 | :translation tx,ty |
241 |
|
246 | translate |
242 | Make a translation for the subsequent objects: (x;y) -> (x;y)+(tx;ty). |
247 | Make a translation for the subsequent objects: (x;y) -> (x;y)+(tx;ty). |
243 | :transparent [color] |
248 | :transparent [color] |
244 | 249 | ||
245 | Makes [color] a transparent color. |
250 | Makes [color] a transparent color. |
246 | :triangle x1,y1,x2,y2,x3,y3,[color] |
251 | :triangle x1,y1,x2,y2,x3,y3,[color] |
Line 251... | Line 256... | ||
251 | Enable (1) or disable (0) vector graphics output. |
256 | Enable (1) or disable (0) vector graphics output. |
252 | :vimgfile [filename] |
257 | :vimgfile [filename] |
253 | 258 | ||
254 | Direct vector graphics output (currently DXF only) to [filename]. |
259 | Direct vector graphics output (currently DXF only) to [filename]. |
255 | :vline x,y,[color] |
260 | :vline x,y,[color] |
256 |
|
261 | verticalline |
257 | Vertical line through (x,y). |
262 | Vertical line through (x,y). |
258 | :xrange x1,x2 |
263 | :xrange x1,x2 |
259 | rangex |
264 | rangex |
260 | Set the horizontal drawing range to [x1,x2]. Defaults to [0,xsize-1]. |
265 | Set the horizontal drawing range to [x1,x2]. Defaults to [0,xsize-1]. |
261 | :yrange y1,y2 |
266 | :yrange y1,y2 |