1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
close all
try
python_version = pyversion;
fprintf(2,'** Python Version : %s\n',python_version);
catch e
fprintf(2,'** Error : %s\n',e.message);
end
% Import art lib
artlib = py.importlib.import_module('art');
% decor function
% decor(decoration, reverse=False)
% unsupported characters will be displayed by a question mark ('?')
decor1 = artlib.decor('barcode1');
disp(char(decor1));
decor2= artlib.decor('barcode1',true);
disp(char(decor2));
decor3= artlib.decor('chess1',true);
disp(char(decor3));
art1 = decor1 + 'art test' + decor2;
disp(char(art1));
art2 = decor1 + artlib.text2art('art test','white_bubble') + decor2;
disp(char(art2));
art3 = decor1 + artlib.text2art('art test','white_bubble') + decor3;
disp(char(art3));
|