File: exD9.block

package info (click to toggle)
msc-generator 8.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 180,484 kB
  • sloc: cpp: 129,931; yacc: 23,655; ansic: 7,464; sh: 5,026; makefile: 948
file content (16 lines) | stat: -rw-r--r-- 549 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
##Defining shapes
##shape defshape
##Defining a shape is possible with the 'defshape' command. Within it you can specify 'S'ections to be filled or line-drawn using 'M'oveto, 'L'ineto, 'C'urveto commands. You can also define a rectangle where any possible content or label will go. See the documentation for details.
defshape tri {
    S 2;
    M 100 0; L 200 100; L 0 100; E;
    S 0;
    M 50 50; L 150 50; L 150 100; L 50 100; E;
    T 50 50 150 100;
}

*tri [fill.color = lgray] {
    box A: A;
    below *oval B: B;
    *tri C: C [middle=A];
}