how to include fabric.js file in script
i want to try basic fabric plugin file ,when i copy code and run nothing
is displayed on screen.
<!DOCTYPE html>
<html lang="en">
<head>
<script></script>
<script src="js/jquery-1.9.1.js"></script>
<script src="js/fabric.js"></script>
<script>
$(document).ready(function(){
var circle = new fabric.Circle({
radius: 20, fill: 'green', left: 100, top: 100
});
var triangle = new fabric.Triangle({
width: 20, height: 30, fill: 'blue', left: 50, top: 50
});
canvas.add(circle, triangle);
});
</script>
</head>
<body>
<div>
<header>
<h1>canvas</h1>
</header>
</body>
</html>
this is the code i have copied , but it is displayoing nothing .
No comments:
Post a Comment