I'm trying to create a program and found this website that was exactly what I wanted. When I followed all the instructions I got this java code which makes no sense and also gives errors when I try to assign a class. Please help.
http://labs.unwieldy.net/moocirclepack/
<script type="text/javascript" src="js/mootools-1.2-core-nc.js">
</script>
<script type="text/javascript" src="js/mootools-1.2-more.js">
</script>
<script type="text/javascript" src="js/excanvas.js"></script>
<script type="text/javascript" src="js/moocirclepack.js"></script>
}
var circles = [
new Circle(10, 10, 50, "rgba(120, 80, 120, 0.75)"),
new Circle(20, 25, 20, "rgba(174, 175, 76, 0.75)"),
new Circle(30, 40, 70, "rgba(88, 88, 120, 0.75)"),
new Circle(65, 65, 10, "rgba(205, 55, 140, 0.75)")
]
<canvas id="canvasElement" width="500" height="500"></canvas>
var packer = new MooCirclePack(circles, "canvasElement")
packer.run()
packer.hook()