I just got a cool idea for a transition! Don’t know if this is a thing that already exists or I have invented it. It’s a little tricky to explain, but here goes.
Imagine a capital letter H. Now imagine a bounding box tight around that H. And imagine a vertical line extending up through the center of that box. The bottom of that center line is going to be a pivot. The center line is now going to slowly rotate 90° around that bottom pivot point, until it’s on top of the baseline, and as it rotates, the bounding box (and the H within it) shear and vertically squash as necessary for the centerline to remain centered in the bounding box. This will shear and vertically squash the H, and by the time we’ve gone 90°, the H will be infinitely flat and will have disappeared. It will look a bit like a building tipping over and collapsing. And of course, it’s reversible.
I forgot to mention that in the case where there are multiple lines of text, I visualize each line collapsing towards its own baseline. It seems essential to me that the two lines of text move in the same way. And because of that, I expect it has to be done inside a text renderer.
Either that or I have to do two separate text layouts and two text draws, and manage the vertical spacing between the two lines myself. That sounds like a bad idea. Don’t you think?
Seems to me that all roads lead towards doing a text renderer anyway, because by now I have a list of effects that require one, and so once I’ve explored that technology and got it properly working, this tip and fall effect can just be another thing that the text renderer does.
Comments
Post a Comment