{"id":571,"date":"2023-05-30T21:04:33","date_gmt":"2023-05-30T19:04:33","guid":{"rendered":"http:\/\/www.sobersong-geo.com\/?page_id=571"},"modified":"2023-08-04T11:24:20","modified_gmt":"2023-08-04T09:24:20","slug":"puzzle","status":"publish","type":"page","link":"http:\/\/www.sobersong-geo.com\/puzzle\/","title":{"rendered":"puzzle"},"content":{"rendered":"\n

1 – ouvrir un puzzle jigidi<\/strong>
2 – CTRL + Maj + I<\/strong> , puis cliquer sur \u00ab\u00a0console\u00a0\u00bb
3 – Copier le code ci-apr\u00e8s et le coller dans la console
4 – Le lancer par la touche entr\u00e9e
5 – Pour finir, relancer le puzzle avec le bouton \u00ab\u00a0restart\u00a0\u00bb<\/strong><\/p>\n\n\n

\n
\"\"<\/figure><\/div>\n\n\n
<\/div>\n\n\n\n
<\/div>\n\n\n\n

<\/p>\n\n\n\n

\/\/ generated more contrasting colors using this tool: https:\/\/mokole.com\/palette.html\n\/\/ found the light colors hard to distinguish\nwindow.jColors = ['red', 'seagreen', 'gold', 'mediumvioletred', 'lime', 'blue', 'dodgerblue'];\nwindow.lColors = ['white', 'black', 'purple', 'darkgray', '#009'];\nwindow.lWidths = [3, 8, 13];\nwindow.jCols = parseInt(document.getElementById('info-creator').innerText.match(\/(\\d+)\u00d7\/)[1]);\nwindow.jC = 0;\nCanvasRenderingContext2D.prototype.putImageData = function (imageData, dx, dy) {\nconst col = window.jC % window.jCols;\nconst row = Math.floor(window.jC \/ window.jCols);\nthis.fillStyle = window.jColors[col % window.jColors.length];\nthis.fillRect(-1000, -1000, 2000, 2000);\nif (0 == (row % 2)) { this.fillStyle = '#ffffff33'; this.fillRect(-1000, -1000, 2000, 2000); }\nthis.fillStyle = window.lColors[row % window.lColors.length];\n\/\/ adjust position of vertical line - won't be aligned but still help differentiate columns with the same color\nthis.fillRect(-1000, 35, 2000, window.lWidths[row % window.lWidths.length]);\nthis.fillStyle = window.lColors[col % window.lColors.length];\nthis.fillRect(35, -1000, window.lWidths[col % window.lWidths.length], 2000);\n\/\/ little smaller font so that the numbers are less likely to be cut of on the edge of the tile\nthis.font = 'bold 11px sans-serif';\n\n\/\/ print the col first since i sort the cols first by color and it makes it more readable\n\/\/ print it a few times since not sure where the center of the tile is\n\/\/ print it in black and white for better contrast with darker and lighter colors (and simplicity ;) )\nthis.fillStyle = 'black';\nthis.fillText(`${col + 1},${row + 1} -- `.repeat(10), 0, 25);\nthis.fillText(`${col + 1},${row + 1} -- `.repeat(10), 0, 50);\nthis.fillText(`${col + 1},${row + 1} -- `.repeat(10), 0, 75);\n\nthis.fillStyle = 'white';\nthis.fillText(`${col + 1},${row + 1} -- `.repeat(10), 0, 38);\nthis.fillText(`${col + 1},${row + 1} -- `.repeat(10), 0, 63);\nthis.fillText(`${col + 1},${row + 1} -- `.repeat(10), 0, 88);\n\nwindow.jC++;\n}<\/code><\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

1 – ouvrir un puzzle jigidi2 – CTRL + Maj + I , puis cliquer sur \u00ab\u00a0console\u00a0\u00bb3 – Copier le code ci-apr\u00e8s et le coller dans la console4 – Le lancer par la touche entr\u00e9e5 – Pour finir, relancer le puzzle avec le bouton \u00ab\u00a0restart\u00a0\u00bb<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/www.sobersong-geo.com\/wp-json\/wp\/v2\/pages\/571"}],"collection":[{"href":"http:\/\/www.sobersong-geo.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.sobersong-geo.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.sobersong-geo.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.sobersong-geo.com\/wp-json\/wp\/v2\/comments?post=571"}],"version-history":[{"count":10,"href":"http:\/\/www.sobersong-geo.com\/wp-json\/wp\/v2\/pages\/571\/revisions"}],"predecessor-version":[{"id":586,"href":"http:\/\/www.sobersong-geo.com\/wp-json\/wp\/v2\/pages\/571\/revisions\/586"}],"wp:attachment":[{"href":"http:\/\/www.sobersong-geo.com\/wp-json\/wp\/v2\/media?parent=571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}