- /
-
Color Ring v1
on 28 Oct 2021
- 6
- 18
- 1
- 0
- 251
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(6);
for i=0:5
Z=R(60)^i*z;
p=Z(:,1);
for j=0:9
F=R(6)^j*(Z-p)+p;
plot(F(1,:),F(2,:),'color',c(i+1,:)*(1-j/10),'linew',2); hold on;
end
end
axis equal off;
set(gcf,'color','k')