function y = makecolor(x) % makecolor: return a vector containing 64 steps of the actual color percentage if (x == 0) y = ones(64,1); else y = [1:-(1-x)/63:x]'; end end