Navigation
Synopsis Define the drawing style of trees.
Function FProperty manhattan(bool b)
Description Determine drawing style for trees:
  • When true, all connections are drawn horizontally and vertically.
  • When false, all connections are drawn diagonally.
Examples
t1 = tree(box(fillColor("green")),
          [ box(fillColor("red")),
     	    box(fillColor("blue"))
     	  ],
          std(size(50)), std(gap(20)), manhattan(true)
    	);
render(t1);
tree 1



t2 = tree(box(fillColor("green")),
          [ box(fillColor("red")),
     	    box(fillColor("blue"))
     	  ],
          std(size(50)), std(gap(20)), manhattan(false)
    	);
render(t2);
tree 2
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.