Test 三角形

Revision as of 15:40, 23 September 2025 by Mwroot (talk | contribs)

digraph {

   rankdir=TB
   splines=false
   
   // 底层大三角形
   底层 [
       shape=invtriangle
       style=filled
       fillcolor=green
       label="无罪"
       width=3
       height=2
   ]
   
   // 中层三角形
   中层 [
       shape=invtriangle
       style=filled
       fillcolor=yellow
       label="轻罪"
       width=2
       height=1.3
   ]
   
   // 顶层三角形
   顶层 [
       shape=invtriangle
       style=filled
       fillcolor=red
       label="重罪"
       width=1
       height=0.7
   ]
   
   // 排列层级
   {rank=same; 底层 中层 顶层}
   
   // 不可见连接确保正确重叠
   底层 -> 中层 -> 顶层 [style=invis]

}