Questions tagged [flip]

a UI effect. for other flip types, see [flipboard] [swap] [bit-twiddling]

Describes the action of making elements in an application more aesthetically pleasing by producing a 'flip' effect.

What questions should not have this tag?

Please do not use for flipboards [flipboard], reversing arrays [swap], bit flipping [bit-twiddling]

734 questions
117
votes
4 answers

What is the purpose of ByteBuffer's flip method? (And why is it called "flip"?)

Why does ByteBuffer's flip() method called "flip"? What is "flipped" here? According to apidoc, two successive flips won't restore original state, and multiple flips will probably tend limit() to become zero. Can I "unflip" somehow to reuse bytes…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
95
votes
5 answers

Scale and mirror SVG object

How do I most easily first scale an object, say 2 * times it's current size and then flip it vertically and horizontally, or both? As of now, I can either set "scale(2,2)" for it to become 2 times as big as it's width and height but I can't flip it…
Deukalion
  • 2,516
  • 9
  • 32
  • 50
57
votes
4 answers

Android page Curl animation

Is there a simple way to do the Curl page flipping animation? A Curl animation is animation of pages flipping, including the page above rolling and the shadows over the lower page. What is the recommended way to do a "gallery" that displays two…
Meymann
  • 2,520
  • 2
  • 28
  • 22
51
votes
2 answers

How to flip the glyphicon icon

Is there any way to flip the glyphicon. I found Flip an Image CSS trick, but that does not work for the glyphicon. Please any suggestions
Jamol
  • 3,768
  • 8
  • 45
  • 68
45
votes
9 answers

How to flip UIImage horizontally with Swift?

The solution to do UIImage flipping is with the Objective-C code: [UIImage imageWithCGImage:img.CGImage scale:1.0 orientation: UIImageOrientationDownMirrored] However, imageWithCGImage is not available in Swift! Is there a solution for flipping…
Lim Thye Chean
  • 8,704
  • 9
  • 49
  • 88
44
votes
4 answers

HTML Canvas: How to draw a flipped/mirrored image?

I'm trying to flip/mirror an image as I paint it on an HTML canvas; I found a game tutorial showing a sprite sheet per direction a character has to face, but this doesn't seem quite right to me. Especially since each frame has a different size. What…
Jem
  • 6,226
  • 14
  • 56
  • 74
40
votes
8 answers

Android Flip ImageView Vertically

I am trying to flip and ImageView vertically but it just won't work. Java: public static void flipImageVertically(final Bitmap bmp, final ImageView imageView) { final Matrix matrix = new Matrix(); matrix.preScale(1.0f, -1.0f); …
Subby
  • 5,370
  • 15
  • 70
  • 125
37
votes
5 answers

How to do the flip animation between two UIViewControllers while clicking info button?

I have a login page named "LoginViewController". I have an info button in this page. If I click on it, I want to show some information about my application. Also I want to present that information page using flip animation. The code for creating…
Rajkanth
36
votes
3 answers

Flip horizontally html and css

I am trying to implement a feature where I need to have two trees, one next to the other, looking like mirrors. Please, see the image: The point is I found the way to flip it horizontally but text is also inverted. What I cannot do is invert the…
lontivero
  • 5,235
  • 5
  • 25
  • 42
35
votes
3 answers

Do gamma rays from the sun really flip bits every once in a while?

Possible Duplicate: Cosmic Rays: what is the probability they will affect a program? Is this just a tongue in cheek expression or is this really true, and if so, what precautions should we take in software (or these precautions hardware only)?
WinMain
  • 351
  • 1
  • 3
  • 5
34
votes
6 answers

Shorthand for flipping a boolean variable

How can I flip the value of a boolean variable in javascript, without having to include the variable name twice? So foobarthings[foothing][barthing] = !foobarthings[foothing][barthing]; without writing foobarthings[foothing][barthing] twice.
chtenb
  • 14,924
  • 14
  • 78
  • 116
29
votes
3 answers

iOS - Flip animation only for specific view

i'm developing a game which contained some view (as memory card game) and i want that when the user tap on a card this flip and shows another view. I use this code : - (void)flipCard:(id)sender { UIButton *btn=(UIButton *)sender; UIView…
Andrea Mario Lufino
  • 7,921
  • 12
  • 47
  • 78
29
votes
4 answers

Android Animation - Flip

I need to create an animation - Flip a view and show another one. The width of currently shown view is decreased slowly to zero and after that the width of the view-to-be-shown must be increased from zero. During this time, the height goes from the…
gvaish
  • 9,374
  • 3
  • 38
  • 43
28
votes
2 answers

How to do page flip/turn/curl effect in android

Possible Duplicate: Implement page curl on android? How to do page flipping/turning or curl animation in android ? Is is possible with cocos2d. Please provide any links or example if you know.
krunal shah
  • 16,089
  • 25
  • 97
  • 143
25
votes
4 answers

Displaying card flip animation on old android

We all know this article of how to create "card filp" animations using new api. But how can I make this on apis < 3.0? Update: As long as there are good and easy-to-use libraries like android-FlipView I don't think you really need to do such…
Alexander.Iljushkin
  • 4,519
  • 7
  • 29
  • 46
1
2 3
48 49