1 implementation module QA_shapes
5 // deze module definieert een aantal eenvoudige vorm-naam elementen
8 font :== normalFontDef "Times" 40.0
12 = [(rect d d, "square")
13 ,(circle d <@< {strokewidth=zero}, "circle")
14 ,(ellipse d (d /. 2) <@< {strokewidth=zero}, "ellipse")
15 ,(text font "Hello", "text")
16 ,(margin (d /. 2,px zero) (xline Nothing d), "xline")
17 ,(margin (px zero,d /. 2) (yline Nothing d), "yline")
18 ,(line Nothing Slash d d, "slash")
19 ,(line Nothing Backslash d d, "backslash")
20 ,(polygon Nothing [(d/.2,zero),(d,d),(zero,d)], "triangle")
21 ,(polyline Nothing [(d/.2,zero),(d,d),(zero,d),(d/.2,zero)], "polyline")
23 (overlay [(AtMiddleX,AtMiddleY),(AtMiddleX,AtMiddleY)]
25 [rect d d,rotate (deg 45.0) (rect d d)]