Digital Mark λ 📚 🕹 💾 🥃 on Nostr: % for y in {0..48}; do for x in {0..21}; do echo "$x,$y=$((x*16)),$((y*16))"; ...
% for y in {0..48}; do for x in {0..21}; do echo "$x,$y=$((x*16)),$((y*16))"; ImageUtil --clip $((x*16)) $((y*16)) 16 16 --resize 32 32 tilesheet-tcp.png `printf "tile-%02d,%02d.png" y x`; done; done
Uuuugh. ImageUtil is a 20-year-old program in Java I keep because nobody else has all the tools I needed, and it's way too much work to rewrite in something nice. Takes like 2 seconds to start up each time.
Published at
2024-12-28 11:17:11Event JSON
{
"id": "51a201db28331cab36dd0998d7eca31d75f1f7ba1581d6da75367bdef810c91f",
"pubkey": "fb87acbaf8ba707e56cf4f028fd6cc1e99b8a78fe8327cab70915f15631b0672",
"created_at": 1735384631,
"kind": 1,
"tags": [
[
"e",
"7e5095b4e909a2641bb22c7558d0eaa7c124e7a8a05588aeb7838fe3ec3a59ea",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://appdot.net/users/mdhughes/statuses/113730167184021464",
"activitypub"
]
],
"content": "% for y in {0..48}; do for x in {0..21}; do echo \"$x,$y=$((x*16)),$((y*16))\"; ImageUtil --clip $((x*16)) $((y*16)) 16 16 --resize 32 32 tilesheet-tcp.png `printf \"tile-%02d,%02d.png\" y x`; done; done\n\nUuuugh. ImageUtil is a 20-year-old program in Java I keep because nobody else has all the tools I needed, and it's way too much work to rewrite in something nice. Takes like 2 seconds to start up each time.",
"sig": "efd4c22354c3ebe7278b0945049aca3be24eae7b9e72ea0378bb027f025ca8d32f2beded69d04322d6d21f0d92fb415cf7b23cc557e97aa10434c8cc07b4b0f8"
}