This is my very first experiment with paper.js and it's not working please guide me I'm adding paper.js with CDN I'm just trying to draw a circle on canvas
below are copy of my code and I also add output as attachment please find attached screenshot.
1 index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="main.css" rel="stylesheet" type="text/css" />
<title>Untitled Document</title>
</head>
<body>
<h1>My First Application</h1>
<!---<p>Welcome to <i>Learning JavaScript, 3rd Edition</i></p>---->
<canvas id="mainCanvas"></canvas>
<script
src="
https://code.jquery.com/jquery-2.1.1.min.js"
integrity="sha256-h0cGsrExGgcZtSZ/fRz4AwV+Nn6Urh/3v3jFRQ0w9dQ="
crossorigin="anonymous"></script>
<script src="
https://cdnjs.cloudflare.com/ajax/libs/paper.js/0.9.24/paper-full.min.js"></script>
<script src="main.js"></script>
</body>
</html>
<<....................................................................................................>>
2. main.css
@charset "utf-8";
/* CSS Document */
#mainCanvas{ width:400px; height:400px; border:solid 1px black;}
<<......................................................................................................>>
3.main.js
// JavaScript Document
$document.ready(function(){
'use strict';
paper.install(window);
paper.setup(document.getElementById('mainCanvas'));
var c = Shape.Circle(200, 200, 50);
c.fillColor = 'green';
paper.view.draw();
});