File: draw_example.phtml

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (37 lines) | stat: -rw-r--r-- 1,089 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<h2 class="wimscenter">
!record 1 of  help/$lang/draw_example
</h2>

!record 2 of  help/$lang/draw_example
!set insdraw_size=150,150
!set ins_align=middle
!insdraw xrange -1.2,1.2\
yrange -1.2,1.2\
fill 0,0,skyblue\
linewidth 2\
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)\
fill 0,0,gold\
fill 0,0.5,green\
fill 0.5*sin(2*pi/5),0.5*cos(2 *pi/5),green\
fill 0.5*sin(4*pi/5),0.5*cos(4*pi/5),green\
fill 0.5*sin(6*pi/5),0.5*cos(6*pi/5),green\
fill 0.5*sin(8*pi/5),0.5*cos(8*pi/5),green

!record 3 of  help/$lang/draw_example

<pre>
\draw{150,150}{xrange -1.2,1.2
yrange -1.2,1.2
fill 0,0,skyblue
linewidth 2
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)
fill 0,0,gold
fill 0,0.5,green
fill 0.5*sin(2*pi/5),0.5*cos(2 *pi/5),green
fill 0.5*sin(4*pi/5),0.5*cos(4*pi/5),green
fill 0.5*sin(6*pi/5),0.5*cos(6*pi/5),green
fill 0.5*sin(8*pi/5),0.5*cos(8*pi/5),green
}
</pre>
!set syntax=!record 4 of  help/$lang/draw_example
!href cmd=help&special_parm=draw $syntax