Direction of Webkit rotation-transform? - webkit

is there a way to change the direction of the webkit rotation-transform? Currently it rotates an object to the right, but I would need to rotate it to the left.
edit: the angle it should rotate, i parse out of a document, so it's fixed!
Any ideas? Thanks!

You can rotate by a negative angle.

Related

Layer getting distorted when being rotated in Photoshop?

I am simply trying to rotate a rectangle while keeping the quality. Instead this is what I end up with. Anyone have a solution?
Yes, transform the shape into Smart Object before rotating

Touching transparent part of Sprite

I am using SpriteBuilder with Cocos2d v3.4
I need to detect touch on sprite ignoring touch in transparent place of CCSprite's bounding box.
I found few solutions (Physics Body, CGPath), but actually detecting transparent pixel seems the best solution.
I tried to use THIS but it is very old solution and not working anymore.
Could someone help me how to achieve this?
Try to create 2 CGRect on the sprite and detect touch only on these rects

rotate object to touched coordinates

I'm doing a simple game in SpriteKit, and have little problem. I would like my character/player(SKSpriteNode) to rotate himself to position where I touched the screen, so he always face touched to coordinates. I know there something like zRoatation, but I don't know how to calculate an angle. I will be really grateful for any tips.
I found a answer thanks to Antoine Lecaille.
float newAngle = -atan2(newPosition.x - currentPosition.x, newPosition.y -currentPosition.y) + [self degToRad:180];

Rotating and Resizing CIImage

I have two CIImages. I'm trying to apply a CGAffineTransformation to the top image, and then pass it through along with the background image to the CIFilter for blending, but my resulting image seems to show the top image moving around (I just want it rotated on the spot).
I'm also having the same problem when scaling (the position of the top image seems to change).
What am I missing?
So after lots of digging, turns out my problem was due to the rotation point. This question/answer helped a lot.
CGContext rotation

iOS - UIScrollVIew with layers

Does someone have an example of using a UIScrollView that contains a layer that is playing a CAKeyFrameAnimation or some thing close?
I have the animation playing in there but it doesn't seem to recognize the pinch zoom, I followed a guide for UIImages but the zoom function is specifying a UIView to zoom in on and I would like to zoom in on the layer.
Thanks in advance.
Here is another guide I found with UIImages... Easy enough to figure out from there I think.
http://www.austinbull.com/tutorials/tutorial3.zip