I do not understand these errors as I've never come across them. If anyone could be of assistance, that would greatly be appreciated. The code is supposed to result in a circle formed for a key pressed at random positions while shrinking in size until it is removed from the page. The code works on Firefox Developer Edition however I still get only the deprecation error. I used the paper.js library.
Html
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
    <script type="text/javascript"
            src="assets/js/lib/paper-full.js">
    </script>
    <link   rel="stylesheet"
            href="assets/css/circles.css">
    <script type="text/paperscript"
            canvas="myCanvas"
            src="assets/js/circles.js">
    </script>
  </head>
  <body>
    <canvas id="myCanvas" resize></canvas>
  </body>
</html>
CSS
canvas{
  width: 100%;
  background-color: grey;
  height: 100%;
}
html, body{
  margin: 0%;
  width: 100%;
  height: 100%;
}
Javascript
var circles = [];
function onKeyDown(event){
  var maxPoint = new Point(view.size.width, view.size.height);
  var randomPoint = Point.random();
  var point = maxPoint * randomPoint;
  circles.push(new Path.Circle({
    center: point,
    radius: 500,
    fillColor: 'violet'
  }));
}
function onFrame(event){
  for(var i=0; i<circles.length; i++){
    circles[i].fillColor.hue += 1;
    circles[i].scale(.9);
  }
}
