File:Superposition of circles.png

Summary

Description
English: Hundreds of circles of random size and color superimposed upon each other. As the number of circles increases, the result approaches simply greyish image noise. But for the 1200 circles shown here, it actually looks nice. Generated with MATLAB.

%Generate ten pictures with different numbers of circles
n=2000;
m=170^2;
imgr=zeros(n);
imgg=zeros(n);
imgb=zeros(n);
for iteration=1:10
for i=1:400
x=randi(n);
y=randi(n);
z=randi(m);
r=randi(10);
g=randi(10);
b=randi(10);
for xcur=1:n
for ycur=1:n
if ((xcur-x)^2+(ycur-y)^2)<z
imgr(xcur,ycur)=imgr(xcur,ycur)+r;
imgg(xcur,ycur)=imgg(xcur,ycur)+g;
imgb(xcur,ycur)=imgb(xcur,ycur)+b;
end
end
end
end
img=zeros(n,n,3);
img(:,:,1)=imgr;
img(:,:,2)=imgg;
img(:,:,3)=imgb;
img=img/max(max(max(img)));
imwrite(img,[num2str(iteration) '.png'],'png');
end
Date
Source Own work
Author Purpy Pupple

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-3.0#Superposition%20of%20circles.png
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
Category:License migration redundant#Superposition%20of%20circles.pngCategory:GFDL#Superposition%20of%20circles.png
You may select the license of your choice.
Category:Self-published work Category:Computer-generated textures Category:Images with Matlab source code Category:Groups of circles
Category:CC-BY-SA-3.0 Category:Computer-generated textures Category:GFDL Category:Groups of circles Category:Images with Matlab source code Category:License migration redundant Category:Self-published work