- /
-
Moons
on 23 Oct 2022
- 2
- 6
- 0
- 0
- 236
sz=400;
R=sz/10;
I=zeros(sz,sz,3);
for p=1:50
r=fix(rand*255);
g=fix(rand*255);
b=fix(rand*255);
kx=fix(rand*sz);
ky=fix(rand*sz);
for i=1:sz
for j=1:sz
if (i-kx).^2+(j-ky).^2<=R^2
if(i-(kx+8)).^2+(j-(ky+8)).^2>=R^2
I(i,j,:)=[r g b];
end
end
end
end
end
imshow(uin