How we can draw a sphere on canvas in Android?Canvas does not have any method to do this.
How we can draw a sphere on canvas in Android? Canvas does not have
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Draw a circle and give it a gradient texture to have a spherical appearance. If you want an actual 3D representation, use OpenGL.
As the canvas isn’t really meant for 3D space items, it only supports primitives like circles and lines and arcs.
However, OpenGl is a full fledged graphics API which can be used to draw spheres and maintain lighting and textures etc.