dotmatrix icon indicating copy to clipboard operation
dotmatrix copied to clipboard

Feature Request: Matrix manipulation

Open timfi opened this issue 3 years ago • 0 comments

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

timfi avatar Aug 17 '21 13:08 timfi