• Remix
  • Share
  • New Entry

on 12 Oct 2021
  • 24
  • 35
  • 0
  • 0
  • 276
image(zeros(99,99,3))
y=colormap(cool);
hold on
for j=1:40
w=rand*10;%x displacement
m=rand*10;%y displacement
f=round(rand*254);%color index
s=rand*20+7; %size
n=50; %number of spokes
z=rand(1,n);
t=linspace(0,n,n);
r=(1-z.^2);
p=r.*cos(t);
q=r.*sin(t);
for k=1:n
b=s*([0 p(k)]+w);
c=s*([0 q(k)]+m);
d=s*10*([0 z(k)]);
plot3(b,c,d,'-','Color',y(f+1,:))
hold on
end
end
axis off
Remix Tree