Subversion Repositories wimsdev

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
<center><h3>Voorbeeld van een dynamische tekening.</h3></center>
2
 
3
Het plaatje
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
 
18
 word gegenereerd door het volgende commando:
19
 <small>let op ; alle opdrachtregels beginnen op een nieuwe regel</small>
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>
34
!href cmd=help&special_parm=draw  syntax regels.
35
<p>