File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
started 8.5 24/1/17
2
2
- add max_slope to lhist
3
3
- gaussnoise goes via vips8 now
4
+ - add snake option to array join [Joe Padfield]
4
5
5
6
started 8.4.1 25/9/16
6
7
- simplify nip2-icon.rc build, bgilbert
Original file line number Diff line number Diff line change @@ -1527,16 +1527,26 @@ Image_join_item = class
1527
1527
bg_colour = Expression "Background colour" 0;
1528
1528
halign = Option "Horizontal alignment" valign_names 1;
1529
1529
valign = Option "Vertical alignment" halign_names 1;
1530
+ snake = Toggle "Reverse the order of every other row" false;
1530
1531
1531
1532
_l
1532
1533
= split_lines ncol.value x.value, is_Group x
1533
1534
= split_lines ncol.value x;
1534
1535
1536
+ _l'
1537
+ = map2 reverse_if_odd [0..] _l, snake
1538
+ = _l
1539
+ {
1540
+ reverse_if_odd n x
1541
+ = reverse x, n % 2 == 1
1542
+ = x;
1543
+ }
1544
+
1535
1545
_result
1536
1546
= (image_set_origin 0 0 @
1537
1547
foldl1 (join_tb vshim.value bg_colour.expr halign.value) @
1538
1548
map (foldl1 (join_lr hshim.value
1539
- bg_colour.expr valign.value))) (to_list (to_list _l));
1549
+ bg_colour.expr valign.value))) (to_list (to_list _l' ));
1540
1550
}
1541
1551
}
1542
1552
}
You can’t perform that action at this time.
0 commit comments