Hello,
could somebody explain to me what is the Figure abstraction (./scala/net/kogics/kojo/figure/Figure.scala)?
I am reading the source code with the intent to understand enough that I can write a little introduction and a reference in Hungarian for my children. I found that "animate{...}" is delegated to figure0, using its refresh method.
Then I found that the canvas implementation has a list of turtles and a list of figures. I kind of understand the reason to have a list of turtles. But other then a few builtins delegating to figure0, I don't see the figures being used for anything. The newFigure call seems to be called only at one call site, for example, when figure0 is instantiated.
I did read the source of Figure.scala, and I'll read it a few more times, yet if somebody could explain to me the thought behind it, it would be very appreciated.
Thanks,
Baldvin