Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
814 B
0
Indexable
Never
    let zz = 0;
        let aa = 0;
        if (xx<1) {zz = -2;}
        else if (xx<2){zz = -1.5}
           else if (xx<3){zz = -0.7}
         else if (xx<4){zz = 0.7}
             else if (xx<5){zz = 2.1}
            else  if (xx<6){zz = 4.5}
             else {zz = 7.3}

               if (yy<1) {aa = -5;}
        else if (yy<2){aa = -3.5}
           else if (yy<3){aa = -1.5}
         else if (yy<4){aa = 0}
             else if (yy<5){aa = 1.85}
            else  if (yy<6){aa = 3.29}
              else  if (yy<7){aa = 5}

        div.style.left = this.margin + this.step * ((this.xOffset + xx)) + zz + "%";
        div.style.top = (this.yStretch * this.margin + this.step * (this.yOffset + yy)) + aa + "%";
        div.style.transform = "translate(-50%, -50%) rotate(" + arc + "deg)";
Leave a Comment