% License Creative Commons 0 (like the public domain)
% Use, study, modify and share!
% Even if you are not forced with copyleft, do not forget to respect freedom of others.
% For more informations : https://www.gnu.org/philosophy/free-sw.html
% If you modify it and use it with MATLAB (that is proprietary), please check compatibility with GNU Octave (that is free/libre software that has only few differences).
% This program is provided with no warranty.
% Names of contributors must not be used to endorse or promote products derived from this software without specific prior written permission.
% @author Spanti Nicola (RyDroid)


function image = image_put_circle(image, color_of_the_circle = 0, circleRadius = length(image) /2, circleCenterX = circleRadius, circleCenterY = circleRadius)
	[rows, columns] = size(image);
	
	for i = 1 : rows
		for j = 1 : columns
			if (i - circleCenterX)^2 + (j - circleCenterY)^2 - circleRadius^2 > 0
				image(i,j) = color_of_the_circle;
			end
		end
	end
end
