Get color of arc in libgdx -


i have drawn many colourful arcs , revolving around ball. when user touches screen ball shoots in direction of pointer. want color of arc colliding when collision occurs. please help.. sample image this: enter image description here

i want output in rgb format or hash format or in known format can use comparison.

please suggestions helpful...thanks in advance..

is there reason why can't treat each arc separate instance color stored in field?

 public class arc  {     //color stored in arc easy retrieval     public color mycolor = new color(...);      public void update()     {         //make arc original arc supposed         //such rotate, drawn screen, etc     }      //one of many ways retrieve color during collision     public color testcollision(ball b)     {        if (/* ball colliding arc */) return mycolor;        else return null;     }  } 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -