function points = kaleid(s)
%
axis([-2,2,-2,2]);
axis('off');

points = zeros(12,3);
table = [1 2; 1 3; 1 4; 2 4; 2 3;
         3 4; 3 5; 3 6; 4 5; 4 6;
		 5 6; 5 7; 5 8; 6 7; 6 8;
		 7 8; 7 9; 7 10; 8 9; 8 10;
		 9 10; 9 11; 9 12; 10 11; 10 12;
		 11 12; 11 1; 11 2; 12 1; 12 2];

beta = 0;
d_beta = 0.09; % change in beta
xangle = 0.5; zangle = 0.2;
points = calcul_pts(d_beta);
kaleid_display(points,table);
button = 1;
while button ~= 2
%  [c,r,buttun] = ginput(1);
%  if button == 10
%    d_beta = d_beta + 0.01
%  end;
%  if button == 3
%    d_beta = d_beta + 0.01
%  end;
  points = calcul_pts(beta);
  points = rotation(xangle,zangle,points);
  kaleid_display(points,table);
  beta = beta+d_beta;
  for ss = 1:s
    ttt = sqrt(100001);
  end
end
