File: subpathtest4.cfdg

package info (click to toggle)
contextfree 3.3%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,420 kB
  • sloc: cpp: 37,078; lex: 417; makefile: 124; sh: 42; python: 41
file content (12 lines) | stat: -rw-r--r-- 200 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
startshape subpath

hole = select(randint(3), CIRCLE, SQUARE, TRIANGLE)

path subpath {
  MOVETO(1, 0)
  ARCTO(-1, 0, 1, CF::ArcCW)
  ARCTO( 1, 0, 1, CF::ArcCW)
  path hole[]
  CLOSEPOLY()
  FILL[]
}