Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Image flipping question. (https://forums.graalonline.com/forums/showthread.php?t=134266370)

greggiles 05-04-2012 03:47 PM

Image flipping question.
 
I know that you can rotate images, change the size, etc.
What is the code to do a mirror flip on the vertices axis?
(Horizontal flip)

fowlplay4 05-04-2012 04:57 PM

You can achieve it by stretching it negatively. I.e.

stretchx = -1; // this will mirror it horizontally
stretchy = -1; // this will mirror it vertically

Gunderak 05-04-2012 05:01 PM

Why not just rotate it 180°?

fowlplay4 05-04-2012 05:04 PM

Quote:

Originally Posted by Gunderak (Post 1693678)
Why not just rotate it 180°?

Mirroring and rotating 180 degrees are not the same thing.

Gunderak 05-04-2012 05:08 PM

Oh right then it would be upside down, sorry.Had a mental blank.


All times are GMT +2. The time now is 12:02 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.