File: basic.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 (20 lines) | stat: -rw-r--r-- 262 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
startshape grid

gridsize = 20
width = 0.1

CF::Tile = [s gridsize]

shape grid {
  loop gridsize [y 1]
    loop gridsize [x 1]
      diag[]
}

shape diag
rule {
  SQUARE [r 45 s (width) (sqrt(2) + width)]
}
rule {
  SQUARE [r -45 s (width) (sqrt(2) + width)]
}