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:
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
Post a Comment