mirror of
https://github.com/OOOO00000000OOOO/80O08
synced 2026-11-19 07:48:19 +00:00
This commit is contained in:
parent
d5dc17e558
commit
8838990d8e
@ -0,0 +1,68 @@
|
||||
<html><!--
|
||||
Page saved with SingleFile
|
||||
url: https://api.raindrop.io/v2/raindrop/1778930910/file?type=text/plain
|
||||
saved date: Thu Oct 15 2026 04:27:54 GMT+0300 (GMT+03:00)
|
||||
--><meta charset=utf-8><meta name=referrer content=no-referrer><link rel=canonical href="https://api.raindrop.io/v2/raindrop/1778930910/file?type=text/plain"><body><script type=application/json data-single-file-options>{"saveUrl":"https://api.raindrop.io/v2/raindrop/1778930910/file?type=text/plain","saveDate":1792027674610,"visitDate":1792027669304,"filenameTemplate":" /𖡗/·/𖤞/𖥚/𖡼/🀙/𖥤/🕸️/🕸️🌐︎🕸️/𖢒/𐄪/{bookmark-pathname}/{url-href}/{page-title} 𖥕𖤞𖥕 {year-utc}.{month-utc}.{day-utc} 🌣 {hours-utc}.{minutes-utc}.{seconds-utc} . {filename-extension}","filenameReplacedCharacters":[" ",".","-",")","(","0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","А","Б","В","Г","Д","Е","Ё","Ж","З","І","И","Й","К","Л","М","Н","О","П","Р","С","Т","У","Ў","Ф","Х","Ц","Ч","Ш","Щ","Ъ","Ы","Ь","Э","Ю","Я","а","б","в","г","д","е","ё","ж","з","і","и","й","к","л","м","н","о","п","р","с","т","у","ў","ф","х","ц","ч","ш","щ","ъ","ы","ь","э","ю","я","~","+","?","&","%","*",":","|","\"","<",">","\\\\","\u0000-\u001f",""],"filenameReplacementCharacter":"◯","filenameReplacementCharacters":[" 𖢄 "," ⚙ ","⊹"," ᕲ "," ᕳ ","ⵔ","·","꞉","⋮","⁘","⸭","⠿","፨","❋","𐧾","⛋","𖢌","⯏","🟗","🜊","𖥠","Ⱉ","⊞","ⵙ","𐫰","✻","◇","✸","𑽇","Ⓞ","🝊","¤","⦻","𖧷","✢","𐫱","🟅","🟏","ꕤ","✧","🝱","⛋","𖢌","⯏","🟗","🜊","𖥠","Ⱉ","⊞","ⵙ","𐫰","✻","◇","✸","𑽇","Ⓞ","🝊","¤","⦻","𖧷","✢","𐫱","🟅","🟏","ꕤ","✧","🝱","⛋","⧲","𖢌","🮻","🟗","🜊","🜋","𐋅","᪥","∣","∣","ꖌ","✻","◇","✸","⊞","Ⓞ","☐","🝊","⯏","✢","✧","✦","𖥠","ꕤ","⧮","⑄","◫","⎅","❂","∣❁∣","❁","𖡛","𖥤","ⵙ","⛋","⧲","𖢌","🮻","🟗","🜊","🜋","𐋅","᪥","∣","∣","ꖌ","✻","◇","✸","⊞","Ⓞ","☐","🝊","⯏","✢","✧","✦","𖥠","ꕤ","⧮","⑄","◫","⎅","❂","∣❁∣","❁","𖡛","𖥤","ⵙ","~","+","𖣓"," 𖥤 ","%","*"," ⦂ ","|",""","<",">","\","",""],"filenameMaxLengthUnit":"chars","filenameMaxLength":"7625597484987","replaceEmojisInFilename":false,"compressContent":false,"selfExtractingArchive":false,"disableCompression":false,"extractDataFromPage":false,"referrer":"","title":"","info":{"description":"","lang":"","author":"","creator":"","publisher":"","heading":""}}</script><pre><TITLE>𔗢⩩𔗢𖤞𔗢⩩𔗢𖥕𔗢⩩𔗢𖤞𔗢⩩𔗢᯽𔗢⩩𔗢𖤞𔗢⩩𔗢𖥕𔗢⩩𔗢𖤞𔗢⩩𔗢 𔗢⩩𔗢𖤞𔗢⩩𔗢𖥕𔗢⩩𔗢𖤞𔗢⩩𔗢᯽𔗢⩩𔗢𖤞𔗢⩩𔗢𖥕𔗢⩩𔗢𖤞𔗢⩩𔗢</TITLE>
|
||||
<meta charset="UTF-8">
|
||||
<head>
|
||||
<style>
|
||||
html, body {margin: 0;width: 100%;height: 100%;overflow: hidden;background: #00F47C00;}
|
||||
#grid {position: fixed;left: 50%;top: 50%;transform: translate(-50%, -50%);}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="s"></div>
|
||||
<canvas id="grid"></canvas>
|
||||
|
||||
<script>
|
||||
const COLOR_STEP = "AUTO";
|
||||
|
||||
const G = Math.pow(3, 3);
|
||||
const PIXEL_SIZE = Math.pow(3, 2);
|
||||
const STEP = PIXEL_SIZE + 2 * PIXEL_SIZE;
|
||||
const GAP = (STEP - PIXEL_SIZE) / 2;
|
||||
|
||||
const canvas = document.getElementById("grid");
|
||||
canvas.width = G * STEP;
|
||||
canvas.height = G * STEP;
|
||||
|
||||
const ctx = canvas.getContext("2d", { alpha: true });
|
||||
|
||||
const totalPixels = G * G;
|
||||
const onesCount = new Uint8Array(totalPixels);
|
||||
let maxOnes = 0;
|
||||
|
||||
for (let i = 1; i < totalPixels; i++) {
|
||||
onesCount[i] = onesCount[(i / 3) | 0] + (i % 3 === 1 ? 1 : 0);
|
||||
if (onesCount[i] > maxOnes) maxOnes = onesCount[i];
|
||||
}
|
||||
|
||||
const center = G >> 1;
|
||||
const centerIdx = center * G + center;
|
||||
const target = onesCount[centerIdx];
|
||||
|
||||
for (let y = 0; y < G; y++) {
|
||||
for (let x = 0; x < G; x++) {
|
||||
const idx = y * G + x;
|
||||
const val = onesCount[idx];
|
||||
|
||||
let v;
|
||||
if (COLOR_STEP === "AUTO") {
|
||||
v = Math.round(255 * (val / maxOnes));
|
||||
} else if (COLOR_STEP === "0" || COLOR_STEP === 0) {
|
||||
v = 255;
|
||||
} else {
|
||||
v = 255 - (target - val) * Number(COLOR_STEP);
|
||||
v = v < 0 ? 0 : v > 255 ? 255 : v;
|
||||
}
|
||||
|
||||
ctx.fillStyle = `rgba(${v},${v},${v},${v / 255})`;
|
||||
ctx.fillRect(x * STEP + GAP, y * STEP + GAP, PIXEL_SIZE, PIXEL_SIZE);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html></pre>
|
||||
Loading…
x
Reference in New Issue
Block a user