java - Circular motion of drawing object -


can me in formula make drawing object move in circular motion? had tried formula internet still not working.

ball.set(x_position_ball / 2 - 25             , y_position_ball - 400             , x_position_ball / 2 + 25             , y_position_ball - 350); black.setcolor(color.black); canvas.drawoval(ball, black);  int angle = 5; int radius = 10; int center_x = 300, center_y 

thank you.

this answer should help, or check mine, rotation. in res/anim folder under 'rotation.xml':

enter image description here


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -