This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.jColors = ['red', 'blue', 'brown', 'orange', 'yellow', 'pink', 'lightblue', 'lightgreen', 'lightgray']; | |
window.lColors = ['white', 'black', 'purple', 'darkgray', '#009']; | |
window.lWidths = [5, 10, 20]; | |
window.jCols = parseInt(document.getElementById('info-creator').innerText.match(/(\d+)×/)[1]); | |
window.jC = 0; | |
CanvasRenderingContext2D.prototype.putImageData = function(imageData, dx, dy){ | |
const col = window.jC % window.jCols; | |
const row = Math.floor(window.jC / window.jCols); | |
this.fillStyle = window.jColors[col % window.jColors.length]; | |
this.fillRect(-1000,-1000,2000,2000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Description: The point-in-polygon algorithm allows you to check if a point is | |
inside a polygon or outside of it. | |
Author: Michaël Niessen (2009) | |
Website: http://AssemblySys.com | |
If you find this script useful, you can show your | |
appreciation by getting Michaël a cup of coffee ;) | |
PayPal: [email protected] |