• Remix
  • Share
  • New Entry

on 16 Oct 2022
  • 2
  • 7
  • 0
  • 0
  • 271
sz=400;
R1=sz/2;
I=zeros(sz,sz,3);
n=25;
R=30;
teta=360/n;
for i=1:n
kx(i)=fix(R1+(R1/2)*cos(i*teta));
ky(i)=fix(R1+(R1/2)*sin(i*teta));
end
for k=1:n;
r=rand*255;g=rand*255;b=rand*255;
for i=1:sz
for j=1:sz
if(i-kx(k))^2+(j-ky(k))^2<R^2
I(i,j,1)=r;
I(i,j,2)=g;
I(i,j,3)=b;
end
end
end
end
imshow(uint8(I))
Image
Remix Tree