Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angle / Rotation? #98

Open
danjenkins opened this issue Sep 25, 2024 · 1 comment
Open

Angle / Rotation? #98

danjenkins opened this issue Sep 25, 2024 · 1 comment

Comments

@danjenkins
Copy link
Contributor

The picographics text method accepts an angle parameter which is incredibly useful if you are working on a 128x64 board that you have to change the rotation of everything by 270 degrees to make it look right.

When painting individual pixels thats easy enough to do but when you're reliant on the lib to write out some text for you.... that becomes more of an issue.

I'm a little confused by the rotate param when setting up the display because in your examples you're rotating if not emulated.... but native hub75 doesn't support rotation? Or at least thats what I was told?

Even if it does support rotation, you should be able to angle text the same way the native picographics text method allows.

@andrewjw
Copy link
Owner

I haven't got the screen level rotating working yet. That is something I wanted to add in this library, as you say it's not supported in the hardware.

For text I've written my own text renderer. In order to be able to emulate the screen on a PC I can't rely on anything more than the most basic functions from the underlying library. My eventual goal is to be able to run i75 on a stock MicroPython install, and not use the Pimoroni libraries for anything. I'm along way from that though.

Pull requests very welcome to add text rotation, but doing anything other than 90 degree turns will probably be tricky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants