mirror of
https://gitlab.com/MisterBiggs/bdfparse.git
synced 2025-06-16 06:26:39 +00:00
40 lines
451 B
Python
40 lines
451 B
Python
#%%
|
|
import numpy as np
|
|
import matplotlib.pyplot as plt
|
|
|
|
#%%
|
|
hexs = [
|
|
0x00,
|
|
0x00,
|
|
0x00,
|
|
0x00,
|
|
0x18,
|
|
0x24,
|
|
0x24,
|
|
0x42,
|
|
0x42,
|
|
0x7E,
|
|
0x42,
|
|
0x42,
|
|
0x42,
|
|
0x42,
|
|
0x00,
|
|
0x00,
|
|
]
|
|
bbx = (8, 16, 0, -2)
|
|
|
|
#%%
|
|
rows = []
|
|
for row in range(0, bbx[1]):
|
|
rows.append(list(f"{hexs[row]:0>42b}")[-(bbx[0] + 1) : -1])
|
|
|
|
|
|
#%%
|
|
plt.imshow(np.array(rows, dtype=int))
|
|
plt.show()
|
|
|
|
#%%
|
|
np.array(rows, dtype=int)
|
|
|
|
#%%
|