# Variable initialisation file.
# This file is read by wims for new sessions.

!for i in transparent,loop,rotate
 !if $(set_$i) notwordof 0 1
  set_$i=
 !endif
!next i
!default set_transparent=0
!default set_loop=1
!default set_rotate=0

!if $type notwordof quadratic
 type=
!endif
!default type=quadratic

sizecnt=5
!if $size notwordof 1 2 3 4 5
 size=
!endif
!default size=3
size_base=!item $size of 0.32,0.4,0.5,0.62,0.77

qualitylst=7,12,20,30,50,75,100
qualitycnt=!itemcnt $qualitylst
quality=$[floor($quality)]
!if $quality>$qualitycnt or $quality<1 or NaN isin $quality
 quality=
!endif
!default quality=3
ins_anim_frames=!item $quality of $qualitylst

speedcnt=5
!if $speed notwordof 1 2 3 4 5
 speed=
!endif
!default speed=2
ins_anim_delay=!eval 1.7^($speed-1)/$ins_anim_frames

densitycnt=5
!if $density notwordof 1 2 3 4 5
 density=
!endif
!default density=3
tram_density=!item $density of 0.65,0.8,1,1.3,1.7

!if $angle1 notwordof 0 10 20 30 40 50 60 70 80 90
 angle1=
!endif
!default angle1=20

!if $angle2 notwordof 0 15 30 45 60 75 90 105 120 135 150 165 180
 angle2=
!endif
!default angle2=15

