timing of an animation
Two simple animateTransform are used to test accurate rendering and timing.
SVG tiny requires a rendering accuracy within one device pixel and
a number range between -32767.9999 and +32767.9999 for the
data type number.
A blue circle is far outside of the rendered area but inside the allowed
number range (distance 32000). This is rotated with a duration of
32767.9999ms starting with -32767.9999 degree and ending with a
larger value either of random choice or given with the GET-parameter 'phi'.
A parent g element is rotated in the opposite direction and a simple values
animateTransform of the translation type is applied to another parent g
element in such a way, that the circle is centered always at the rotation
center.
Therefore the circle does not move and covers always an
underlying red stroked circle completely within an accuracy
below one device pixel.
If more than such a residual of red is visible or the circles are not
rendered as circles, an error is occured.
To get the highest accuracy for the test, the size of the document
and therefore the viewport in the viewer has to be as large as
possible.
The blue circle is switched to gray if the test animation is finished.
The test has five optional GET-parameters, one is the radius of
the circles (rad) within the range from 0.0001 to 1000 and the
end angle of the animation (phi) within the
range from -32400 to 32400 degree. The fraction of
rad and phi cannot have more than 4 digits.
The third parameter is a scaling factor (sc integer
between 2 and 20) for the viewBox relative to the radius of the circle.
This is useful only to analyse errors
(larger deviations), if the blue circle is not displayed in the viewport.
The last two parameters cx and cy are the position of the circle,
both in the range -32710 to -32710 with not more than 4 digits for
the fractional part.