[% USE bc = BioChrome("$image_src/button.gif"); colors = ['00' '33' '66' '99' 'CC' 'FF'] %] [% FOREACH row IN colors %] [%- FOREACH col IN colors; hexcol = "${row}00${col}"; bc.alphas("ffffff_${hexcol}_ffffff_000000"); bc.write_file("$image_dest/button${hexcol}.gif") -%] [% END %] [% END %]