Color Ring v2

Daniel Pereira
on 28 Oct 2021
- 5
- 9
- 3
- 0
- 236
k=cosd(30);
x=-k:.01:0;
y=1.6*(x+k).^.1-0.5;
z=[x;y];
R=@(x)[cosd(x) -sind(x);sind(x) cosd(x)];
c=hsv(36);
for i=0:35
Z=R(10)^i*z;
p=Z(:,1);
for j=0:99
F=R(.1)^j*(Z-p)+p;
plot(F(1,:),F(2,:),'color',c(i+1,:)); hold on;
end
end
axis equal off;
set(gcf,'color','k')