Adds the scale function to canvas