ELEVEN-POINT STARS
|
11-POINT STAR (11,1)
|
11-POINT STAR (11,1)
var interval = 1;
var nextpt = (360/11)*interval;
function drawStar(h,k,r){
ctx.beginPath();
ctx.lineWidth=3;
ctx.beginPath();
for(var theta = 0; theta < 11; theta++){
var x = h + r*Math.cos(theta*nextpt*Math.PI/180);
var y = k - r*Math.sin(theta*nextpt*Math.PI/180);
ctx.lineTo(x,y);
}
ctx.closePath();
ctx.stroke();
}
|
|
11-POINT STAR (11,2)
|
11-POINT STAR (11,2)
var interval = 2;
var nextpt = (360/11)*interval;
function drawStar(h,k,r){
ctx.beginPath();
ctx.lineWidth=3;
ctx.beginPath();
for(var theta = 0; theta < 11; theta++){
var x = h + r*Math.cos(theta*nextpt*Math.PI/180);
var y = k - r*Math.sin(theta*nextpt*Math.PI/180);
ctx.lineTo(x,y);
}
ctx.closePath();
ctx.stroke();
}
|
|
11-POINT STAR (11,3)
|
11-POINT STAR (11,3)
var interval = 3;
var nextpt = (360/11)*interval;
function drawStar(h,k,r){
ctx.beginPath();
ctx.lineWidth=3;
ctx.beginPath();
for(var theta = 0; theta < 11; theta++){
var x = h + r*Math.cos(theta*nextpt*Math.PI/180);
var y = k - r*Math.sin(theta*nextpt*Math.PI/180);
ctx.lineTo(x,y);
}
ctx.closePath();
ctx.stroke();
}
|
|
11-POINT STAR (11,4)
|
11-POINT STAR (11,4)
var interval = 4;
var nextpt = (360/11)*interval;
function drawStar(h,k,r){
ctx.beginPath();
ctx.lineWidth=3;
ctx.beginPath();
for(var theta = 0; theta < 11; theta++){
var x = h + r*Math.cos(theta*nextpt*Math.PI/180);
var y = k - r*Math.sin(theta*nextpt*Math.PI/180);
ctx.lineTo(x,y);
}
ctx.closePath();
ctx.stroke();
}
|
|
11-POINT STAR (11,5)
|
11-POINT STAR (11,5)
var interval = 5;
var nextpt = (360/11)*interval;
function drawStar(h,k,r){
ctx.beginPath();
ctx.lineWidth=3;
ctx.beginPath();
for(var theta = 0; theta < 11; theta++){
var x = h + r*Math.cos(theta*nextpt*Math.PI/180);
var y = k - r*Math.sin(theta*nextpt*Math.PI/180);
ctx.lineTo(x,y);
}
ctx.closePath();
ctx.stroke();
}
|
|
11-POINT STAR (11,6)
|
11-POINT STAR (11,6)
var interval = 6;
var nextpt = (360/11)*interval;
function drawStar(h,k,r){
ctx.beginPath();
ctx.lineWidth=3;
ctx.beginPath();
for(var theta = 0; theta < 11; theta++){
var x = h + r*Math.cos(theta*nextpt*Math.PI/180);
var y = k - r*Math.sin(theta*nextpt*Math.PI/180);
ctx.lineTo(x,y);
}
ctx.closePath();
ctx.stroke();
}
|
|
11-POINT STAR (11,7)
|
11-POINT STAR (11,7)
var interval = 7;
var nextpt = (360/11)*interval;
function drawStar(h,k,r){
ctx.beginPath();
ctx.lineWidth=3;
ctx.beginPath();
for(var theta = 0; theta < 11; theta++){
var x = h + r*Math.cos(theta*nextpt*Math.PI/180);
var y = k - r*Math.sin(theta*nextpt*Math.PI/180);
ctx.lineTo(x,y);
}
ctx.closePath();
ctx.stroke();
}
|
|
11-POINT STAR (11,8)
|
11-POINT STAR (11,8)
var interval = 8;
var nextpt = (360/11)*interval;
function drawStar(h,k,r){
ctx.beginPath();
ctx.lineWidth=3;
ctx.beginPath();
for(var theta = 0; theta < 11; theta++){
var x = h + r*Math.cos(theta*nextpt*Math.PI/180);
var y = k - r*Math.sin(theta*nextpt*Math.PI/180);
ctx.lineTo(x,y);
}
ctx.closePath();
ctx.stroke();
}
|
|
11-POINT STAR (11,9)
|
11-POINT STAR (11,9)
var interval = 9;
var nextpt = (360/11)*interval;
function drawStar(h,k,r){
ctx.beginPath();
ctx.lineWidth=3;
ctx.beginPath();
for(var theta = 0; theta < 11; theta++){
var x = h + r*Math.cos(theta*nextpt*Math.PI/180);
var y = k - r*Math.sin(theta*nextpt*Math.PI/180);
ctx.lineTo(x,y);
}
ctx.closePath();
ctx.stroke();
}
|
|
11-POINT STAR (11,10)
|
11-POINT STAR (11,10)
var interval = 10;
var nextpt = (360/11)*interval;
function drawStar(h,k,r){
ctx.beginPath();
ctx.lineWidth=3;
ctx.beginPath();
for(var theta = 0; theta < 11; theta++){
var x = h + r*Math.cos(theta*nextpt*Math.PI/180);
var y = k - r*Math.sin(theta*nextpt*Math.PI/180);
ctx.lineTo(x,y);
}
ctx.closePath();
ctx.stroke();
}
|
|