Rev 18048 | Rev 18075 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18048 | Rev 18063 | ||
---|---|---|---|
Line 54... | Line 54... | ||
54 | dasharrow dashedarrow |
54 | dasharrow dashedarrow |
55 | Dashed arrow (x1,y1)- - ->(x2,y2), where l is the length (in pixels) of arrowhead. |
55 | Dashed arrow (x1,y1)- - ->(x2,y2), where l is the length (in pixels) of arrowhead. |
56 | :darrow2 x1,y1,x2,y2,l,[color] |
56 | :darrow2 x1,y1,x2,y2,l,[color] |
57 | dasharrow2 dashedarrow2 |
57 | dasharrow2 dashedarrow2 |
58 | Two sided dashed arrow (x1,y1)<- - ->(x2,y2), where l is the length (in pixels) of arrowhead. |
58 | Two sided dashed arrow (x1,y1)<- - ->(x2,y2), where l is the length (in pixels) of arrowhead. |
- | 59 | :darrows [color],l,x1,y1,x2,y2,x3,y3,x4,y4,... |
|
- | 60 | ||
- | 61 | Flèches en pointillés allant du point (x1;y1) vers le point (x2;y2), du point (x3;y3) vers le point (x4;y4) et dont la tête est de longueur l pixels. |
|
- | 62 | :darrows2 [color],l,x1,y1,x2,y2,x3,y3,x4,y4,... |
|
- | 63 | ||
- | 64 | Flèches en pointillés entre les points (x1;y1) et (x2;y2), (x3;y3) et (x4;y4) ayant deux têtes de longueur l pixels. |
|
59 | :dhline x,y,[color] |
65 | :dhline x,y,[color] |
60 | dashedhorizontalline dashhorizontalline hdline horizontaldashedline |
66 | dashedhorizontalline dashhorizontalline hdline horizontaldashedline |
61 | Dashed horizontal line through (x,y). |
67 | Dashed horizontal line through (x,y). |
62 | :diamondfill x,y,nx,ny,[color] |
68 | :diamondfill x,y,nx,ny,[color] |
63 | diafill |
69 | diafill |
64 | 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). |
70 | 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). |
65 | :dline x1,y1,x2,y2,[color] |
- | |
66 | dashedline dashline |
- | |
67 | Segment en pointillés entre les points de coordonnées (x1; y1) et (x2; y2). |
- | |
68 | : |
71 | :dpolyline [color],x1,y1,x2,y2,x3,y3... |
69 | dashedlines dashlines |
- | |
- | 72 | ||
70 | n dashed line segments (x1,y1)---(x2,y2)---(x3,y3)... |
73 | n dashed line segments (x1,y1)---(x2,y2)---(x3,y3)... |
71 | :dotfill x,y,nx,ny,[color] |
74 | :dotfill x,y,nx,ny,[color] |
72 | pointfill diskfill |
75 | pointfill diskfill |
73 | Flood fill the region containing (x,y) with the same original color by (fat) dots at each (nx,ny) pixels. |
76 | Flood fill the region containing (x,y) with the same original color by (fat) dots at each (nx,ny) pixels. |
74 | :dsegment x1,y1,x2,y2,[color] |
77 | :dsegment x1,y1,x2,y2,[color] |
Line 95... | Line 98... | ||
95 | :filltoborder x,y,[color1],[color2] |
98 | :filltoborder x,y,[color1],[color2] |
96 | 99 | ||
97 | Flood fill by color2 the region containing (x,y) and bounded by color1. |
100 | Flood fill by color2 the region containing (x,y) and bounded by color1. |
98 | :fpoly [color],x1,y1,x2,y2,x3,y3... |
101 | :fpoly [color],x1,y1,x2,y2,x3,y3... |
99 | filledpoly filledpolygon fpolygon |
102 | filledpoly filledpolygon fpolygon |
100 | Filled polygon (x1,y1)-(x2,y2)-(x3,y3)... |
103 | Filled polygon (x1,y1)--(x2,y2)--(x3,y3)... |
101 | :frect x1,y1,x2,y2,[color] |
104 | :frect x1,y1,x2,y2,[color] |
102 | filledrect fillecrectangle frectangle |
105 | filledrect fillecrectangle frectangle |
103 | Filled rectangle with corners (x1,y1) and (x2,y2). |
106 | Filled rectangle with corners (x1,y1) and (x2,y2). |
104 | :fsquare x,y,s,[color] |
107 | :fsquare x,y,s,[color] |
105 | filledsquare |
108 | filledsquare |
106 | Filled square with sides s (in pixels) and first corner at (x,y). |
109 | Filled square with sides s (in pixels) and first corner at (x,y). |
107 | :ftriangle x1,y1,x2,y2,x3,y3,[color] |
110 | :ftriangle x1,y1,x2,y2,x3,y3,[color] |
108 |
|
111 | filledtriangle |
109 | Filled triangle with vertices (x1,y1),(x2,y2),(x3,y3). |
112 | Filled triangle with vertices (x1,y1),(x2,y2),(x3,y3). |
110 | :gridfill x,y,nx,ny,[color] |
113 | :gridfill x,y,nx,ny,[color] |
111 | 114 | ||
112 | 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). |
115 | 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). |
113 | :hatchfill x,y,nx,ny,[color] |
116 | :hatchfill x,y,nx,ny,[color] |
Line 122... | Line 125... | ||
122 | :killaffine |
125 | :killaffine |
123 | 126 | ||
124 | Reset affine transformation to identity. |
127 | Reset affine transformation to identity. |
125 | :killbrush |
128 | :killbrush |
126 | 129 | ||
127 |
|
130 | Turns off brush selection for line drawing. |
128 | :killlinear |
131 | :killlinear |
129 | killrotation killrotate |
132 | killrotation killrotate |
130 | Reset linear transformation to identity. |
133 | Reset linear transformation to identity. |
131 | :killtile |
134 | :killtile |
132 | 135 | ||
Line 158... | Line 161... | ||
158 | :output [filename] |
161 | :output [filename] |
159 | 162 | ||
160 | Output the current image to [filename]. |
163 | Output the current image to [filename]. |
161 | :parallel x1,y1,x2,y2,xv,yv,n,[color] |
164 | :parallel x1,y1,x2,y2,xv,yv,n,[color] |
162 | 165 | ||
163 | n parallel |
166 | n parallel segments starting from (x1,y1)---(x2,y2), with displacement (xv,yv). |
164 | :pixels [color],x1,y1,x2,y2,... |
167 | :pixels [color],x1,y1,x2,y2,... |
165 | 168 | ||
166 | Points (all of diameter 1) at (x1,y1), (x2,y2), ... |
169 | Points (all of diameter 1) at (x1,y1), (x2,y2), ... |
167 | :plot [color],[formula] |
170 | :plot [color],[formula] |
168 | curve |
171 | curve |
Line 181... | Line 184... | ||
181 | (Fat) points at (x1,y1), (x2,y2), ..., whose diameters are equal to linewidth. |
184 | (Fat) points at (x1,y1), (x2,y2), ..., whose diameters are equal to linewidth. |
182 | :polygon [color],x1,y1,x2,y2,x3,y3... |
185 | :polygon [color],x1,y1,x2,y2,x3,y3... |
183 | poly |
186 | poly |
184 | Polygon (x1,y1)-(x2,y2)-(x3,y3)... |
187 | Polygon (x1,y1)-(x2,y2)-(x3,y3)... |
185 | :polyline [color],x1,y1,x2,y2,x3,y3... |
188 | :polyline [color],x1,y1,x2,y2,x3,y3... |
186 | brokenline |
189 | brokenline |
187 | n line segments (x1,y1)---(x2,y2)---(x3,y3)... |
190 | n line segments (x1,y1)---(x2,y2)---(x3,y3)... |
188 | :range x1,x2,y1,y2 |
191 | :range x1,x2,y1,y2 |
189 | 192 | ||
190 | 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]. |
193 | 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]. |
191 | :rays [color],x0,y0,x1,y1,x2,y2... |
194 | :rays [color],x0,y0,x1,y1,x2,y2... |
Line 208... | Line 211... | ||
208 | Reset n-th linear, affine transformation and n-th translation to initial values (identity or null vector). |
211 | Reset n-th linear, affine transformation and n-th translation to initial values (identity or null vector). |
209 | :rotation d |
212 | :rotation d |
210 | rotate |
213 | rotate |
211 | Make a rotation of degree d counter-clockwise (centered at (0,0)), for the subsequent objects. |
214 | Make a rotation of degree d counter-clockwise (centered at (0,0)), for the subsequent objects. |
212 | :segment x1,y1,x2,y2,[color] |
215 | :segment x1,y1,x2,y2,[color] |
213 | seg |
216 | seg |
214 | Line segment (x1,y1)---(x2,y2). |
217 | Line segment (x1,y1)---(x2,y2). |
215 | :segments [color],x1,y1,x2,y2,x3,y3,x4,y4, ... |
218 | :segments [color],x1,y1,x2,y2,x3,y3,x4,y4, ... |
216 | 219 | ||
217 | Line segments (x1; y1)---(x2; y2), (x3; y3)---(x4; y4), ... |
220 | Line segments (x1; y1)---(x2; y2), (x3; y3)---(x4; y4), ... |
218 | :setbrush [filename] |
221 | :setbrush [filename] |