A=read("C:\Users\vtorri\Documents\Visual Studio 2010\Projects\fractal\Debug/fractale.dat", -1, 1);
w = A(1);
h = A(2);
[l,c]=size(A);
B = A(3:l);
C = matrix(B, w, h);
size(C)


for k=1:85
    r(k)=1;
    g(k)=1;
    b(k)=1-k/85;
end

for k=1:85
    r(k+85)=1;
    g(k+85)=1-k/85;
    b(k+85)=0;
end
for k=1:85
    r(k+170)=1-k/85;
    g(k+170)=0;
    b(k+170)=0;
end

cmap=[1-r 1-g 1-b];
f=gcf();
f.color_map = cmap;

clf();
show_pixmap();
Matplot(C);
show_pixmap();
