You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a tumbler routine like the old tumblers you'd see on a Gas pump or car dashboard.
It works by working out where the digit we want is in the "window" then adding the digit before and after. Its all drawn on a sprite which is then pushed to the display.
This used to look cool but now no longer works. I think the problem is that the way in which text that is printed out of bounds is handled. The previous and next digits may be partially or completely obscured. This didn't used to matter.
I found the function setTextWrap and disabled it for x and y - doesn't make any difference.
For the following the sprite is 55x55 and I think digits are 0 to 99. What it should do is show 10,20,30,40 passing by.
If you can think of a better way with clipping or scrolling rectangles I'm happy to change it.
(ignore the colours and casting to floats etc I was trying to work out what was happening, the GREEN text works as exected, the other two appear over the top in the centre)
I see these lines have appeared. I commented out the checks on the Y coordinate but there must be more than that.
I would have thought partially obscured text was fairly commonly used. (but willing to conceed there is a better way).
I created a tumbler routine like the old tumblers you'd see on a Gas pump or car dashboard.
It works by working out where the digit we want is in the "window" then adding the digit before and after. Its all drawn on a sprite which is then pushed to the display.
This used to look cool but now no longer works. I think the problem is that the way in which text that is printed out of bounds is handled. The previous and next digits may be partially or completely obscured. This didn't used to matter.
I found the function setTextWrap and disabled it for x and y - doesn't make any difference.
For the following the sprite is 55x55 and I think digits are 0 to 99. What it should do is show 10,20,30,40 passing by.
If you can think of a better way with clipping or scrolling rectangles I'm happy to change it.
(ignore the colours and casting to floats etc I was trying to work out what was happening, the GREEN text works as exected, the other two appear over the top in the centre)
The text was updated successfully, but these errors were encountered: