Subversion Repositories wimsdev

Rev

Rev 3263 | Rev 6133 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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