The animation method
[disp1]
value=rx_data_cnt
method=animation
rect=44,41,55,59
bitmap=rx_bullet.tga
mod=14
min=0
max=13
frames=14
The
bitmap
contains 14
frames
to comprise a complete up-and-down cycle that can be run indefinitely. Because the
rx_data_cnt
parameter is a simple counter (meaning it will increase continuously while
cFos/cFosSpeed
is running), we'll need to perform a
mod
(ulo) calculation to keep the value within the range of
min
and
max
.
Positioning the motion is done by setting rect to the coordinates of the frame's upper left corner and to those of a pixel just right of and below the frame's lower right corner (both shown bright red in the magnified part of the sample image).
If we want a similar display for outgoing packets, this can be accomplished simply enough by copying this section and changing the disp name along with the value and rect entries:
[disp2]
value=tx_data_cnt
method=animation
rect=44,58,55,76
bitmap=rx_bullet.tga
mod=14
min=0
max=13
frames=14
So, adding
transform1=15,0,0,40,255,255,100,0,0,120,230,210
to the parameters above would transform the color from orange to green, while also reducing saturation and brightness.
Next step: