whoops forgot these

This commit is contained in:
Robert Sheldon 2018-06-03 20:17:22 -04:00
parent 2adc646911
commit bc70ca109b
1 changed files with 3 additions and 4 deletions

View File

@ -101,10 +101,9 @@ module flat_support() {
children(); children();
} }
module legend(text, valign="center", halign="center", size=0) { module legend(text, position=[0,0], size=undef) {
//valign = "top" or "center" or "bottom" font_size = size == undef ? $font_size : size;
//halign = "left" or "center" or "right" $legends = [for(L=[$legends, [[text, position, font_size]]], a=L) a];
$legends = [for(L=[$legends, [[text, halign, valign, size > 0 ? size : $font_size]]], a=L) a];
children(); children();
} }