viscm=read("grass_ramp.txt",-1,3);
for k = 1:256
red(1,k)=k;red(2,k)=viscm(k,1);
green(1,k)=k;green(2,k)=viscm(k,2);
blue(1,k)=k;blue(2,k)=viscm(k,3);
end
for k = 0:100
rgb(1,(k+1))=round(255*interpln(red,(k*2.55+1)));
rgb(2,(k+1))=round(255*interpln(green,(k*2.55+1)));
rgb(3,(k+1))=round(255*interpln(blue,(k*2.55+1)));
end
fprintfMat("rgbtemp",rgb',"%3.0f");
exit