Navigation
Synopsis Horizontal composition of a list of figures.
Function Figure hcat(Figures figs, FProperty props...)
Description Horizontal composition is a special case of grid. It is a grid with just one row. See grid for more information.

See also vcat.
Examples
b1 = box(vshrink(0.5), fillColor("Red"));
b2 = box(vshrink(0.8),  fillColor("Blue"));
b3 = box(vshrink(1.0), fillColor("Yellow"));
render(hcat([b1, b2, b3]));
gives: h1

b2 aligned at the top:
b1 = box(vshrink(0.5), fillColor("Red"));
b2 = box(vshrink(0.8),  fillColor("Blue"),top());
b3 = box(vshrink(1.0), fillColor("Yellow"));
render(hcat([b1, b2, b3]));
gives: h2

b2 aligned at the bottom:
b1 = box(vshrink(0.5), fillColor("Red"));
b2 = box(vshrink(0.8),  fillColor("Blue"),bottom());
b3 = box(vshrink(1.0), fillColor("Yellow"));
render(hcat([b1, b2, b3]));
gives: h3

All boxes aligned at the bottom:
b1 = box(vshrink(0.5), fillColor("Red"));
b2 = box(vshrink(0.8), fillColor("Blue"));
b3 = box(vshrink(1.0), fillColor("Yellow"));
render(hcat([b1, b2, b3],std(bottom())));
gives: h6
Is this page unclear, or have you spotted an error? Please add a comment below and help us to improve it. For all other questions and remarks, visit ask.rascal-mpl.org.