annotate arrows/@afirst/tostring.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents 672052bd81f8
children
rev   line source
samer@0 1 function s=tostring(a)
samer@0 2 if a.extra==1
samer@0 3 s=sprintf('first(%s)',tostring(a.base));
samer@0 4 else
samer@0 5 s=sprintf('first(%s,%d)',tostring(a.base),a.extra);
samer@0 6 end