Changeset 0033a40 in ammosreader
- Timestamp:
- 07/04/22 13:08:22 (3 years ago)
- Branches:
- AmmosSource, guix
- Children:
- a19529a
- Parents:
- d2f9280
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sample_scripts/ammos_viewer.py
rd2f9280 r0033a40 81 81 self.cycle.get())]) 82 82 bits = bitstring.BitArray(self.bytes) 83 return (bits << self.offset.get()).tobytes() 83 new_bytes = bits[self.offset.get()*8:].tobytes() 84 return b"".join([new_bytes[each: each+self.canvas_size[0]] for each in range(0, 85 len(new_bytes), 86 self.cycle.get())]) 84 87 85 88 def update_canvas(self):
Note:
See TracChangeset
for help on using the changeset viewer.