Hi
Here an example to draw a simple animation.
Otherwise you can take a look on plugin Composition Helper
in this plugin you’ll see how to draw on a paint layer and vector layer (but maybe the code is not “easy” to follow for a beginner… )
Grum999