kopia lustrzana https://github.com/Wren6991/PicoDVI
Add 2bpp moon assets
rodzic
246b3f1148
commit
6bcf0e682d
Plik diff jest za duży
Load Diff
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 150 KiB |
Plik diff jest za duży
Load Diff
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 48 KiB |
|
@ -6,7 +6,7 @@ import os
|
|||
import struct
|
||||
import sys
|
||||
|
||||
FORMATS = ["argb1555", "rgab5515", "bgar5515", "rgb565", "argb1232", "ragb2132", "rgb332", "r1", "p8", "p4", "p2", "p1"]
|
||||
FORMATS = ["argb1555", "rgab5515", "bgar5515", "rgb565", "argb1232", "ragb2132", "rgb332", "r2", "r1", "p8", "p4", "p2", "p1"]
|
||||
|
||||
def bytes_from_bitstream_le(bitstream):
|
||||
accum = 0
|
||||
|
@ -85,7 +85,8 @@ rgb_formats = {
|
|||
"argb1232": (8, ((6, 5), (4, 2), (1, 0), (7, 7))),
|
||||
"ragb2132": (8, ((7, 6), (4, 2), (1, 0), (5, 5))),
|
||||
"rgb332" : (8, ((7, 5), (4, 2), (1, 0))),
|
||||
"r1" : (1, ((0, 0), (-1, 0), (-1, 0)))
|
||||
"r2" : (2, ((1, 0), (-1, 0), (-1, 0))),
|
||||
"r1" : (1, ((0, 0), (-1, 0), (-1, 0))),
|
||||
}
|
||||
|
||||
def format_pixel(format, src_has_transparency, pixel, dither=False, dithercoord=None):
|
||||
|
|
Ładowanie…
Reference in New Issue