HTML and CSS Reference
Step 7: Create the paddle
To complete all of these tasks and create a paddle, follow the next listing, which combines
four arcs into a pill shape and colors that shape with a gradient. Add the following methods
and properties to your existing Paddle object.
Listing 6.8. game.js—Paddle creation