File: polytest5.cfdg

package info (click to toggle)
contextfree 3.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,432 kB
  • sloc: cpp: 34,857; lex: 416; makefile: 124; sh: 42; python: 41
file content (40 lines) | stat: -rw-r--r-- 640 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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
startshape bumps3

path bumps {
    MOVETO(0, 0)
    LINETO(2, 0)
    ARCTO(4, 0, 1, 1, 0)
    LINETO(6, 0)
    ARCTO(8, 0, 1, 2, 0)
    LINETO(10, 0)
    ARCTO(12, 0, 1, 3, 0)
    LINETO(14, 0)
    ARCTO(16, 0, 1, 4, 0)
    LINETO(18, 0)
    STROKE[]
}


path bumps2 {
    MOVETO(0, 0)
    loop i = 4 [s 1 1.75] {
        LINEREL(2, 0)
        ARCREL(2, 0, 1)
    } finally {
        ARCREL(2, 0, 1)
    }
    LINEREL(2, 0)
    STROKE[]
}

path bumps3 {
    MOVETO(0, 0)
    loop i = 0, 4 [] {
        LINEREL(2, 0)
        ARCREL(2, 0, 1, i + 1, 0)
    } finally {
        ARCREL(2, 0, 1, i + 1, 0)
    }
    LINEREL(2, 0)
    STROKE[]
}