|
if(typeof bringo == "undefined")bringo=[];
steps.value=1;
stpEnd.value=91;
scodeX.value = "bringo[o*3]+400";
scodeY.value = "bringo[u*3+1]+280";
for (let i = 0; i < 32; i++) {
const a = i * Math.PI; // 22.5 degrees
const cos = Math.cos((a+45)/11.02)*1.4;
const sin = Math.sin((a+45)/11.02)*1.4;
bringo.push(
Math.round(170 * cos), Math.round(170 * sin), 0,
Math.round(106 * cos), Math.round(106 * sin), 64,
Math.round(43 * cos), Math.round(43 * sin), 0,
Math.round(106 * cos), Math.round(106 * sin), -64
);
}
|