HOME | DD

Published: 2007-07-17 00:05:52 +0000 UTC; Views: 20377; Favourites: 44; Downloads: 223
Redirect to original
Description
Note: I didn't bother worrying about negative angles when writing this, so there may be weird results -- use positive equivalents, e.g., 350 degrees instead of -10 degrees.Your result will be quite grainy/jagged-looking, so try scaling the picture up first, rotating, then scaling it back down again.
Unfortunately, MS Paint doesn't like non-integer scaling, so the second and fourth steps are rounded to the nearest percentage point.
The Formula: (which you may be able to find more information about by googling "three shear rotation")
horizontal skew x
vertical stretch 1 + tanΒ²(x)
vertical skew -x
scale cos(x)
Related content
Comments: 21
nihilist78 [2014-09-28 18:50:09 +0000 UTC]
I just found this recently and have been using it on pretty much a weekly basis. Β It just makes things SO much easier. Β Thanks for putting this together!
π: 0 β©: 0
Minatek616 [2012-09-11 01:45:23 +0000 UTC]
Thank you soooo much for making this! It has saved me much time and many tears. You sir have earned you ice cream and cookies! XD
π: 0 β©: 0
Quanyails [2011-01-23 17:19:03 +0000 UTC]
Thanks for this tool--it's really helpful for MS Paint art.
π: 0 β©: 0
MultiSenhor [2010-12-25 06:17:51 +0000 UTC]
Guy.
FUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUCK.
I've always refused to join DA just to comment something, no matter how awesome the stuff was, but I FU CKING HAD TO DO THAT THIS TIME.
I'm a pixel artist and I often work with angles. I had to make very complicated calculations that took quite some time and where a pain in the ass (it is hard to calculate with pixels, diagonals size =/= side size).
Bringing rulers and such stuff to a computer screen wouldn't work, and I'm often lazy to search wich calculation is better to use (like, in a book or something).
Your calculator matches EXACTLY my calculations, but a thousandfold faster.
Thank you man, I'll never forget it, I'll tell other people about this awesome thing.
Wow, just noticed I'm late.
π: 0 β©: 0
Gamedragon89 [2010-11-22 07:00:03 +0000 UTC]
You know, I've gotten through Calculus II in college by now, and I STILL have no clue how you derived the precise calculations.
π: 0 β©: 0
damienru [2008-09-22 12:33:45 +0000 UTC]
Holy crap. You're a lifesaver. This is amazing.
Do you mind if I drool?
π: 0 β©: 1
damienru In reply to damienru [2008-09-22 12:36:47 +0000 UTC]
and if you're wondering why I find this so amazing, it's because I'm doing an isometric pixel-art spiral staircase. This makes everything a million times easier.
π: 0 β©: 1
cuckooman4 In reply to damienru [2008-12-09 02:21:52 +0000 UTC]
Well.
Glad to hear this is useful for someone.
(oh and I never check my dA)
π: 0 β©: 0
basstheyoshi [2008-04-22 00:05:44 +0000 UTC]
Really useful for MS Paint enthusiasts such as myself.
Only suggestion is to maybe allow the user to move that little dial in the corner to select the angle.
π: 0 β©: 1
cuckooman4 In reply to basstheyoshi [2008-04-22 23:49:50 +0000 UTC]
Tried that, could've figure out how to make it work. (I get the theory, use tangent with the motion of the mouse from mousedown to present, but I can't actionscript it right.)
Oh, and is that Portal in your avatar?
π: 0 β©: 1
basstheyoshi In reply to cuckooman4 [2008-04-23 00:25:13 +0000 UTC]
Yep. It was part of my Fireworks assignment in Web desing It was supposed to animate. Damn Fireworks...I'm gonna fix it soon, hopefully.
π: 0 β©: 1
basstheyoshi In reply to cuckooman4 [2008-04-25 03:40:41 +0000 UTC]
yes, it IS Portal in my avvy. THe old one was SUPPOSED to animate, but Fireworks messed it up. I did it in Flash, so now it works.
π: 0 β©: 1
cuckooman4 In reply to basstheyoshi [2008-04-27 18:02:54 +0000 UTC]
Uh-huh.
Flash rocks.
π: 0 β©: 1
mickey098 [2007-07-29 16:38:27 +0000 UTC]
sweeeet.
I dunno if i'll have any use for this, but it's still
sweeeet.
π: 0 β©: 1
cuckooman4 In reply to mickey098 [2007-08-13 17:55:58 +0000 UTC]
sweeeet.
Two comments.
sweeeet.
π: 0 β©: 0
fadedmemory [2007-07-17 00:40:58 +0000 UTC]
that is neat. didn't bother reading whatever the description was but it looks neat. good day sir.
π: 0 β©: 1
cuckooman4 In reply to fadedmemory [2007-07-17 01:09:16 +0000 UTC]
Okay. Basically, this calculates the method with which you can use to rotate any integer angle in Paint.
π: 0 β©: 0