Rev 5871 | Rev 6133 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5871 | bpr | 1 | <h3 class="wimscenter">Dynamic drawing</h3> |
23 | reyssat | 2 | |
3 | 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, and the result will vary with the values of the variables. It is even possible to produce animations. |
||
5 | |||
6 | <p> |
||
4091 | bpr | 7 | Syntax: |
5871 | bpr | 8 | </p> |
4091 | bpr | 9 | <pre> |
10 | \draw{xsize,ysize}{command...} |
||
11 | </pre> |
||
5903 | bpr | 12 | 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. |
||
4091 | bpr | 14 | That is a text composed of several lines, each line being one command. |
23 | reyssat | 15 | <p> |
16 | |||
17 | !href cmd=help&special_parm=draw_example Example. |
||
5871 | bpr | 18 | </p> |
23 | reyssat | 19 | !changeto help/flydraw.phtml |