Subversion Repositories wimsdev

Rev

Rev 15514 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. <h2 class="wimscenter">Dynamic drawing</h2>
  2.  
  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>
  11. Syntax&#58;
  12. </p>
  13. <pre>
  14. \draw{xsize,ysize}{command...}
  15. </pre>
  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.
  18. That is a text composed of several lines, each line being one command.
  19. <p>
  20. !href cmd=help&special_parm=draw_example Example.
  21. </p>
  22. <hr/>
  23.  
  24. !changeto help/flydraw.phtml
  25.