File: demo2_v2.cfdg

package info (click to toggle)
contextfree 3.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,260 kB
  • sloc: cpp: 37,992; lex: 414; makefile: 123; sh: 43; python: 34
file content (22 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# An example, showing how to include another file.
# Note that the include path has to be absolute OR
# relative to the directory you run .cfdg in
#

startshape thingy
include i_pix.cfdg

rule thingy{
 point {y -1 rotate 180}
 point {}
}

rule point {
  C_5by5 {}
  F_5by5 {x 1.2}
  D_5by5 {y -1.2}
  G_5by5 {y -1.2 x 1.2}
  point {y 2.0 x -2.5 rotate 20 size 0.6}
  point {y 2.0 x 2.5 rotate -20 size 0.6}
}