- /
-
Rainbow
on 4 Oct 2021
- 6
- 28
- 0
- 0
- 251
c = [ones(25,3); 0.5 0.2 1; 0.25 0.1 1; 0 0.5 1; 0 1 0; 1 1 0; 1 0.5 0; 1 0 0];
[x,y] = cylinder(1,100);
x = [x(1,1:51) x(1,1)];
y = [y(1,1:51) y(1,1)];
for i=length(c):-1:1
patch(i*x,i*y,c(i,:),'edgecolor','none'); hold on;
end
axis equal off;
set(gcf,'color','w');