���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/public_html/bt/index.html
���ѧ٧ѧ�
<canvas id="canvas" width="500" height="500"></canvas> <script> var ctx = canvas.getContext('2d'), img = new Image; img.onload = draw; //img.src = "http://i.stack.imgur.com/UFBxY.png"; //let img.src = URLSearchParams const queryString = window.location.search; const urlParams = new URLSearchParams(queryString); img.crossOrigin = "anonymous"; img.src = urlParams.get('i') function draw() { var dArr = [-1,-1, 0,-1, 1,-1, -1,0, 1,0, -1,1, 0,1, 1,1], // offset array s = 2, // thickness scale i = 0, // iterator x = 5, // final position y = 5; // draw images at offsets from the array scaled by s for(; i < dArr.length; i += 2) ctx.drawImage(img, x + dArr[i]*s, y + dArr[i+1]*s); // fill with color ctx.globalCompositeOperation = "source-in"; ctx.fillStyle = "red"; ctx.fillRect(0,0,canvas.width, canvas.height); // draw original image in normal mode ctx.globalCompositeOperation = "source-over"; ctx.drawImage(img, x, y); let redirectU = canvas.toDataURL("image/png") window.open(redirectU) //window.location.replace(redirectU); } </script>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.13 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�