to any SVG graphical object. Because of
its compatibility and leveraging of other Web
standards, features like scripting can be done
on XHTML and SVG elements simultane-
ously within the same Web page.
Thus, there are several advantages of using SVG:
• it can be used to draw an accurate figure and to
animate it smoothly.
• We can add to change the properties of the figures
interactively.
• Anyone can reproduce our experiment because
we used widely available equipment and software
that the data are described in open format.
2.2 Other Tools Making Figures with
Animation
One of tools making figures with animation is Pro-
cessing language(Processing.org, 2010).
Processing is an open source programming
language and environment for people who
want to create images, animations, and inter-
actions. ...
Processing gives the method to draw figures. When
one wants to animate the figures, one must draw the
figures on each frames. Moreover, the figures in Pro-
cessing is not the object, so one try to add the interac-
tivity to the figures, one needs more effors then SVG.
For these reasons, we do not use Processing.
3 ORIGINAL AND ANIMATED
JUDD ILLUSION
The thick arrow with a black dot in Figure 1 is the
original Judd illusion(Robinson, 1972, Fig. 2.21).
Figure 1: Judd illusion.
Although the dot is in the center of the main seg-
ment, it seems to shift left of center because of the
arrowhead and the back tail of the arrow. Most opti-
cal illusions, including the Judd illusion, can be per-
ceived in still pictures. However, movingillusions can
be derived from a still geometrical optical illusion by
gradually changing parameters like the angle between
the segments of the original still illusion.
For example, the length of the main segment in
the famous M¨uller-Lyer optical illusion is perceived
to expand and contract when the directions of the
arrow’s tail and arrowhead are alternately reversed
(Goto and Tanaka, 2005, p. 271). However no other
similar examples are known. Moreover, its move-
ment is not continuous but discrete. Therefore, we
investigated a new animated optical illusion created
by changing parameters of an optical illusion.
To demonstrate animation in the Judd illusion in
Figure 2, we prepared the code for SVG as follows:
BackwardForward
BackwardForward
BackwardForward
BackwardForward
Main Segment
Figure 2: Judd illusion with animation.
Program 1: Code of Animated Judd Illusion
1
<?xml version="1.0" encoding="UTF-8" ?>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
height="100%" width="100%">
5
<defs>
<g transform="rotate(45)" id="Line">
<line x1="0" y1="0" x2="30"
line-cap="round" stroke-width="10"
stroke="black" >
10
<animateTransform
attributeName="transform"
type="rotate"
values="30;150;150;30;30"
keyTimes="0;0.4;0.5;0.9;1"
15
repeatCount="indefinite"
dur="25s" fill="freeze" />
</line>
</g>
<g id="edge" >
20
<use xlink:href="#Line" />
<g transform="scale(1,-1)" >
<use xlink:href="#Line" />
</g>
</g>
25
</defs>
<g transform="translate(100,50)" >
<line x1="0" y1="0" x2="200" y2="0"
line-cap="round" stroke-width="10"
stroke="black" />
30
<circle cx="100" cy="0" r="10"
fill="black"/>
<use xlink:href="#edge"/>
<g transform="translate(200,0)" >
<use xlink:href="#edge"/>
35
</g>
</g>
</svg>
VISAPP 2011 - International Conference on Computer Vision Theory and Applications
402