Skip to content

Comments

Added scroll and rotate to font glyphs#1293

Open
theeprawn wants to merge 6 commits intoolikraus:masterfrom
theeprawn:master
Open

Added scroll and rotate to font glyphs#1293
theeprawn wants to merge 6 commits intoolikraus:masterfrom
theeprawn:master

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.

1 participant