Rev 10826 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
15514 | czzmrn | 1 | <h2 class="wimscenter">Dynamic drawing</h2> |
23 | reyssat | 2 | |
10826 | bpr | 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, |
||
5 | and the result will vary with the values of the variables. It is even possible to produce animations. |
||
6 | </p><p> |
||
7 | See also |
||
8 | !href cmd=help&special_parm=canvasdraw canvasdraw |
||
9 | $ $ for more interactivity possibilities. |
||
10 | </p><p> |
||
4091 | bpr | 11 | Syntax: |
5871 | bpr | 12 | </p> |
4091 | bpr | 13 | <pre> |
14 | \draw{xsize,ysize}{command...} |
||
15 | </pre> |
||
10826 | bpr | 16 | where <span class="tt">xsize, ysize</span> are respectively the width and height of the picture |
17 | (in number of pixels), and <span class="tt">command...</span> is the content of the commands. |
||
4091 | bpr | 18 | That is a text composed of several lines, each line being one command. |
23 | reyssat | 19 | <p> |
20 | !href cmd=help&special_parm=draw_example Example. |
||
5871 | bpr | 21 | </p> |
15514 | czzmrn | 22 | <hr/> |
23 | |||
23 | reyssat | 24 | !changeto help/flydraw.phtml |