% Generate an rgb color circle based on the number of sectors and rings.
% Draw both the color circle and a spiral.
close all

% Generate a color circle and a spiral...
nSectors = 50;
nRings = 20;
p = 3;
[R,G,B] = makeColorCircle(nRings,nSectors);
[R1,G1,B1] = makeSpiral(R,G,B,p);

% Display the color circle...
figure
axis equal off
hold on
drawColorCircle(R,G,B)

% Display the spiral...
figure
axis equal off
hold on
drawColorCircle(R1,G1,B1)
shg