add top10 canvas to historyDownload.py

change size of top10 canvas *2
change README to mention that we do power of 2 now
This commit is contained in:
HF 2022-06-28 00:18:34 +02:00
parent 0ad3762878
commit 1efd40ca4e
3 changed files with 17 additions and 2 deletions

View File

@ -131,7 +131,7 @@ Meaning of some values:
| Key | Description |
|--------|:----------------------------------------------------------------|
| ident | Unique character used in the url |
| size | canvas size, power of 4 and between 256 and 65536 |
| size | canvas size, power of 2 and between 256 and 65536 |
| bcd | Base cooldown for unset pixels |
| pcd | Cooldown for placing on set pixels (defaults to same as bcd) |
| cds | Stack time of Cooldown |

View File

@ -297,7 +297,13 @@
[ 67, 52, 85 ],
[ 0, 0, 0 ]
],
"size": 1024,
"size": 2048,
"historicalSizes": [
[
"20220626",
1024
]
],
"bcd": 15000,
"cds": 900000,
"req": "top",

View File

@ -54,6 +54,15 @@ canvases = [
"canvas_id": 7,
"bkg": (0, 0, 0),
},
{
"canvas_name": "top10",
"canvas_size": 2048,
"canvas_id": 8,
"bkg": (197, 204, 184),
"historical_sizes" : [
["20220626", 1024],
]
},
]
async def fetch(session, url, offx, offy, image, bkg, needed = False):