iOS: "Flip-Clock" animation - how to? [closed] - objective-c

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
currently I´m working on an App where I like to implement a nice "flip-clock"-animation for numbers (like this: http://www.youtube.com/watch?v=dKhsn-qrEZY).
It is realy hard to find a resource for an animation like this one I´m looking for. One of the best I found was this one: http://www.voyce.com/index.php/2010/04/10/creating-an-ipad-flip-clock-with-core-animation/
But I´m not very trusted with CoreAnimation. So it is hard to dive into the article I found.
The article didnt describe all pieces in detail. As consequence (for me ;))the problem is that I have no idea where I have to start...
Did anyone know a good article / resource / place where I can find a better explained solution for such an animation?
Or can someone help me to understand this article better?
Thank you!

You can apply a 3D transform on a UIView layer to rotate about any of the axis (or combination)...
CATransform3DMakeRotation(<#CGFloat angle#>, <#CGFloat x#>, <#CGFloat y#>, <#CGFloat z#>)
This will rotate the view it is applied to by the angle (given in radians).. specify either 0 or 1 for the x, y and z values to decided whether or not to apply the angle rotation to that axis.
Now of course you can animate this transform by creating a normal UIVIew beginAnimations block, setting the transform and commiting the animation block.
To set the transform, use [myView.layer setTransform:myTransform];

Related

How to remove a grey shadow from a JPEG? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 6 years ago.
Improve this question
So in Photoshop we all know it's relatively easy to remove a white background from a .jpg image if the contrast is quite visible.
The problem with this image though is it has a grey shadow at the bottom of the image that is reliant on the white background, and therefore once it becomes transparent the shadow looks nasty.
What would be the best approach to remove this once the white background had been removed?
Thanks
https://s15.postimg.org/k2itasu7v/i_Stock_104502239_LARGE.jpg
You can use the Polygonal Lasso Tool. Manual removing.
Zoom to the shadow, select it with the Polygonal Lasso Tool > Right click and : Refine the edge + give it a bit of Feather and paint using the background color of the image.

Reduce the image size without losing its quality in photoshop [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I am having an image which is taken as a screenshot and it should be uploaded in my webpage, so I wanted to edit it through Photoshop. As I am new to Photoshop, please help me to find a way. Thanks in advance!
I want the image size (height & width) to be reduced
I want the image to be without losing quality
How to resize this image without losing its quality, through in Photoshop?
You can shrink image without losing quality in 3 ways:
Photoshop:
Launch Photoshop then click on image > image size. Now you can select width and height as per your choice. Don't forget to tick on Bicubic sharper (reduction).
Microsoft Paint:
First of all, launch Paint and then select resize. And now you can adjust width and height of your images.
Online Tools: There are numerous websites available across the web by which you can easily shrink all your images without losing quality.
Reference:
http://www.hugestreet.info/2016/12/shrink-images-without-losing-quality.html
It is not possible to reduce the size of an image without reducing quality unless it is a vector file.
You might be able to convert/export it as a .pdf in photoshop. I know you can in Gimp.

Move background relative to an object [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
This is a Processing 2.x related question but you can give a general answer and I will translate that into processing sketch.
I want to move my background relative to an object that i have made in box2d and is following a trajectile path. I want that object to remain inside the sketch and not to go past the width of the sketch. how can I do that?
This is what I have tried: (The image displayed is a large image, 4 times the width of the sketch)
void Display(Gulli gulli) {
imageMode(CENTER);
if (gulli.isMoving()) {
Vec2 gulli_pos = gulli.getPosition();
gulli_pos.mulLocal(-1); // to move background in opposite direction of the object
pushMatrix();
translate(gulli_pos.x+width*1.63, +height/2+gulli_pos.y);
image(img, pos.x, pos.y);
popMatrix();
} else {
pushMatrix();
translate(width*1.5, -height/2);
image(img, pos.x, pos.y);
popMatrix();
}
}
I did something like that ones, let me try to explain it whit this simple drawing.
The black square is the background image, the grey one the sketch screen of Processing and the red ball your moving object.
The idea it's that while the distance between the side of the backImage and the side of the screen is greater than 0, you move the background image using the same speed than the ball, but in the opposite direction. Ones this condition changes you move the ball normally.
Hope this help's.
Regards
Jose

How can I create a gif with more than 256 colors like this one? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Bonjour ! this is my first question !
I'm trying some UI animation in Photoshop, and I want to export in GIF file. But, GIF can't support more than 256 colors right ? So my quality is really low...
I think I found a gif with 32697 colors on this website, so is it possible ?...
http://phil.ipal.org/tc.html
If someone can explain me how it's work... I'm pretty lost.
Thanks for your answer.
True-color GIFs are a hack that uses the animated GIF format, puts a 256 color square in each frame, offset from all previous frames, makes each frame not disappear when the next frame appears, and loops only once. Few programs other than web browsers display such images correctly. The files are very large as a result and not suitable for web use.
Try PNG instead.

Prevent illustrator layer color over text being edited [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
When editing text in Illustrator, the text being edited receives a solid overlay of the colour of the layer it belongs.
This is sometimes annoying, as I would like to see the text with its own colour and effects.
How can I prevent this behaviour?
This question is probably better suited for http://graphicdesign.stackexchange.com. In the future, I'd recommend searching for answers and posting questions there. However, I understand that doesn't help you as quickly, so to answer your current question...
Under the View menu, you'll want to play with Hide Edges and Hide Bounding Box, depending on exactly what you're trying to accomplish, you may have to turn off both.
Bounding Box
The Bounding Box refers to a single perimeter around the furthest boundary of all currently selected objects. This also contains the transform controls/handles that can be seen at each corner, and in the middle of each side of the perimeter box. This does not affect the highlighting of individual object edges within the selection.
Edges
The Edges refers to the edges of each object within the current selection. If any of the objects are text objects, it also refers to the underlining within the text box.
It's worth noting that if you only have one object selected, you'll notice very little difference unless you choose to hide both Edges and Bounding Box.