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

Added scroll and rotate to font glyphs #1293

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

theeprawn
Copy link

@theeprawn theeprawn commented Sep 26, 2020

Add animation effect to fonts glyph. Can scroll/rotate glyphs, left, right(x), up and down(y) within fonts viewable area(fonts acsent to descent height and its delta width)
Added a gap option, zero means no gap, so scroll looks like glyph is rotating or sliding. Gap value greater than fonts viewable area makes glyph scroll out it or back in.
void setFontScroll(int8_t x, int8_t y, uint8_t gap=0)

I used this to make a 'V' into an animated chevron >> status icon. This feature scrolls relative to glyph, so changes with rotate direction

Not sure if there another flag in constructors that could show this in u8g2, or a flag to show whether its u8g2 or u8x8 only being used. As u8g2 constructor for display switch buffer layout.
I pull request updated display SSH1122 and new SSD1362 code.
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

Successfully merging this pull request may close these issues.

None yet

1 participant