function elite.drawSector(tar, r1, r2)
local circle = newGroup(tar);
circle.alpha = 3/4;
circle.x, circle.y = _W/2, _H/2;
local bot = display.newCircle(circle, 0, 0, r2);
-- bot:setFillColor(251/255, 190/255, 187/255);
bot:setFillColor(1/2);
local top;
function circle:refresh(p)
if(top)then top:removeSelf(); end
p = math.min(1, p);
p = math.max(p, 0.01);
local vertices = {0, 0};
local a = 0;
while(a<p*math.pi*2) do
table.insert(vertices, math.cos(a)*r1);
table.insert(vertices, math.sin(a)*r1);
a = a+math.pi/360;
end
top = display.newPolygon(circle, 0, 0, vertices);
top:setFillColor(1/2+p);
if(top.width <= r1)then
top.x = top.width/2;
else
top.x = -top.width/2 + r1;
end
if(top.height <= r1)then
top.y = top.height/2;
else
top.y = -top.height/2 + r1;
end
end
circle:refresh(1/2);
return circle;
end