如何使用 Asymptote 创建包含婚姻关系的家谱?目前,我有这个 Asymptote 程序:
import drawtree;
treeLevelStep = 2cm;
TreeNode root = makeNode( "Root" );
TreeNode child1 = makeNode( root, "Child\_1" );
TreeNode child2 = makeNode( root, "Child\_2" );
TreeNode gchild1 = makeNode( child1, "Grandchild\_1" );
TreeNode gchild2 = makeNode( child1, "Grandchild\_2" );
TreeNode gchild3 = makeNode( child1, "Grandchild\_3" );
TreeNode gchild4 = makeNode( child1, "Grandchild\_4" );
第二个问题,如何改变一个 TreeNode 的文本(仅限文本)的颜色?