% draw nested stars in alternating color

close all
figure
axis equal off
hold on

x= 0;  y= 0;  % figure centered at (0,0)
s= 20;        % side length of background box
DrawRect(-s/2,-s/2,s,s,'k')  % background

for k= s/2:-1:3
    if rem(k,2)==1
        DrawStar(x,y,k,'y')
    else
        DrawStar(x,y,k,'m')
    end
end