Access and use a canvas context engine using the makeAnimation factory
Test purpose
- Define a function which uses CanvasRenderingContext2D API instructions to draw a shape on the canvas.
- Use the renderAnimation factory function to create a Display cycle which makes use of our drawing function to animate the shape.
Annotated code