HOME | DD

cuckooman4 β€” MS Paint Rotation Calculator

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

strange-familiar [2010-09-12 01:43:31 +0000 UTC]

Ooh, nice. Very useful.

πŸ‘: 0 ⏩: 0

vpramod1 [2010-01-16 23:29:29 +0000 UTC]

[link] thanks a lot , really appreciate it

πŸ‘: 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

cuckooman4 In reply to basstheyoshi [2008-04-25 02:47:50 +0000 UTC]

...I'm confused.

πŸ‘: 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

basstheyoshi In reply to cuckooman4 [2008-04-28 03:07:10 +0000 UTC]

woo flash!

πŸ‘: 0 ⏩: 0

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