dotmatrix
dotmatrix copied to clipboard
Feature Request: Matrix manipulation
Description
It would be nice to be able to rotate/transpose/crop/shift/etc. any give matrix.
Code
from dotmatrix import Matrix
m = Matrix(5, 5)
print("Initial")
m.polygon((0, 0), (0, 4), (4, 4))
print(m.render())
print("Transposed")
m.transpose()
print(m.render())
Output
Initial
⡗⢄⠀
⠉⠉⠁
Transposed
⠙⢍⡇
⠀⠀⠁
Anything else?
No response