September 2022
Intermediate to advanced
564 pages
9h 56m
English
Animation lends itself to test-driven development just as much as any other feature. In this chapter, we’ll animate the Logo turtle movement as the user inputs commands.
There are two types of animation in Spec Logo:
Much of this chapter is about test-driving the window.requestAnimationFrame function. This is the browser API that allows us to animate visual elements on the screen, ...