image thumbnail

Kolam Generator

by

 

30 Apr 2012 (Updated )

This suite of functions can be used to generate geometric line drawing of Kolams.

separated(M)
function separated(M)

[N,L,Isl]=count_islands(M);

cc='bgrcmyk';
for i=1:N
    q=mod(i,7)+1;
    Dum=M;
    V=find(Isl(:)~=L(i,2));
    Dum(V)=0;
    draw_kolam(Dum,cc(q))
    axis([0 size(M,1)+1 0 size(M,2)+1])
    pause
end
    

Contact us