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
I want to show users location with his profile image on Globe (Circular earth) instead of 2D map. As per my knowledge , latitude & longitude which we get from CLLocationManager are converted from circular by making calculation to display it in 2D map . Correct me if I am wrong.
My question is it possible to display different users current location with his profile image on globe. Also I need option to pan (must have) & zoom (if possible) ?
Any kind of help , reference is appreciated. Thanks.
As per the discussion here, you can use WhirlyGlobe to achieve the functionality.
Related
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 5 years ago.
Improve this question
I need a Rubiks cube generator for my project. I searched a lot but I only found websites that provide me a scramble but do not provided a method/function to do so. Is there a way for me to make my own or is an algorithm already available. Thanks
Find yourself a way how to represent the cube (each side and each cell of a side)
Determine, how your representation changes when rotating a horizontal section once clockwise and how your representation changes when rotating a vertical section once clockwise.
n times, randomly select a horizontal or vertical section and rotate it once clockwise.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I noticed the dimensions of the screen are wrong. I am in portrait mode and if I print the width and the height of my scene, they are 1024x768. How do I get proper dimensions? I did find some articles about that in Objective-C and tried to figure out how to do it in Swift but have no idea how because I am a beginner in Swift and programming.
Is there any straightforward approach to solving this?
Use self.view.bounds to get the size of the screen (assuming your view is fullscreen)
The view shows a portion of your scene. You can move the view around the scene to scroll your game. Therefore the scene dimensions are different than the screen dimensions.
UISceen.mainScreen().bounds will always give you dimensions of the screen in its current orientation. Self.view.bounds will give you the size of the view controller you are working in, which in many cases will be the same.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want do something like in this post but a more advanced version of that..
I want to also change image when mouse drag distance is not in some user defined range than want to change image in canvas, check if mouse move point is between those two circles (not less or greater).
You didn't provide code in your question, so here is a non-code answer:
You can use Math.atan2 to get the angle of the mouseclick and apply that same angle to your image.
You can use pythagora's theorm to determine the distance from the click to the image center. Then test if that distance is between your 2 circles' radii.
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 9 years ago.
Improve this question
I draw a graphical primitives using functions ccDraw... and I need to calc for example a scale and transition using 3x3 matrices.
How to solve this issue in cocos2d? I can't simply use sprites/nodes because all the calculated points belong to the same object. Is it possible without converting CGPoint->matrix->CGPoint?
It sounds like you are trying to do scale/rotation on the CGPoints. You can do this using CGAffineTransform functions and structure that are part of Quartz 2D.
See these references:
Apple's Documents.
A single example of rotating a rectangle formed by four points.
SO Example(s).
Was this helpful?
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I need to create splash screen for my mobile application and I want to use an image like the one I have attached with this question but with different color for splash screen.I guess this is a gradient but really don't know any idea how to create this type of gradient image with different color.Please help me providing any link or tutorial.
Please take a look at
http://docs.gimp.org/2.2/en/gimp-tool-blend.html
http://www.youtube.com/watch?v=wjuCM-UTXaQ
for some gradient tutorials.
If you want the same image, with a different color, then just try changing the hue of your image like this
http://docs.gimp.org/en/gimp-tool-hue-saturation.html
http://www.youtube.com/watch?v=q2ybYHxyxfQ