%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% 	  MODULE: blob.m
%%
%%      FUNCTION: draw blobs for Hinton diagrams
%%
%%       COMMENT: This code was written by Geoffrey Hinton and Zoubin Ghahramani
%%		  Univ. of Toronto, Dept. of Computer Sciences
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function [] = blob(x,y,area,color);

hs = sqrt(area)/2;

xcorners = [x-hs, x+hs, x+hs, x-hs];
ycorners = [y-hs, y-hs, y+hs, y+hs];
% fill(xcorners,ycorners,color); 

fill(xcorners,ycorners,color,'LineWidth',0.001,'EdgeColor',0.65*[1 1 1]);



