Graphics Kinda weird
-
I have been programming for the past many years but I came across Qt only recently. I had not used graphics in any of my projects before but Qt looked to have a good structure so I tried. All was well until I stepped away from the straight up-and-down Cartesian Grid. Having read everything in sight I still couldn’t get my head around the transforms. And then, boing – it hit me the other day what it was all about.
That sounds exactly right, I was raising my computer to print something and needed it to be in upside down. Well then, how does one achieve that? Well, there is no possible way that you can print the text on the normal grid the way it is upside down. and, for example, there is no option for flipping the screen to one’s upside down either. The answer is, of course (and there’s the ‘Duh!’), to flip the grid upside down and then print ‘normal’.
So I finally worked out what drawing graphics is all about you can keep the paper/screen where it is and simply draw on the transformed graph normally.
Shockingly, it took this long for this to be comprehended. To an old-timer like me, the idea of rotating a grid that you draw on over a piece of paper/screen which is where you’re supposed to do the drawing just didn’t make sense. You doodle on the screen, do you not? No, it is drawn on the grid and what is drawn appears on the screen like a shadow of what has been drawn.
So there you go. I finally cracked it. I just wonder whether other people had such episodes, where, as in the writers’ case, nothing made any sense, and then it did.