% Demonstrate makeSpiral based on a randomly generated color circle

nSectors = 12;
nRings = 6;
p = 1;
R = rand(nRings,nSectors);
G = rand(nRings,nSectors);
B = rand(nRings,nSectors);

close all
figure
subplot(1,2,1)
axis equal off
hold on
drawColorCircle(R,G,B)
title('Original')

subplot(1,2,2)
axis equal off
hold on
[R,G,B] = makeSpiral(R,G,B,p);
drawColorCircle(R,G,B)
title(sprintf('Spiral with p = %1d',p))
shg