ソースを参照

fix titlescreen

SBird1337 5 年 前
コミット
3ed96e17a8
共有3 個のファイルを変更した0 個の追加15 個の削除を含む
  1. 0
    14
      hex2rgba.py
  2. バイナリ
      pkmn_sots.dmp
  3. 0
    1
      test.txt

+ 0
- 14
hex2rgba.py ファイルの表示

@@ -1,14 +0,0 @@
1
-import struct
2
-
3
-with open("pkmn_sots.dmp", "rb") as f:
4
-    output = ""
5
-    while True:
6
-        s = f.read(2)
7
-        if not s:
8
-            break
9
-        col = struct.unpack("<H", s)[0]
10
-        r = col & 0x1F
11
-        g = (col >> 5) & 0x1F
12
-        b = (col >> 10) & 0x1F
13
-        output = output + "rgb82rgb5(0x{:02x},0x{:02x},0x{:02x}), ".format(r*8,g*8,b*8)
14
-    print(output)

バイナリ
pkmn_sots.dmp ファイルの表示


+ 0
- 1
test.txt ファイルの表示

@@ -1 +0,0 @@
1
-rgb82rgb5(0x00,0x80,0x00), rgb82rgb5(0x28,0x50,0x90), rgb82rgb5(0x30,0x68,0xb0), rgb82rgb5(0xc0,0x98,0x10), rgb82rgb5(0x58,0x78,0x98), rgb82rgb5(0x78,0x88,0x50), rgb82rgb5(0xf0,0xc0,0x08), rgb82rgb5(0x20,0x38,0x70), rgb82rgb5(0x30,0x58,0xa0), rgb82rgb5(0x30,0x60,0xa8), rgb82rgb5(0x48,0x68,0x98), rgb82rgb5(0x88,0x88,0x50), rgb82rgb5(0xd8,0xb0,0x08), rgb82rgb5(0xe8,0xb8,0x08), rgb82rgb5(0xf8,0xc8,0x00), rgb82rgb5(0x68,0x78,0x80), rgb82rgb5(0xb0,0xa0,0x40), rgb82rgb5(0x30,0x38,0x68), rgb82rgb5(0xe8,0xe8,0xf8), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x68,0xa8,0xd0), rgb82rgb5(0xf8,0xf8,0xf8), rgb82rgb5(0x48,0x90,0xb8), rgb82rgb5(0xe0,0xe8,0xf0), rgb82rgb5(0x38,0x80,0xa8), rgb82rgb5(0xb8,0xd0,0xe8), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x40,0x60,0x90), rgb82rgb5(0x38,0x40,0x68), rgb82rgb5(0xb0,0xd8,0xf8), rgb82rgb5(0x80,0xb8,0xf8), rgb82rgb5(0x58,0x88,0xb8), rgb82rgb5(0x98,0x38,0x48), rgb82rgb5(0xf8,0xa8,0x90), rgb82rgb5(0x38,0x38,0x30), rgb82rgb5(0xf8,0x70,0x48), rgb82rgb5(0xd8,0x48,0x50), rgb82rgb5(0x70,0xa8,0xd8), rgb82rgb5(0x50,0x70,0xd0), rgb82rgb5(0x60,0x60,0x58), rgb82rgb5(0xf0,0xf0,0xf0), rgb82rgb5(0x48,0x50,0x80), rgb82rgb5(0x00,0x80,0x00), rgb82rgb5(0x78,0x78,0x70), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x48,0x48,0x40), rgb82rgb5(0xe8,0xe8,0xf8), rgb82rgb5(0x30,0x30,0x28), rgb82rgb5(0xa8,0xa8,0xa8), rgb82rgb5(0x20,0x20,0x18), rgb82rgb5(0x18,0x18,0x10), rgb82rgb5(0x08,0x08,0x08), rgb82rgb5(0x38,0x38,0x30), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x70,0xa8,0xd8), rgb82rgb5(0x80,0xb8,0xf8), rgb82rgb5(0x58,0x88,0xb8), rgb82rgb5(0x60,0x60,0x58), rgb82rgb5(0x30,0x30,0x28), rgb82rgb5(0x40,0x60,0x90), rgb82rgb5(0xe8,0xa0,0x28), rgb82rgb5(0x38,0x38,0x30), rgb82rgb5(0xb0,0xd8,0xf8), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00), rgb82rgb5(0x00,0x00,0x00),