File: polytest6.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 (19 lines) | stat: -rw-r--r-- 361 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
startshape foo
background {b -1}
rule foo {
7* {r (360 / 7)} hept2 { y (sin(360/7) / tan(180/7) + cos(360/7)) s -1 b 1}
hept2 {b 1 s (sin(360/7) / tan(180/7) + cos(360/7) - 1)}
}

path hept {
	MOVETO {x (cos (90 - 720 / 7)) y (sin(90 - 720 / 7)) }
	7* {r (720/7)}
		LINETO { y 1}
	CLOSEPOLY {p sync}
	FILL {p evenodd}
}

rule hept2 {
	hept{}
	hept2 {s -0.69}
}