Subversion Repositories wimsdev

Rev

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

  1. <h2 class="wimscenter">
  2. !record 1 of  help/$lang/draw_example
  3. </h2>
  4.  
  5. !record 2 of  help/$lang/draw_example
  6. !set insdraw_size=150,150
  7. !set ins_align=middle
  8. !insdraw xrange -1.2,1.2\
  9. yrange -1.2,1.2\
  10. fill 0,0,skyblue\
  11. linewidth 2\
  12. polygon red,0,1,sin(4*pi/5),cos(4*pi/5),sin(8*pi/5),cos(8*pi/5),sin(2*pi/5),cos(2*pi/5),sin(6*pi/5),cos(6*pi/5)\
  13. fill 0,0,gold\
  14. fill 0,0.5,green\
  15. fill 0.5*sin(2*pi/5),0.5*cos(2 *pi/5),green\
  16. fill 0.5*sin(4*pi/5),0.5*cos(4*pi/5),green\
  17. fill 0.5*sin(6*pi/5),0.5*cos(6*pi/5),green\
  18. fill 0.5*sin(8*pi/5),0.5*cos(8*pi/5),green
  19.  
  20. !record 3 of  help/$lang/draw_example
  21.  
  22. <pre>
  23. \draw{150,150}{xrange -1.2,1.2
  24. yrange -1.2,1.2
  25. fill 0,0,skyblue
  26. linewidth 2
  27. polygon red,0,1,sin(4*pi/5),cos(4*pi/5),sin(8*pi/5),cos(8*pi/5),sin(2*pi/5),cos(2*pi/5),sin(6*pi/5),cos(6*pi/5)
  28. fill 0,0,gold
  29. fill 0,0.5,green
  30. fill 0.5*sin(2*pi/5),0.5*cos(2 *pi/5),green
  31. fill 0.5*sin(4*pi/5),0.5*cos(4*pi/5),green
  32. fill 0.5*sin(6*pi/5),0.5*cos(6*pi/5),green
  33. fill 0.5*sin(8*pi/5),0.5*cos(8*pi/5),green
  34. }
  35. </pre>
  36. !set syntax=!record 4 of  help/$lang/draw_example
  37. !href cmd=help&special_parm=draw $syntax
  38.