Let’s look at the draw() function. This will be the start of a more complicated drawing program. This function takes one parameter, the type of context 2d. HTML: /echo/html/ XML: /echo/xml/ See docs for more info. is this possible without storyboards or any 'animation' class? Finally, we set the drag Boolean to true. context.rect(xCoordinate,yCoordinate,width, height); where xCoordinates is x coordinates of starting point of rectangle and yCoordinates is the y Coordinate of starting point of rectangle.