File: polytest4.cfdg

package info (click to toggle)
contextfree 3.4.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,448 kB
  • sloc: cpp: 37,995; lex: 414; makefile: 123; sh: 43; python: 34
file content (16 lines) | stat: -rw-r--r-- 222 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
startshape sqgrid

path SQ {
    MOVETO {x 0.5 y -0.5}
    4* {r 90} LINETO {x 0.5 y 0.5}
    CLOSEPOLY {}
    STROKE {width 0.1}
}

rule sqgrid {
    SQ {s 20 x 10 y 10}
    10 * {y 2} {
        10 * {x 2} SQ {}
    }
}