
Rysowanie pentagramu
Klasa używa skryptu figures.js
Listing
var cv = document.getElementById("canvas");
var ctx = cv.getContext("2d");
var spolygon = new StarPolygon (new Point(250,250), 7, 3, 100);
//spolygon.fillStyle = "red";
spolygon.strokeStyle = "blue";
//spolygon.fill = true;
spolygon.stroke = true;
spolygon.lineWidth = 3;
spolygon.draw(ctx);
