Rev 6133 | Rev 15514 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6133 | Rev 10826 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | < |
1 | <h2>Dynamic drawing</h2> |
2 | 2 | ||
3 | It is possible to include 2D drawings into the statement of your exercises |
3 | <p>It is possible to include 2D drawings into the statement of your exercises |
4 | (under html format). These drawings are dynamic, that is, you can use variables in your draw commands, |
4 | (under html format). These drawings are dynamic, that is, you can use variables in your draw commands, |
- | 5 | and the result will vary with the values of the variables. It is even possible to produce animations. |
|
5 | 6 | </p><p> |
|
- | 7 | See also |
|
- | 8 | !href cmd=help&special_parm=canvasdraw canvasdraw |
|
- | 9 | $ $ for more interactivity possibilities. |
|
6 | <p> |
10 | </p><p> |
7 | Syntax: |
11 | Syntax: |
8 | </p> |
12 | </p> |
9 | <pre> |
13 | <pre> |
10 | \draw{xsize,ysize}{command...} |
14 | \draw{xsize,ysize}{command...} |
11 | </pre> |
15 | </pre> |
12 | where <span class="tt">xsize, ysize</span> are respectively the width and height of the picture |
16 | where <span class="tt">xsize, ysize</span> are respectively the width and height of the picture |
13 | (in number of pixels), and <span class="tt">command...</span> is the content of the commands. |
17 | (in number of pixels), and <span class="tt">command...</span> is the content of the commands. |
14 | That is a text composed of several lines, each line being one command. |
18 | That is a text composed of several lines, each line being one command. |
15 | <p> |
19 | <p> |
16 | 20 | ||
17 | !href cmd=help&special_parm=draw_example Example. |
21 | !href cmd=help&special_parm=draw_example Example. |
18 | </p> |
22 | </p> |